private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetParticle(); try { FloatHelpTitle = templang[0]; FloatConfirm = templang[1]; FloatCancel = templang[2]; tabParticleClear.Content = templang[3]; tabParticleCreate.Content = templang[4]; checkBtn.Content = templang[5]; tabParticleCopy.Content = templang[6]; this.Title = templang[8]; ParticleChooseEffect.Content = templang[9]; tabParticleCN.Content = templang[10]; tabParticleEN.Content = templang[11]; ParticleXYZ.Content = templang[12]; ParticleDxyz.Content = templang[13]; ParticleSpeed.Content = templang[14]; ParticleCount.Content = templang[15]; tabParticleXNum.Content = templang[16]; ParticleHelpStr = templang[17]; FloatErrorTitle = templang[18]; FloatHelpFileCantFind = templang[19]; colorBtn.Content = templang[20]; } catch (System.Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetAdv(); try { FloatHelpTitle = templang[0]; FloatConfirm = templang[1]; FloatCancel = templang[2]; clearBtn.Content = templang[3]; createBtn.Content = templang[4]; AdvNum1 = templang[8]; AdvNum2 = templang[9]; AdvNeedNextBtn2Save = templang[10]; AdvNullSel = templang[11]; AdvFirstPage = templang[12]; AdvAnyPage = templang[13]; AdvCanBroke = templang[14]; AdvCanPlace = templang[15]; this.Title = templang[16]; tabRPGOnlyBroke.Content = templang[21]; tabRPGOnlyBrokePre.Content = templang[22]; tabRPGOnlyPlacePre.Content = templang[22]; tabRPGOnlyBrokeNext.Content = templang[23]; tabRPGOnlyPlaceNext.Content = templang[23]; tabRPGOnlyPlace.Content = templang[24]; AdvHelpStr = templang[25]; FloatErrorTitle = templang[26]; FloatHelpFileCantFind = templang[27]; } catch (System.Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetEffect(); try { FloatErrorTitle = templang[0]; FloatHelpTitle = templang[1]; FloatConfirm = templang[2]; FloatCancel = templang[3]; atBtn.Content = templang[4]; tabEffectClear.Content = templang[5]; tabEffectCreate.Content = templang[6]; checkBtn.Content = templang[7]; tabEffectCopy.Content = templang[8]; EffectChooseEffect = templang[10]; EffectNotChooseError = templang[11]; this.Title = templang[12]; EffectChooseEffect2.Content = templang[13]; tabEffectSelName.Content = templang[14]; tabEffectSelID.Content = templang[15]; EffectTime.Content = templang[16]; EffectLevel.Content = templang[17]; tabEffectHide.Content = templang[18]; tabEffectPlay.Content = templang[19]; EffectHelpStr = templang[20]; FloatHelpFileCantFind = templang[21]; } catch (Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetRecipe(); try { clearBtn.Content = templang[0]; createBtn.Content = templang[1]; copyBtn.Content = templang[2]; checkBtn.Content = templang[3]; FloatErrorTitle = templang[4]; FloatHelpFileCantFind = templang[5]; FloatConfirm = templang[6]; FloatCancel = templang[7]; this.Title = templang[8]; rbShaped.Content = templang[9]; rbShapeless.Content = templang[10]; labelGroup.Content = templang[11]; gShaped.Header = templang[12]; langSharplessHeader1 = templang[13]; langSharplessHeader2 = templang[14]; labelResult.Content = templang[15]; LootTableSaveTitle = templang[16]; } catch (Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetReplaceitem(); try { FloatHelpTitle = templang[0]; FloatConfirm = templang[1]; FloatCancel = templang[2]; atBtn.Content = templang[3]; clearBtn.Content = templang[4]; createBtn.Content = templang[5]; checkBtn.Content = templang[6]; copyBtn.Content = templang[7]; ReplaceItemHelpStr = templang[9]; this.Title = templang[10]; tabRItemEntity.Content = templang[11]; tabRItemBlock.Content = templang[12]; tabRItemXNum.Content = templang[13]; ReplaceItemX.Content = templang[14]; attrBtn.Content = templang[15]; ReplaceItemMeta.Content = templang[16]; ReplaceItemCount.Content = templang[17]; tabRItemHasEnchant.Content = templang[18]; tabRItemHasNL.Content = templang[19]; tabRItemHasAttr.Content = templang[20]; tabRItemUnbreaking.Content = templang[21]; FloatErrorTitle = templang[22]; FloatHelpFileCantFind = templang[23]; } catch (System.Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetCustomCreate(); try { CCStep0 = templang[0]; CCStep1 = templang[1]; CCStep2 = templang[2]; CCStep3 = templang[3]; CCStep4 = templang[4]; CCStep5 = templang[5]; CCStep6 = templang[6]; CCBack = templang[8]; CCFront = templang[9]; this.Title = templang[10]; CCTip1.Content = templang[11]; CCTip2.Content = templang[12]; CCTip3.Content = templang[13]; b1.Content = templang[14]; b2.Content = templang[14]; b3.Content = templang[14]; b4.Content = templang[14]; b5.Content = templang[14]; b6.Content = templang[14]; b7.Content = templang[14]; b8.Content = templang[14]; b9.Content = templang[14]; b1_Copy.Content = templang[14]; b2_Copy.Content = templang[14]; b3_Copy.Content = templang[14]; b4_Copy.Content = templang[14]; b5_Copy.Content = templang[14]; b6_Copy.Content = templang[14]; b7_Copy.Content = templang[14]; b8_Copy.Content = templang[14]; b9_Copy.Content = templang[14]; CustomNameCheck.Content = templang[15]; CustomNameCheck_Copy.Content = templang[15]; CCTip4.Content = templang[16]; bCreate.Content = templang[17]; CCChooseDirection.Content = templang[18]; East.Content = templang[19]; South.Content = templang[20]; West.Content = templang[21]; North.Content = templang[22]; FloatErrorTitle = templang[23]; FloatHelpFileCantFind = templang[24]; FloatConfirm = templang[25]; FloatCancel = templang[26]; } catch (System.Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); System.Collections.Generic.List<string> templang = setlang.SetUpdate(); try { this.Title = templang[0] + " - v" + version + " -> v" + getversion; label.Content = templang[1]; pass.Content = templang[2]; } catch (System.Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetAt(); try { FloatTipTitle = templang[0]; FloatHelpTitle = templang[1]; FloatConfirm = templang[2]; FloatCancel = templang[3]; clearBtn.Content = templang[4]; createBtn.Content = templang[5]; checkBtn.Content = templang[6]; copyBtn.Content = templang[7]; this.Title = templang[9]; //AtPlzCloseWindow = templang[10]; mUN.Content = templang[11]; teamUN.Content = templang[11]; nameUN.Content = templang[11]; typeUN.Content = templang[11]; xyzCheck.Content = templang[12]; dxCheck.Content = templang[13]; rCheck.Content = templang[16]; rmCheck.Content = templang[17]; mCheck.Content = templang[18]; rxCheck.Content = templang[19]; rxmCheck.Content = templang[20]; cCheck.Content = templang[21]; ryCheck.Content = templang[22]; rymCheck.Content = templang[23]; lCheck.Content = templang[24]; lmCheck.Content = templang[25]; scoreCheck.Content = templang[26]; scoreMinCheck.Content = templang[27]; teamCheck.Content = templang[28]; nameCheck.Content = templang[29]; typeCheck.Content = templang[31]; AtTip.Content = templang[32]; flyCheck.Content = templang[33]; handCheck.Content = templang[34]; rideCheck.Content = templang[35]; AtHelpStr = templang[36]; tagCheck.Content = templang[37]; FloatErrorTitle = templang[38]; FloatHelpFileCantFind = templang[39]; itemCheck.Content = templang[40]; InvCheck.Content = templang[41]; InvCheckCount.ToolTip = templang[42]; } catch (Exception) { /* throw; */ } }
public async Task UpdateLang(long userId, SetLang language) { var user = await GetUser(userId); if (user.Lang != language.Lang) { user.Lang = language.Lang; if (await Context.SaveChangesAsync() != 1) { throw new DatabaseException("lang_update_failed"); } } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetSuperflat(); try { FloatHelpTitle = templang[0]; FloatConfirm = templang[1]; FloatCancel = templang[2]; clearBtn.Content = templang[3]; createBtn.Content = templang[4]; checkBtn.Content = templang[5]; copyBtn.Content = templang[6]; SuperflatAir = templang[8]; SuperflatFirstLayer = templang[9]; SuperflatNum1 = templang[10]; SuperflatNum2 = templang[11]; SuperflatAnyLayer = templang[12]; SuperflatAtLeastClickOnce = templang[13]; SuperflatHelpStr = templang[14]; SuperflatHelpVillage = templang[15]; SuperflatHelpStronghold = templang[16]; SuperflatHelpMineshaft = templang[17]; SuperflatHelpBiome = templang[18]; this.Title = templang[19]; preBtn.Content = templang[20]; nextBtn.Content = templang[21]; GroupMineshaft.Header = " " + templang[22]; CheckMineshaftChance.Content = templang[23]; GroupVillage.Header = " " + templang[24]; CheckVillageSize.Content = templang[25]; CheckVillageDistance.Content = templang[26]; GroupStronghold.Header = " " + templang[27]; CheckStrongholdCount.Content = templang[28]; CheckStrongholdDistance.Content = templang[29]; CheckStrongholdSpread.Content = templang[30]; GroupBiome.Header = " " + templang[31]; CheckBiomeChance.Content = templang[32]; CheckDungeon.Content = templang[33]; CheckDecoration.Content = templang[34]; CheckLake.Content = templang[35]; CheckLavaLake.Content = templang[36]; CheckOceanmonument.Content = templang[37]; FloatErrorTitle = templang[39]; FloatHelpFileCantFind = templang[40]; } catch (System.Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetCheck(); try { this.Title = templang[0]; favouriteText.Text = templang[1]; CheckCreate = templang[2]; FloatErrorTitle = templang[3]; FloatHelpFileCantFind = templang[4]; FloatConfirm = templang[5]; FloatCancel = templang[6]; } catch (Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetJsonOpen(); try { this.Title = templang[0]; LoottableBtn.Content = templang[1]; AdventureBtn.Content = templang[2]; RecipeBtn.Content = templang[3]; FloatErrorTitle = templang[4]; FloatHelpFileCantFind = templang[5]; FloatConfirm = templang[6]; FloatCancel = templang[7]; } catch (Exception) { /* throw; */ } }
private void addLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetAbout(); this.Title = templang[0]; AboutP.Content = templang[1] + "\r\n\r\n" + templang[2]; mail.Content = "@" + templang[3]; website.Content = templang[4]; AboutP2 = "data:text/html;charset=utf-8;base64," + templang[5]; AboutThanksTitle.Content = templang[6]; AboutT.Content = templang[7] + "\r\n" + templang[8]; ieONStr = templang[9]; ieOFFStr = templang[10]; FloatErrorTitle = templang[11]; FloatHelpFileCantFind = templang[12]; FloatConfirm = templang[13]; FloatCancel = templang[14]; }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetColorSel(); try { BtnCreate = templang[0]; Title = templang[1]; Red.Content = templang[2]; Green.Content = templang[3]; Blue.Content = templang[4]; FloatErrorTitle = templang[5]; FloatHelpFileCantFind = templang[6]; FloatConfirm = templang[7]; FloatCancel = templang[8]; } catch (Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetFavourite(); try { FloatHelpTitle = templang[0]; FloatConfirm = templang[1]; FloatCancel = templang[2]; FavouriteIndexError = templang[3]; this.Title = templang[4]; FavouriteTip1 = templang[5]; FavouriteTip2 = templang[6]; FavouriteHelpStr = templang[7]; FloatErrorTitle = templang[8]; FloatHelpFileCantFind = templang[9]; } catch (Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetFixColorCode(); try { FColorTitle = templang[0]; FColorClickMe = templang[1]; FColorCopy = templang[2]; colorBox.ToolTip = templang[3]; fixColorBtn.ToolTip = templang[4]; fixColorSelCB.ToolTip = templang[5]; fixColorSelSign.ToolTip = templang[6]; FloatErrorTitle = templang[7]; FloatHelpFileCantFind = templang[8]; FloatConfirm = templang[9]; FloatCancel = templang[10]; } catch (Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetFireworks(); try { FloatHelpTitle = templang[0]; FloatConfirm = templang[1]; FloatCancel = templang[2]; clearBtn.Content = templang[3]; createBtn.Content = templang[4]; checkBtn.Content = templang[5]; copyBtn.Content = templang[6]; FireworkNum1 = templang[8]; FireworkNum2 = templang[9]; FireworkFirstPage = templang[10]; FireworkAnyPage = templang[11]; FireworkColorStr = templang[12]; FireworkAtLeastClickOnce = templang[13]; FireworkHelpStr = templang[14]; this.Title = templang[15]; FireworkFlyTime.Content = templang[16]; FireworkFlyHeight.Content = templang[17]; FireworkX.Content = templang[18]; FireworkY.Content = templang[19]; FireworkZ.Content = templang[20]; tabFireXNum.Content = templang[21]; tabFireCreateItem.Content = templang[22]; tabFireOnlyStar.Content = templang[23]; FireworkFlicker.Content = templang[24]; FireworkIsTrail.Content = templang[25]; FireworkType.Content = templang[26]; FireworkColor.Content = templang[27]; FireworkFadeColor.Content = templang[28]; tabFirePre.Content = templang[29]; tabFireNext.Content = templang[30]; } catch (System.Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetSpreadPlayer(); try { FloatHelpTitle = templang[0]; FloatConfirm = templang[1]; FloatCancel = templang[2]; atBtn.Content = templang[3]; clearBtn.Content = templang[4]; createBtn.Content = templang[5]; checkBtn.Content = templang[6]; copyBtn.Content = templang[7]; this.Title = templang[9]; SpreadPlayerMinRange.Content = templang[10]; SpreadPlayerMaxRange.Content = templang[11]; tabSPTeam.Content = templang[12]; SpreadPlayerHelpStr = templang[13]; FloatErrorTitle = templang[14]; FloatHelpFileCantFind = templang[15]; } catch (System.Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetTestfor(); try { FloatHelpTitle = templang[0]; FloatConfirm = templang[1]; FloatCancel = templang[2]; clearBtn.Content = templang[3]; createBtn.Content = templang[4]; checkBtn.Content = templang[5]; copyBtn.Content = templang[6]; TestforHelpStr = templang[8]; this.Title = templang[9]; atBtn.Content = templang[10]; FloatErrorTitle = templang[11]; FloatHelpFileCantFind = templang[12]; rbTestfor.ToolTip = templang[13]; rbExecute.ToolTip = templang[14]; detectGpb.Header = templang[15]; detectCheck.ToolTip = templang[16]; x.ToolTip = templang[18]; y.ToolTip = templang[19]; z.ToolTip = templang[20]; executeCmd.ToolTip = templang[21]; itemSel.ToolTip = templang[22]; x2.ToolTip = templang[23]; y2.ToolTip = templang[24]; z2.ToolTip = templang[25]; blockData.ToolTip = templang[26]; getBlockBtn.Content = templang[27]; getBlockBtn.ToolTip = templang[28]; } catch (System.Exception) { /* throw; */ } }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetBanner(); try { FloatHelpTitle = templang[0]; FloatConfirm = templang[1]; FloatCancel = templang[2]; clearBtn.Content = templang[3]; createBtn.Content = templang[4]; checkBtn.Content = templang[5]; copyBtn.Content = templang[6]; BannerNum1 = templang[8]; BannerNum2 = templang[9]; BannerFirstLayer = templang[10]; BannerAnyLayer = templang[11]; BannerAtLeastClickOnce = templang[12]; this.Title = templang[13]; tabBannerGive.Content = templang[14]; tabBannerSetblock.Content = templang[15]; BannerBaseColor.Content = templang[16]; BannerType.Content = templang[17]; BannerColor.Content = templang[18]; tabBannerHasMoreAttr.Content = templang[19]; enchantMoreGetBtn.Content = templang[20]; tabBannerShow.Content = templang[21]; tabBannerPre.Content = templang[22]; tabBannerNext.Content = templang[23]; ShieldCheck.Content = templang[24]; BannerHelpStr = templang[25]; FloatErrorTitle = templang[26]; FloatHelpFileCantFind = templang[27]; } catch (Exception) { /* throw; */ } }
public async Task <IActionResult> SetLang([FromBody] SetLang newLanguage) { await UserService.UpdateLang(GetCurrentUserID(), newLanguage); return(Ok()); }
private void appLanguage() { SetLang setlang = new SetLang(); List <string> templang = setlang.SetOther(); try { FloatHelpTitle = templang[0]; FloatConfirm = templang[1]; FloatCancel = templang[2]; tabOther1HatCreate.Content = templang[3]; tabOther1WordCreate.Content = templang[3]; tabOther1ItemFlyCreate.Content = templang[3]; tabOther1TestforInvCreate.Content = templang[3]; tabOther1TestforHotCreate.Content = templang[3]; tabOther1ClearCreate.Content = templang[3]; tabOther1GetHeadCreate.Content = templang[3]; tabOther1GatewayBtn.Content = templang[3]; tabOther1RideCreate.Content = templang[3]; tabOther1WordRemove.Content = templang[4]; tabOther1ItemFlyRemove.Content = templang[4]; tabOther1CustomCraftOpenBtn.Content = templang[5]; tabOther1ArmorStandOpenBtn.Content = templang[5]; tabOther1SuperflatOpenBtn.Content = templang[5]; OtherHelpHat = templang[6]; OtherHelpWord = templang[7]; OtherHelpFlyItem = templang[8]; OtherHelpTestforInv = templang[11]; OtherHelpTestforHotbar = templang[12]; OtherHelpClear = templang[16]; OtherHelpGetHead = templang[17]; OtherHelpGetHeadNeedInternet = templang[18]; OtherHelpGetHeadHelp = templang[19]; OtherHelpGetHeadTitle = templang[20]; OtherHelpHeadLibNeedLoading = templang[21]; OtherHelpHeadLibNeedLoading2 = templang[22]; OtherHelpCustomCraft = templang[23]; OtherHelpArmorStand = templang[24]; OtherHelpArmorStandNeedInternet = templang[25]; OtherHelpArmorStand2 = templang[26]; OtherHelpSuperflat = templang[27]; OtherHelpGateway = templang[28]; OtherHelpSofa = templang[29]; OtherHelpSofa1 = templang[30]; tabOther1RideName.Text = templang[30]; OtherHelpSofa2 = templang[31]; OtherHelpSofaHelp1 = templang[32]; OtherHelpSofaHelp2 = templang[33]; OtherHelpSofaOR = templang[34]; OtherHelpSofaHelp3 = templang[35]; OtherHelpSofaHelp4 = templang[36]; this.Title = templang[37]; OtherHat.Content = templang[38]; OtherFlyWord.Content = templang[39]; OtherFlyItem.Content = templang[40]; tabOther1ItemFlyCantGet.Content = templang[41]; OtherTestforInv.Content = templang[44]; OtherTestforHotbar.Content = templang[45]; OtherClear.Content = templang[48]; tabOther1ClearHasName.Content = templang[49]; tabOther1ClearItemSel.Content = templang[50]; tabOther1ClearHasEnchant.Content = templang[51]; tabOther1ClearHasAttr.Content = templang[52]; OtherHead.Content = templang[53]; tabOther1GetHeadLib.Content = templang[54]; tabOther1GetHeadAA.Content = templang[55]; tabOther1GetHeadFullBody.Content = templang[56]; tabOther1GetHeadCode.Content = templang[57]; OtherCustomCraft.Content = templang[58]; OtherArmorStand.Content = templang[59]; OtherSuperflat.Content = templang[60]; OtherGateway.Content = templang[61]; OtherSofa.Content = templang[62]; tabOther1RideChest.Content = templang[63]; tabOther1RideHide.Content = templang[64]; tabOther1RideRi.Content = templang[65]; OtherListNorth = templang[66]; OtherListSouth = templang[67]; OtherListWest = templang[68]; OtherListEast = templang[69]; FloatErrorTitle = templang[72]; FloatHelpFileCantFind = templang[73]; OtherHelpArmorStand3 = templang[74]; } catch (Exception) { /* throw; */ } }