added all languages

This commit is contained in:
Asval
2019-06-21 13:11:35 +02:00
parent 4afbd6a1fe
commit 632d6a071b
7 changed files with 177 additions and 100 deletions

View File

@@ -179,6 +179,42 @@ namespace FModel
all = "Completa LOS DESAFÍOS para conseguir el objeto de recompensa";
any = "Completa " + count + " DE LOS DESAFÍOS para conseguir el objeto de recompensa";
goto default;
case "Arabic":
all = "أكمل جميع التحديات لتربح عنصر المكافأة";
any = "أكمل أيًا " + count + " من التحديات للحصول على عنصر المكافأة";
goto default;
case "Japanese":
all = "全個のチャレンジをクリアして報酬アイテムを獲得する";
any = "いずれか" + count + "個のチャレンジをクリアして、報酬アイテムを獲得する";
goto default;
case "Korean":
all = "개의 도전을 모두 완료하고 보상 아이템을 얻으세요.";
any = count + "개</>의 도전 완료";
goto default;
case "Polish":
all = "Ukończ wszystkie wyzwań, by otrzymać tę nagrodę";
any = "Ukończ " + count + " dowolnych wyzwań, by otrzymać tę nagrodę";
goto default;
case "Portuguese (Brazil)":
all = "Conclua TODOS OS DESAFIOS para receber o item de recompensa";
any = "Conclua " + count + " DESAFIO(S) para receber o item de recompensa";
goto default;
case "Russian":
all = "Выполните все испытания, чтобы получить награду";
any = "Выполните не менее " + count + " любых испытаний для награды";
goto default;
case "Turkish":
all = "Ödülü kazanmak için GÖREVI DE tamamla.";
any = "Ödülü kazanmak için herhangi " + count + " GÖREVI tamamla.";
goto default;
case "Chinese (S)":
all = "完成所有个挑战以赢得奖励物品";
any = "完成任意" + count + "个挑战以赢得奖励物品";
goto default;
case "Traditional Chinese":
all = "完成所有個挑戰以贏得獎勵物品";
any = "完成任意" + count + "個挑戰以贏得獎勵物品";
goto default;
default:
if (count == "-1")
{
@@ -190,15 +226,6 @@ namespace FModel
}
break;
}
if (count == "-1")
{
toDrawOn.DrawString(all, new Font(FontUtilities.pfc.Families[1], 50), new SolidBrush(Color.White), new Point(100, theY + 22));
}
else
{
toDrawOn.DrawString(any, new Font(FontUtilities.pfc.Families[1], 50), new SolidBrush(Color.White), new Point(100, theY + 22));
}
}
/// <summary>

View File

