Exemple #1
0
 public void SetLanguageControls()
 {
     this.Text = $@"{AppName}, V{AppVersion} Copyright by {s.Company} 2019";
     toolStripMenuItemWindows.Text          = LanguageClass.Instance().GetString("Windows");
     toolStripMenuItemLanguage.Text         = LanguageClass.Instance().GetString("Language");
     toolStripMenuItemCloseApplication.Text = LanguageClass.Instance().GetString("CloseApplication");
 }
Exemple #2
0
        private FbXpertMainForm()
        {
            InitializeComponent();

            NotificationsForm.Instance().Init();
            NotifiesClass.Instance().Notify.OnRaiseInfoHandler += InfoRaised;
            NotifiesClass.Instance().Notify.OnRaiseErrorHandler += ErrorRaised;

            LanguageClass.Instance().OnRaiseLanguageChangedHandler += FBXpertMainForm_OnRaiseLanguageChangedHandler;
            NotificationsForm.Instance().SetMDIForm(this);

            string appfile = Application.StartupPath + "\\config\\AppSettings.json";

            if (File.Exists(appfile))
            {
                AppSettingsClass appset = fastJSON.JSON.ToObject(File.ReadAllText(appfile)) as AppSettingsClass;
                AppSettingsClass.Instance().Load(appset);
            }
            else
            {
                AppSettingsClass.Instance();
            }
            NotifiesClass.Instance().InfoThreshold = eInfoLevel.normal;

            //(eInfoLevel) AppSettingsClass.Instance().BehavierSettings.DebugThreshold;
        }
