From 92d5ae22d98e48d85e24bd46a1fd7a88629982fa Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Thu, 12 May 2022 15:56:05 +0530 Subject: [PATCH] Added other languages to warning message --- stardew-access/Features/Warnings.cs | 4 ++-- stardew-access/i18n/de.json | 4 ++++ stardew-access/i18n/default.json | 3 ++- stardew-access/i18n/es.json | 4 ++++ stardew-access/i18n/fr.json | 4 ++++ stardew-access/i18n/hu.json | 4 ++++ stardew-access/i18n/it.json | 4 ++++ stardew-access/i18n/ja.json | 4 ++++ stardew-access/i18n/ko.json | 4 ++++ stardew-access/i18n/pt.json | 4 ++++ stardew-access/i18n/ru.json | 4 ++++ stardew-access/i18n/tr.json | 4 ++++ stardew-access/i18n/zh.json | 4 ++++ 13 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 stardew-access/i18n/de.json create mode 100644 stardew-access/i18n/es.json create mode 100644 stardew-access/i18n/fr.json create mode 100644 stardew-access/i18n/hu.json create mode 100644 stardew-access/i18n/it.json create mode 100644 stardew-access/i18n/ja.json create mode 100644 stardew-access/i18n/ko.json create mode 100644 stardew-access/i18n/pt.json create mode 100644 stardew-access/i18n/ru.json create mode 100644 stardew-access/i18n/tr.json create mode 100644 stardew-access/i18n/zh.json diff --git a/stardew-access/Features/Warnings.cs b/stardew-access/Features/Warnings.cs index da54da7..eb6b3e7 100644 --- a/stardew-access/Features/Warnings.cs +++ b/stardew-access/Features/Warnings.cs @@ -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)) { diff --git a/stardew-access/i18n/de.json b/stardew-access/i18n/de.json new file mode 100644 index 0000000..0130f37 --- /dev/null +++ b/stardew-access/i18n/de.json @@ -0,0 +1,4 @@ +{ + "warnings.health": "Warnung! Die Gesundheit liegt bei {{value}} Prozent!", + "warnings.stamina": "Warnung! Ausdauer beträgt ar {{value}} Prozent!" +} \ No newline at end of file diff --git a/stardew-access/i18n/default.json b/stardew-access/i18n/default.json index 94c0aaa..a12e4dc 100644 --- a/stardew-access/i18n/default.json +++ b/stardew-access/i18n/default.json @@ -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!" } \ No newline at end of file diff --git a/stardew-access/i18n/es.json b/stardew-access/i18n/es.json new file mode 100644 index 0000000..fb318d2 --- /dev/null +++ b/stardew-access/i18n/es.json @@ -0,0 +1,4 @@ +{ + "warnings.health": "¡Advertencia! ¡La salud está al {{value}} por ciento!", + "warnings.stamina": "¡Advertencia! ¡La resistencia es un {{value}} por ciento!" +} \ No newline at end of file diff --git a/stardew-access/i18n/fr.json b/stardew-access/i18n/fr.json new file mode 100644 index 0000000..b2ac16f --- /dev/null +++ b/stardew-access/i18n/fr.json @@ -0,0 +1,4 @@ +{ + "warnings.health": "Avertissement! La santé est à {{value}} pour cent!", + "warnings.stamina": "Avertissement! L'endurance est à {{value}} pour cent!" +} \ No newline at end of file diff --git a/stardew-access/i18n/hu.json b/stardew-access/i18n/hu.json new file mode 100644 index 0000000..ba71d1f --- /dev/null +++ b/stardew-access/i18n/hu.json @@ -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!" +} \ No newline at end of file diff --git a/stardew-access/i18n/it.json b/stardew-access/i18n/it.json new file mode 100644 index 0000000..89209c9 --- /dev/null +++ b/stardew-access/i18n/it.json @@ -0,0 +1,4 @@ +{ + "warnings.health": "Avvertimento! La salute è al {{value}} percento!", + "warnings.stamina": "Avvertimento! La resistenza è al {{value}} percento!" +} \ No newline at end of file diff --git a/stardew-access/i18n/ja.json b/stardew-access/i18n/ja.json new file mode 100644 index 0000000..9b9a3ad --- /dev/null +++ b/stardew-access/i18n/ja.json @@ -0,0 +1,4 @@ +{ + "warnings.health": "警告!健康状態は{{value}}パーセントです!", + "warnings.stamina": "警告!スタミナは{{value}}パーセントです!" +} \ No newline at end of file diff --git a/stardew-access/i18n/ko.json b/stardew-access/i18n/ko.json new file mode 100644 index 0000000..044302c --- /dev/null +++ b/stardew-access/i18n/ko.json @@ -0,0 +1,4 @@ +{ + "warnings.health": "경고! 건강은 {{value}}퍼센트입니다!", + "warnings.stamina": "경고! 체력은 {{value}}퍼센트입니다!" +} \ No newline at end of file diff --git a/stardew-access/i18n/pt.json b/stardew-access/i18n/pt.json new file mode 100644 index 0000000..7ea4784 --- /dev/null +++ b/stardew-access/i18n/pt.json @@ -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!" +} \ No newline at end of file diff --git a/stardew-access/i18n/ru.json b/stardew-access/i18n/ru.json new file mode 100644 index 0000000..3ff98dc --- /dev/null +++ b/stardew-access/i18n/ru.json @@ -0,0 +1,4 @@ +{ + "warnings.health": "Предупреждение! Здоровье составляет {{value}} процентов!", + "warnings.stamina": "Предупреждение! Выносливость составляет {{value}} процентов!" +} \ No newline at end of file diff --git a/stardew-access/i18n/tr.json b/stardew-access/i18n/tr.json new file mode 100644 index 0000000..d1d86fb --- /dev/null +++ b/stardew-access/i18n/tr.json @@ -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}}!" +} \ No newline at end of file diff --git a/stardew-access/i18n/zh.json b/stardew-access/i18n/zh.json new file mode 100644 index 0000000..76ccb50 --- /dev/null +++ b/stardew-access/i18n/zh.json @@ -0,0 +1,4 @@ +{ + "warnings.health": "警告!健康状况为 {{value}} 百分!", + "warnings.stamina": "警告!耐力为 {{value}} 百分!" +} \ No newline at end of file