@@ -1,4 +1,4 @@
using csharp_wick;
using csharp_wick;
using FModel.Parser.Items;
using FModel.Properties;
using Newtonsoft.Json;
@@ -25,49 +25,52 @@ namespace FModel
public static void DrawTexts(ItemsIdParser theItem, Graphics myGraphic, string mode)
{
DrawDisplayName(theItem, myGraphic);
DrawDescription(theItem, myGraphic);
SetTexts(theItem);
switch (mode)
using (myGraphic)
{
case "athIteDef":
DrawToLeft(ShortDescription, myGraphic);
DrawToRight(CosmeticSource, myGraphic);
break;
case "consAndWeap":
DrawToRight(ItemAction, myGraphic);
if (MainWindow.ExtractedFilePath.Contains("Items\\Consumables\\"))
{
DrawToLeft(MaxStackSize, myGraphic);
}
break;
case "variant":
DrawToLeft(ShortDescription, myGraphic);
DrawToRight(CosmeticId, myGraphic);
break;
case "stwHeroes":
DrawToRight(HeroType, myGraphic);
DrawPower(myGraphic);
break;
case "stwDefenders":
DrawToRight(DefenderType, myGraphic);
DrawPower(myGraphic);
break;
}
DrawDisplayName(theItem, myGraphic);
DrawDescription(theItem, myGraphic);
if (theItem.ExportType == "AthenaItemWrapDefinition" && Checking.WasFeatured && ItemIcon.ItemIconPath.Contains("WeaponRenders"))
{
DrawAdditionalImage(theItem, myGraphic);
}
if (theItem.AmmoData != null && theItem.AmmoData.AssetPathName.Contains("Ammo")) //TO AVOID TRIGGERING CONSUMABLES, NAME SHOULD CONTAIN "AMMO"
{
ItemIcon.GetAmmoData(theItem.AmmoData.AssetPathName, myGraphic);
DrawWeaponStat(WeaponRowName, myGraphic);
}
SetTexts(theItem);
DrawCosmeticUff(theItem, myGraphic);
switch (mode)
{
case "athIteDef":
DrawToLeft(ShortDescription, myGraphic);
DrawToRight(CosmeticSource, myGraphic);
break;
case "consAndWeap":
DrawToRight(ItemAction, myGraphic);
if (MainWindow.ExtractedFilePath.Contains("Items\\Consumables\\"))
{
DrawToLeft(MaxStackSize, myGraphic);
}
break;
case "variant":
DrawToLeft(ShortDescription, myGraphic);
DrawToRight(CosmeticId, myGraphic);
break;
case "stwHeroes":
DrawToRight(HeroType, myGraphic);
DrawPower(myGraphic);
break;
case "stwDefenders":
DrawToRight(DefenderType, myGraphic);
DrawPower(myGraphic);
break;
}
if (theItem.ExportType == "AthenaItemWrapDefinition" && Checking.WasFeatured && ItemIcon.ItemIconPath.Contains("WeaponRenders"))
{
DrawAdditionalImage(theItem, myGraphic);
}
if (theItem.AmmoData != null && theItem.AmmoData.AssetPathName.Contains("Ammo")) //TO AVOID TRIGGERING CONSUMABLES, NAME SHOULD CONTAIN "AMMO"
{
ItemIcon.GetAmmoData(theItem.AmmoData.AssetPathName, myGraphic);
DrawWeaponStat(WeaponRowName, myGraphic);
}
DrawCosmeticUff(theItem, myGraphic);
}
}
/// <summary>
@@ -96,6 +99,15 @@ namespace FModel
case "Italian":
case "Spanish":
case "Spanish (LA)":
case "Arabic":
case "Japanese":
case "Korean":
case "Polish":
case "Portuguese (Brazil)":
case "Russian":
case "Turkish":
case "Chinese (S)":
case "Traditional Chinese":
ShortDescription = theItem.ShortDescription != null ? SearchResource.getTextByKey(theItem.ShortDescription.Key, theItem.ShortDescription.SourceString) : "";
break;
default:
@@ -372,6 +384,24 @@ namespace FModel
case "Spanish":
case "Spanish (LA)":
return " segundos";
case "Arabic":
return " الثواني"; //todo: right to left
case "Japanese":
return " 秒"; //todo: right to left?
case "Korean":
return " 초"; //todo: right to left?
case "Polish":
return " s";
case "Portuguese (Brazil)":
return " segundo(s)";
case "Russian":
return " сек";
case "Turkish":
return " saniye";
case "Chinese (S)":
return " 秒"; //todo: right to left?
case "Traditional Chinese":
return " 秒"; //todo: right to left?
default:
return " seconds";
}

View File

@@ -1,5 +1,3 @@
using System;
namespace FModel
{
static class LoadLocRes
@@ -25,6 +23,33 @@ namespace FModel
case "Spanish (LA)":
myLocRes = getMyLocRes("es-419");
break;
case "Arabic":
myLocRes = getMyLocRes("ar");
break;
case "Japanese":
myLocRes = getMyLocRes("ja");
break;
case "Korean":
myLocRes = getMyLocRes("ko");
break;
case "Polish":
myLocRes = getMyLocRes("pl");
break;
case "Portuguese (Brazil)":
myLocRes = getMyLocRes("pt-BR");
break;
case "Russian":
myLocRes = getMyLocRes("ru");
break;
case "Turkish":
myLocRes = getMyLocRes("tr");
break;
case "Chinese (S)":
myLocRes = getMyLocRes("zh-CN");
break;
case "Traditional Chinese":
myLocRes = getMyLocRes("zh-Hant");
break;
default:
break;
}