Exemple #3
0
        private void FBXpertMainForm_Load(object sender, EventArgs e)
        {
            //   LanguageClass.Instance().InitEmbedded(this,"FBXpert.Languages","Language","de");
            LanguageClass.Instance().InitFile(this, $@"{Application.StartupPath}\Languages\", "Language", ".", "de");
            LanguageClass.Instance().OnRaiseLanguageExceptionHandler += FbXpertMainForm_OnRaiseLanguageExceptionHandler;
            LanguageClass.Instance().ChangeLanguage(LanguageClass.German);

            Text = $@"FBXpert V {Assembly.GetAssembly(GetType()).GetName().Version}";
            Application.DoEvents();
            var cf = FBXInfo.Instance();

            cf.MdiParent = this;
            cf.Show();

            _dbe = DbExplorerForm.Instance(this);
            if (_dbe.ReadDatabaseDefinition())
            {
                Application.DoEvents();
                NotifiesClass.Instance().InfoThreshold = eInfoLevel.normal;
                _dbe.SetCaption();
                _dbe.Show();
                _dbe.Enabled = false;
                _dbe.MakeDatabaseTree(false);
                _dbe.OpenActiveDatabases();
                if (NotificationsForm.Instance().Visible)
                {
                    NotificationsForm.Instance().Close();
                }
                NotifiesClass.Instance().InfoThreshold = eInfoLevel.few;
            }
            DbExplorerForm.Instance().Enabled = true;
            LanguageClass.Instance().ChangeLanguage(LanguageClass.German);
        }
Exemple #4
0
        public void TestUpdateTranslation()
        {
            string translation = new LanguageClass(blobConnectionString, containerName).UpdateTranslation("delivery", "German", "Evergreens");

            //translation.Wait();
            Assert.AreEqual(translation.Substring(0, 5), "<?xml");
        }
Exemple #5
0
        public void TestDeleteFile()
        {
            string fileName = "german-stylesheet-ubl.xslt";
            bool   result   = new LanguageClass(blobConnectionString, containerName).DeleteFileFromBlob(fileName);

            Assert.AreNotEqual(result, fileName);
        }
Exemple #6
0
        public void RefreshLanguageText()
        {
            hsPageRefresh.Text       = LanguageClass.Instance().GetString("REFRESH");
            hsExportData.Text        = LanguageClass.Instance().GetString("EXPORT");
            hsCancelGettingData.Text = LanguageClass.Instance().GetString("CANCEL_READING");
            hsCancelExport.Text      = LanguageClass.Instance().GetString("CANCEL_READING");

            hsSaveSQL.Text      = LanguageClass.Instance().GetString("SAVE_SQL");
            hsLoadSQL.Text      = LanguageClass.Instance().GetString("LOAD_SQL");
            hsRunStatement.Text = LanguageClass.Instance().GetString("EXECUTE_SQL");

            hsRefreshExportData.Text   = LanguageClass.Instance().GetString("REFRESH");
            rbINSERT.Text              = LanguageClass.Instance().GetString("INSERT");
            rbUPDATE.Text              = LanguageClass.Instance().GetString("UPDATE");
            rbINSERTUPDATE.Text        = LanguageClass.Instance().GetString("INSERT_UPDATE");
            tabPageFIELDS.Text         = LanguageClass.Instance().GetString("FIELDS");
            tabPageDATA.Text           = LanguageClass.Instance().GetString("DATA");
            tabPageDependenciesTo.Text = LanguageClass.Instance().GetString("DEPENDENCIES_TO");

            tabPageExport.Text    = LanguageClass.Instance().GetString("EXPORT_DATA");
            tabPageMessages.Text  = LanguageClass.Instance().GetString("MESSAGES");
            gbMaxRows.Text        = LanguageClass.Instance().GetString("MAX_ROWS");
            cbExportToScreen.Text = LanguageClass.Instance().GetString("EXPORT_TO_SCREEN");
            cbExportToFile.Text   = LanguageClass.Instance().GetString("EXPORT_TO_FILE");
            gbExportFile.Text     = LanguageClass.Instance().GetString("FILE");
            gbInsertUpdate.Text   = LanguageClass.Instance().GetString("INSERT_UPDATE_TYPE");
        }
Exemple #7
0
        private void hsSaveSourceCodes_Click(object sender, EventArgs e)
        {
            var items = selDBObjects.CheckedItemDatas;

            pbExport.Minimum = 0;
            pbExport.Value   = 0;
            pbExport.Maximum = items.Count;
            if (ckDeleteOldSourceFiles.Checked)
            {
                string[] files = Directory.GetFiles(txtSourceCodePath.Text);
                foreach (string file in files)
                {
                    try
                    {
                        File.Delete($@"{file}");
                    }
                    catch (Exception ex)
                    {
                    }
                }
            }
            var gsource = MakeGlobalCode();

            try
            {
                var fi = new FileInfo(txtSourceCodePath.Text + "\\DBGlobalFunctionsClass.cs");
                if (fi.Directory != null && fi.Directory.Exists)
                {
                    File.WriteAllText(txtSourceCodePath.Text + "\\DBGlobalFunctionsClass.cs", gsource);
                }
            }
            catch (Exception ex)
            {
                _localNotify?.AddToERROR(AppStaticFunctionsClass.GetFormattedError($@"hsSaveSourceCodes_Click", ex));
            }


            foreach (var itm in items)
            {
                var source = itm.Text.StartsWith("Cb") ? MakeCbSourceCode(itm.Object) : MakeSourceCode(itm.Object);

                try
                {
                    var fi = new FileInfo(txtSourceCodePath.Text + "\\" + itm.Text + "Class.cs");
                    if (fi.Directory != null && fi.Directory.Exists)
                    {
                        File.WriteAllText(txtSourceCodePath.Text + "\\" + itm.Text + "Class.cs", source);
                    }
                }
                catch (Exception ex)
                {
                    _localNotify?.AddToERROR(AppStaticFunctionsClass.GetFormattedError($@"hsSaveSourceCodes_Click", ex));
                }

                pbExport.Value++;
                gbExportProgress.Text = LanguageClass.Instance().GetString("PROGRESS") + $@" ({pbExport.Value}/{pbExport.Maximum})";
                Application.DoEvents();
            }
        }
    IEnumerator SettingsStart()
    {
        while (!MainManager.GetComponent <Main>().isDone)
        {
            yield return(null);
        }
        while (!SettingsWindow.activeSelf)
        {
            yield return(null);
        }
        OffsetX = ResolutionManager.ScreenOffsetW;
        OffsetY = ResolutionManager.ScreenOffsetH;
        LangDropdown.ClearOptions();
        List <string> Languages = new List <string>();
        LanguageClass Language  = new LanguageClass();
        string        matching  = "*.lang";

        foreach (string file in Directory.GetFiles(FilesDataClass.FilePathLanguage, matching))
        {
            byte[] bytes = File.ReadAllBytes(file);
            string JSON  = Encoding.ASCII.GetString(bytes);
            Language = JsonUtility.FromJson <LanguageClass>(JSON);
            if (Language.Version == "v1")
            {
                if (Language.LanguageName != null || Language.LanguageName != "")
                {
                    Languages.Add(Language.LanguageName);
                }
            }
        }
        if (Languages.Count == 0)
        {
            //Regenerate language files
        }
        LangDropdown.AddOptions(Languages);
        LangDropdown.value = LangDropdown.options.FindIndex(option => option.text == CurrentLanguage);
        LangDropdown.RefreshShownValue();

        FSToggle.isOn         = Screen.fullScreen;
        QualityDropdown.value = QualitySettings.GetQualityLevel();
        Resolutions           = Screen.resolutions;
        ResDropdown.ClearOptions();
        List <string> options = new List <string>();
        int           CurrentResolutionIndex = 0;

        for (int i = 0; i < Resolutions.Length; i++)
        {
            string option = Resolutions[i].width + "x" + Resolutions[i].height;                                                                                         // + "@" + Resolutions[i].refreshRate + "Hz";
            options.Add(option);
            if (Resolutions[i].width == Screen.currentResolution.width && Resolutions[i].height == Screen.currentResolution.height && Resolutions[i].refreshRate == 60) // && Resolutions[i].refreshRate == Screen.currentResolution.refreshRate)
            {
                CurrentResolutionIndex = i;
            }
        }
        ResDropdown.AddOptions(options);
        ResDropdown.value = CurrentResolutionIndex;
        ResDropdown.RefreshShownValue();
        isDone = true;
    }
Exemple #9
0
 private void InfoRaised(object sender, MessageEventArgs k)
 {
     fctMessages.CurrentLineColor = Color.Blue;
     fctMessages.AppendText(k.Meldung);
     _messagesCount++;
     fctMessages.ScrollLeft();
     tabPageMessages.Text = Format(LanguageClass.Instance().GetString("MESSAGES_INFO_ERROR"), _messagesCount, _errorCount);
 }
Exemple #10
0
        public void RefreshLanguageText()
        {
            lblTableName.Text = LanguageClass.Instance().GetString("EVENTS_TRACKING");

            this.Text           = DevelopmentClass.Instance().GetDBInfo(_dbReg, LanguageClass.Instance().GetString("EVENTS_TRACKING"));
            hsSaveTRACKING.Text = LanguageClass.Instance().GetString("SAVE_TRACKING");
            hsLoadTRACKING.Text = LanguageClass.Instance().GetString("LOAD_TRACKING");
        }
Exemple #11
0
        public DatabaseCompareFrom(Form parent, DBRegistrationClass reg)
        {
            InitializeComponent();
            MdiParent = parent;
            _dbReg    = reg;

            LanguageClass.Instance().OnRaiseLanguageChangedHandler += LanguageChanged;
        }
Exemple #12
0
        private void LanguageChanged()
        {
            gbFoundLines.Text = LanguageClass.Instance().GetString("FoundLines");
            gbSearchCode.Text = LanguageClass.Instance().GetString("SEARCH");

            tabPageObjects.Text = LanguageClass.Instance().GetString("OBJECTS");
            tabPageOptions.Text = LanguageClass.Instance().GetString("SETTINGS");
        }
Exemple #13
0
 public void RefreshLanguage()
 {
     tsmiUtilities.Text     = LanguageClass.Instance().GetString("UTILITIES");
     tsmiNotifications.Text = LanguageClass.Instance().GetString("NOTIFICATIONS") + @" (" + (_errors + _notifications).ToString() + @")";
     tsmiShowWindows.Text   = LanguageClass.Instance().GetString("SHOWWINDOWS");
     tsmiErrors.Text        = LanguageClass.Instance().GetString("ERRORS") + @" (" + (_errors).ToString() + @")";
     Refresh();
 }
Exemple #14
0
 private void contextMenuStrip2_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     if (e.ClickedItem == tsmiDesignEarth)
     {
         var pc = new ProgressClockForm(this)
         {
             X = 50,
             Y = 200
         };
         pc.Show();
     }
     else if (e.ClickedItem == tsmiDesign)
     {
         AppDesign = ReloadDesign(eColorDesigns.Gray);
     }
     else if (e.ClickedItem == tsmiAppSettings)
     {
         var af = new AppSettingsForm(this);
         af.Show();
     }
     else if (e.ClickedItem == tsmiDatabaseDesign)
     {
         DatabaseDesignForm.Instance().SetParent(MdiParent);
         DatabaseDesignForm.Instance().Show();
     }
     else if (e.ClickedItem == tsmiCreateUUID)
     {
         var uuid = new UUIDForm(MdiParent);
         uuid.Show();
     }
     else if (e.ClickedItem == tsmiScripting)
     {
         var dbReg = new DBRegistrationClass();
         var dbm   = new ScriptingForm(dbReg);
         dbm.Show();
     }
     else if (e.ClickedItem == tsmiDatabasRegistration)
     {
         var cfg = new DatabaseConfigForm(Instance(), ActRegistrationObject)
         {
             Cloned = false
         };
         cfg.SetBearbeitenMode(EditStateClass.eBearbeiten.eEdit);
         cfg.Show();
     }
     else if (e.ClickedItem == tsmiGerman)
     {
         LanguageClass.Instance().ChangeLanguage(LanguageClass.German);
     }
     else if (e.ClickedItem == tsmiEnglish)
     {
         LanguageClass.Instance().ChangeLanguage(LanguageClass.English);
     }
     else if (e.ClickedItem == tsmiJapanese)
     {
         LanguageClass.Instance().ChangeLanguage(LanguageClass.Japanese);
     }
 }
