Added other languages to warning message

master
Mohammad Shoaib 2022-05-12 15:56:05 +05:30
parent 2d74653217
commit 92d5ae22d9
13 changed files with 48 additions and 3 deletions

View File

@ -23,7 +23,7 @@ namespace stardew_access.Features
return;
int stamina = CurrentPlayer.Stamina;
string toSpeak = MainClass.ModHelper.Translation.Get("warnings.label", new { type = "stamina", value = stamina });
string toSpeak = MainClass.ModHelper.Translation.Get("warnings.stamina", new { value = stamina });
if ((stamina <= 50 && prevStamina > 50) || (stamina <= 25 && prevStamina > 25) || (stamina <= 10 && prevStamina > 10))
{
@ -41,7 +41,7 @@ namespace stardew_access.Features
return;
int health = CurrentPlayer.Health;
string toSpeak = MainClass.ModHelper.Translation.Get("warnings.label", new { type = "health", value = health });
string toSpeak = MainClass.ModHelper.Translation.Get("warnings.health", new { value = health });
if ((health <= 50 && prevHealth > 50) || (health <= 25 && prevHealth > 25) || (health <= 10 && prevHealth > 10))
{

View File

@ -0,0 +1,4 @@
{
"warnings.health": "Warnung! Die Gesundheit liegt bei {{value}} Prozent!",
"warnings.stamina": "Warnung! Ausdauer beträgt ar {{value}} Prozent!"
}

View File

@ -1,3 +1,4 @@
{
"warnings.label": "Warning! {{type}} is at {{value}} percent!"
"warnings.health": "Warning! Health is at {{value}} percent!",
"warnings.stamina": "Warning! Stamina is at {{value}} percent!"
}

View File

@ -0,0 +1,4 @@
{
"warnings.health": "¡Advertencia! ¡La salud está al {{value}} por ciento!",
"warnings.stamina": "¡Advertencia! ¡La resistencia es un {{value}} por ciento!"
}

View File

@ -0,0 +1,4 @@
{
"warnings.health": "Avertissement! La santé est à {{value}} pour cent!",
"warnings.stamina": "Avertissement! L'endurance est à {{value}} pour cent!"
}

View File

@ -0,0 +1,4 @@
{
"warnings.health": "Figyelem! Az egészségi állapot {{érték}} százalék!",
"warnings.stamina": "Figyelem! Az állóképesség {{value}} százalék!"
}

View File

@ -0,0 +1,4 @@
{
"warnings.health": "Avvertimento! La salute è al {{value}} percento!",
"warnings.stamina": "Avvertimento! La resistenza è al {{value}} percento!"
}

View File

@ -0,0 +1,4 @@
{
"warnings.health": "警告!健康状態は{{value}}パーセントです!",
"warnings.stamina": "警告!スタミナは{{value}}パーセントです!"
}

View File

@ -0,0 +1,4 @@
{
"warnings.health": "경고! 건강은 {{value}}퍼센트입니다!",
"warnings.stamina": "경고! 체력은 {{value}}퍼센트입니다!"
}

View File

@ -0,0 +1,4 @@
{
"warnings.health": "Aviso! A saúde está em {{value}} por cento!",
"warnings.stamina": "Aviso! A resistência está em {{value}} por cento!"
}

View File

@ -0,0 +1,4 @@
{
"warnings.health": "Предупреждение! Здоровье составляет {{value}} процентов!",
"warnings.stamina": "Предупреждение! Выносливость составляет {{value}} процентов!"
}

View File

@ -0,0 +1,4 @@
{
"warnings.health": "Uyarı! Sağlık yüzde {{değer}}!",
"warnings.stamina": "uyarı! Dayanıklılık yüzde {{değer}}!"
}

View File

@ -0,0 +1,4 @@
{
"warnings.health": "警告!健康状况为 {{value}} 百分!",
"warnings.stamina": "警告!耐力为 {{value}} 百分!"
}