Exemple #15
0
 private void FBXpertMainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     FormOnClosing = true;
     //CopyrightForm.Instance().Close();
     //DbExplorerForm.Instance().Close();
     DatabaseDefinitions.Instance().SerializeCurrent("Definition data changed");
     LanguageClass.Instance().OnRaiseLanguageChangedHandler -= FBXpertMainForm_OnRaiseLanguageChangedHandler;
     Application.Exit();
 }
Exemple #16
0
 public XmlDesignForm(Form parent, DBRegistrationClass reg)
 {
     InitializeComponent();
     MdiParent = parent;
     _dbReg    = reg;
     _localNotify.Notify.OnRaiseInfoHandler  += InfoRaised;
     _localNotify.Notify.OnRaiseErrorHandler += ErrorRaised;
     LanguageClass.Instance().OnRaiseLanguageChangedHandler += LanguageChanged;
 }
Exemple #17
0
        public HarpSlotsForm()
        {
            InitializeComponent();

            sharedFolder = $@"{Application.StartupPath}\temp\";


            FormInstances.Instance().HarpNotifies.Register4Info(NotifyInfoHandler);
            LanguageClass.Instance().RegisterChangeNotifiy(languageChanged);
        }
Exemple #18
0
        public async Task <HttpResponseMessage> Post([FromBody] ToTranslate toTranslate)
        {
            HttpResponseMessage response;
            string translatedWord = new LanguageClass(blobConnectionString, containerName).GetTranslation(toTranslate.TextToTranslate, toTranslate.ToLanguage);

            // call the trans service get resp
            response         = Request.CreateResponse(HttpStatusCode.OK);
            response.Content = new StringContent(translatedWord, Encoding.UTF8, "text/plain");
            return(response);
        }
Exemple #19
0
        public HttpResponseMessage UpdateTranslationPost([FromBody] UpdateTranslation updateTranslation)
        {
            HttpResponseMessage response;
            //Task<string> result = new LanguageClass(blobConnectionString, containerName).UpdateTranslation(selectedWord, (string)cmbLanguage.SelectedItem, txtTranslation.Text);
            string UpdateTranslation = new LanguageClass(blobConnectionString, containerName).UpdateTranslation(updateTranslation.SelectedWord, updateTranslation.Language, updateTranslation.TranslatedWord);

            response         = Request.CreateResponse(HttpStatusCode.OK);
            response.Content = new StringContent(UpdateTranslation, Encoding.UTF8, "Application/Json");
            return(response);
        }
Exemple #20
0
	public static void SetLanguage(Language lang){
		switch (lang) {
		case Language.Spanish:
			current = LanguageClass.Spanish();
			break;
		case Language.English:
			current = LanguageClass.English();
			break;
		}
	}
Exemple #21
0
        private void ErrorRaised(object sender, MessageEventArgs k)
        {
            fctMessages.CurrentLineColor = Color.Red;
            fctMessages.AppendText(k.Meldung);
            _errorCount++;
            fctMessages.ScrollLeft();

            object[] param = { _messagesCount, _errorCount };
            tabPageMessages.Text = LanguageClass.Instance().GetString("MESSAGES_INFO_ERROR", param);
        }
Exemple #22
0
        public void TestTranslate()
        {
            string        textToTranslate = "Hello world";
            string        toLanguage      = "German";
            string        fromLanguage    = "English";
            Task <string> translation     = new LanguageClass(blobConnectionString, containerName).translate(textToTranslate, toLanguage, fromLanguage);

            translation.Wait();
            Assert.AreNotEqual(translation, "");
        }
Exemple #23
0
        private void hsClearMessages_Click(object sender, EventArgs e)
        {
            fctMessages.Clear();
            messages_count = 0;
            error_count    = 0;
            var sb = new StringBuilder();

            sb.Append($@"{LanguageClass.Instance().GetString("MESSAGES")} ({messages_count}) ");
            sb.Append($@"{LanguageClass.Instance().GetString("ERRORS")} ({error_count})");
            tabPageMessages.Text = sb.ToString();
        }
Exemple #24
0
 private void ChangeLanguage_click(object sender, EventArgs e)
 {
     if (sender == deutschToolStripMenuItem)
     {
         LanguageClass.Instance().ChangeLanguage("de");
     }
     else if (sender == englischToolStripMenuItem)
     {
         LanguageClass.Instance().ChangeLanguage("en");
     }
 }
        private void hsLoad_Click(object sender, EventArgs e)
        {
            openFileDialog1.DefaultExt = "*.fdb";
            openFileDialog1.Filter     = @"Firebird DB|*.fdb|All|*.*";
            openFileDialog1.Title      = LanguageClass.Instance().GetString("SELECT_DATABSE");

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                txtLocation.Text = openFileDialog1.FileName;
            }
        }
Exemple #26
0
 private void LanguageChanged()
 {
     gbExportProgress.Text  = LanguageClass.Instance().GetString("PROGRESS");
     hsSaveSourceCodes.Text = LanguageClass.Instance().GetString("CreateSourcecode");
     gbSourceCode.Text      = LanguageClass.Instance().GetString("SourcecodePath");
     gbFoundLines.Text      = LanguageClass.Instance().GetString("FoundLines");
     gbSearchCode.Text      = LanguageClass.Instance().GetString("SEARCH");
     object[] param = { _messagesCount, _errorCount };
     tabPageMessages.Text         = LanguageClass.Instance().GetString("MESSAGES_INFO_ERROR", param);
     tabPageCreateAttributes.Text = LanguageClass.Instance().GetString("SETTINGS");
     hsClearMessages.Text         = LanguageClass.Instance().GetString("CLEAR_ENTRIES");
 }
Exemple #27
0
 void InfoRaised(object sender, MessageEventArgs k)
 {
     if (k.Key.ToString() == "CLEAR_NOTIFIES")
     {
         _notifications = 0;
     }
     else
     {
         _notifications++;
     }
     tsmiNotifications.Text = LanguageClass.Instance().GetString("NOTIFICATIONS") + @" (" + (_errors + _notifications).ToString() + @")";
     tsmiNotes.Text         = LanguageClass.Instance().GetString("NOTES") + @" (" + (_notifications).ToString() + @")";
 }
 public string Get(string fileName)
 {
     try
     {
         string xmlFile      = fileName + "TranslatedFile.xml";
         string fileContents = new LanguageClass(blobConnectionString, containerName).DownloadFileFromBlob(xmlFile);
         return(fileContents);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemple #29
0
    public static void SetLanguage(Language lang)
    {
        switch (lang)
        {
        case Language.Spanish:
            current = LanguageClass.Spanish();
            break;

        case Language.English:
            current = LanguageClass.English();
            break;
        }
    }
Exemple #30
0
 public static CopyrightForm Instance(Form parent)
 {
     if (_instance != null)
     {
         return(_instance);
     }
     _instance = new CopyrightForm
     {
         MdiParent = parent
     };
     LanguageClass.Instance().OnRaiseLanguageChangedHandler += CopyrightForm_OnRaiseLanguageChangedHandler;
     return(_instance);
 }
Exemple #31
0
        private void AppMainForm_Load(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Minimized;

            this.Visible = true;
            this.LayoutMdi(System.Windows.Forms.MdiLayout.ArrangeIcons);

            Assembly asb = System.Reflection.Assembly.GetExecutingAssembly();

            AppName    = asb.GetName().ToString().Split(',')[0];
            AppVersion = asb.GetName().Version.ToString();
            string nm = asb.GetName().Name;

            object[] cp = asb.GetCustomAttributes(true);
            s = (AssemblyCompanyAttribute)cp[6];

            LanguageClass.Instance().InitEmbedded(this.GetType().Assembly, "HarpMeNow", "LanguageResource", "_", SelectedClass.Instance().Culture, LanguageClass.English);
            LanguageClass.Instance().ChangeLanguage(SelectedClass.Instance().Culture);
            SetLanguageControls();
            FormInstances.Create(this);
            FormInstances.Instance().LoadHarps();


            FormInstances.Instance().soundAttributeForm.Show();
            FormInstances.Instance().soundAttributeForm.SendToBack();
            FormInstances.Instance().harpSlotsForm.Show();
            FormInstances.Instance().harpSlotsForm.SendToBack();
            FormInstances.Instance().songSequenceForm.Show();
            FormInstances.Instance().songSequenceForm.SendToBack();
            FormInstances.Instance().harpSequenceForm.Show();
            FormInstances.Instance().harpSequenceForm.SendToBack();
            FormInstances.Instance().harpPlayForm.Show();
            FormInstances.Instance().harpPlayForm.SendToBack();

            FormInstances.Instance().harpPlayForm.Top = FormInstances.Instance().harpSlotsForm.Top;
            FormInstances.Instance().harpPlayForm.Left = FormInstances.Instance().harpSlotsForm.Left + FormInstances.Instance().harpSlotsForm.Width + 16;
            FormInstances.Instance().harpPlayForm.Height = FormInstances.Instance().harpSlotsForm.Height;
            FormInstances.Instance().songSequenceForm.Top = FormInstances.Instance().harpSlotsForm.Top + FormInstances.Instance().harpSlotsForm.Height + 16;
            FormInstances.Instance().songSequenceForm.Left = FormInstances.Instance().harpSlotsForm.Left;
            FormInstances.Instance().harpSequenceForm.Top = FormInstances.Instance().harpSlotsForm.Top + FormInstances.Instance().harpSlotsForm.Height + 16;
            FormInstances.Instance().harpSequenceForm.Left = FormInstances.Instance().songSequenceForm.Left + FormInstances.Instance().songSequenceForm.Width + 16;
            FormInstances.Instance().soundAttributeForm.Top = FormInstances.Instance().harpSequenceForm.Top;
            FormInstances.Instance().soundAttributeForm.Left = FormInstances.Instance().harpSequenceForm.Left + FormInstances.Instance().harpSequenceForm.Width + 16;

            this.WindowState = FormWindowState.Maximized;
            var cf = FBXInfo.Instance(this);

            cf.MdiParent = this;
            cf.Show();
            SetPositions();
        }
Exemple #32
0
		public static LanguageClass Spanish(){
			LanguageClass lc = new LanguageClass ();
			lc.languageName = "Español";
			lc.code = "ES";
			lc.pair = new Dictionary<string, string> ();
			lc.pair.Add ("_LOCAL_", "Local");
			lc.pair.Add ("_ROOMNAME_", "Sala");
			lc.pair.Add ("_JOIN_", "Unirse");
			lc.pair.Add ("_CREATE_", "Crear");
			lc.pair.Add ("_READY_", "Listo");
			lc.pair.Add ("_BACK_", "Atras");
			lc.pair.Add ("_AWIN_", "Arkanoid ganó");
			lc.pair.Add ("_TWIN_", "Tetris ganó");
			lc.pair.Add ("_WIN_", "Has ganado");
			lc.pair.Add ("_LOSE_", "Has perdido");
			lc.pair.Add ("_ROUNDSTARTS_", "La ronda comienza en");
			lc.pair.Add ("_LANG_", lc.languageName);
			lc.pair.Add ("_LANGCODE_", lc.code);
			return lc;
		}
Exemple #33
0
		public static LanguageClass English(){
			LanguageClass lc = new LanguageClass ();
			lc.languageName = "English";
			lc.code = "EN";
			lc.pair = new Dictionary<string, string> ();
			lc.pair.Add ("_LOCAL_", "Local");
			lc.pair.Add ("_ROOMNAME_", "Room Name");
			lc.pair.Add ("_JOIN_", "Join");
			lc.pair.Add ("_CREATE_", "Create");
			lc.pair.Add ("_READY_", "I'm ready");
			lc.pair.Add ("_BACK_", "Back");
			lc.pair.Add ("_AWIN_", "Arkanoid win");
			lc.pair.Add ("_TWIN_", "Tetris win");
			lc.pair.Add ("_WIN_", "You win");
			lc.pair.Add ("_LOSE_", "You lose");
			lc.pair.Add ("_ROUNDSTARTS_", "Round starts in");
			lc.pair.Add ("_LANG_", lc.languageName);
			lc.pair.Add ("_LANGCODE_", lc.code);
			return lc;
		}