summaryrefslogtreecommitdiff
path: root/src/SMAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-04-17 17:23:24 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-04-17 17:23:24 -0400
commit06e2cb2e5936a0f33c24c14f118c54b25f0156b6 (patch)
treefa988fc8a123633ae9d583b46736e11329324773 /src/SMAPI
parent841f85a74331a02bd45f3d40ea1b50e4bc9dd3eb (diff)
downloadSMAPI-06e2cb2e5936a0f33c24c14f118c54b25f0156b6.tar.gz
SMAPI-06e2cb2e5936a0f33c24c14f118c54b25f0156b6.tar.bz2
SMAPI-06e2cb2e5936a0f33c24c14f118c54b25f0156b6.zip
support lowercase season names in date translations
Diffstat (limited to 'src/SMAPI')
-rw-r--r--src/SMAPI/Utilities/SDate.cs3
-rw-r--r--src/SMAPI/i18n/de.json1
-rw-r--r--src/SMAPI/i18n/default.json1
-rw-r--r--src/SMAPI/i18n/es.json5
-rw-r--r--src/SMAPI/i18n/fr.json5
-rw-r--r--src/SMAPI/i18n/hu.json1
-rw-r--r--src/SMAPI/i18n/it.json1
-rw-r--r--src/SMAPI/i18n/ja.json1
-rw-r--r--src/SMAPI/i18n/ko.json1
-rw-r--r--src/SMAPI/i18n/pt.json1
-rw-r--r--src/SMAPI/i18n/ru.json1
-rw-r--r--src/SMAPI/i18n/tr.json1
-rw-r--r--src/SMAPI/i18n/zh.json1
13 files changed, 18 insertions, 5 deletions
diff --git a/src/SMAPI/Utilities/SDate.cs b/src/SMAPI/Utilities/SDate.cs
index 4d4920ab..03230334 100644
--- a/src/SMAPI/Utilities/SDate.cs
+++ b/src/SMAPI/Utilities/SDate.cs
@@ -152,7 +152,8 @@ namespace StardewModdingAPI.Utilities
{
day = this.Day,
year = this.Year,
- season = Utility.getSeasonNameFromNumber(this.SeasonIndex)
+ season = seasonName,
+ seasonLowercase = seasonName?.ToLower()
})
.Default(fallback);
}
diff --git a/src/SMAPI/i18n/de.json b/src/SMAPI/i18n/de.json
index 47655a63..a8cbd83b 100644
--- a/src/SMAPI/i18n/de.json
+++ b/src/SMAPI/i18n/de.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "Ungültiger Inhalt wurde entfernt, um einen Absturz zu verhindern (siehe SMAPI Konsole für weitere Informationen).",
// short date format for SDate
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
"generic.date": "{{season}} {{day}}",
"generic.date-with-year": "{{season}} {{day}} im Jahr {{year}}"
diff --git a/src/SMAPI/i18n/default.json b/src/SMAPI/i18n/default.json
index ba46241b..7a3d3ed5 100644
--- a/src/SMAPI/i18n/default.json
+++ b/src/SMAPI/i18n/default.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "Invalid content was removed to prevent a crash (see the SMAPI console for info).",
// short date format for SDate
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
"generic.date": "{{season}} {{day}}",
"generic.date-with-year": "{{season}} {{day}} in year {{year}}"
}
diff --git a/src/SMAPI/i18n/es.json b/src/SMAPI/i18n/es.json
index dc77c4b7..c9843991 100644
--- a/src/SMAPI/i18n/es.json
+++ b/src/SMAPI/i18n/es.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "Se ha quitado contenido inválido para evitar un cierre forzoso (revisa la consola de SMAPI para más información).",
// short date format for SDate
- "generic.date": "{{season}} {{day}}",
- "generic.date-with-year": "{{season}} {{day}} del año {{year}}"
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
+ "generic.date": "{{seasonLowercase}} {{day}}",
+ "generic.date-with-year": "{{seasonLowercase}} {{day}} del año {{year}}"
}
diff --git a/src/SMAPI/i18n/fr.json b/src/SMAPI/i18n/fr.json
index 3b3596ce..5969aa20 100644
--- a/src/SMAPI/i18n/fr.json
+++ b/src/SMAPI/i18n/fr.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "Le contenu non valide a été supprimé afin d'éviter un plantage (voir la console de SMAPI pour plus d'informations).",
// short date format for SDate
- "generic.date": "{{day}} {{season}}",
- "generic.date-with-year": "{{day}} {{season}} de l'année {{year}}"
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
+ "generic.date": "{{day}} {{seasonLowercase}}",
+ "generic.date-with-year": "{{day}} {{seasonLowercase}} de l'année {{year}}"
}
diff --git a/src/SMAPI/i18n/hu.json b/src/SMAPI/i18n/hu.json
index d89d446f..785012f4 100644
--- a/src/SMAPI/i18n/hu.json
+++ b/src/SMAPI/i18n/hu.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "Érvénytelen elemek kerültek eltávolításra, hogy a játék ne omoljon össze (további információk a SMAPI konzolon).",
// short date format for SDate
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
"generic.date": "{{season}} {{day}}",
"generic.date-with-year": "{{year}}. év {{season}} {{day}}"
}
diff --git a/src/SMAPI/i18n/it.json b/src/SMAPI/i18n/it.json
index 20c91b4f..3b3351c3 100644
--- a/src/SMAPI/i18n/it.json
+++ b/src/SMAPI/i18n/it.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "Contenuto non valido rimosso per prevenire un crash (Guarda la console di SMAPI per maggiori informazioni).",
// short date format for SDate
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
"generic.date": "{{day}} {{season}}",
"generic.date-with-year": "{{day}} {{season}} dell'anno {{year}}"
}
diff --git a/src/SMAPI/i18n/ja.json b/src/SMAPI/i18n/ja.json
index 1c8d9f0e..1f814bfa 100644
--- a/src/SMAPI/i18n/ja.json
+++ b/src/SMAPI/i18n/ja.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "クラッシュを防ぐために無効なコンテンツを取り除きました (詳細はSMAPIコンソールを参照)",
// short date format for SDate
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
"generic.date": "{{season}} {{day}}日",
"generic.date-with-year": "{{year}}年目 {{season}} {{day}}日"
}
diff --git a/src/SMAPI/i18n/ko.json b/src/SMAPI/i18n/ko.json
index 6f60ad09..d5bbffa4 100644
--- a/src/SMAPI/i18n/ko.json
+++ b/src/SMAPI/i18n/ko.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "충돌을 방지하기 위해 잘못된 컨텐츠가 제거되었습니다 (자세한 내용은 SMAPI 콘솔 참조).",
// short date format for SDate
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
"generic.date": "{{season}} {{day}}",
"generic.date-with-year": "{{year}} 학년 {{season}} {{day}}"
}
diff --git a/src/SMAPI/i18n/pt.json b/src/SMAPI/i18n/pt.json
index 8678a4f7..e8460922 100644
--- a/src/SMAPI/i18n/pt.json
+++ b/src/SMAPI/i18n/pt.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "Conteúdo inválido foi removido para prevenir uma falha (veja o console do SMAPI para mais informações).",
// short date format for SDate
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
"generic.date": "{{season}} {{day}}",
"generic.date-with-year": "{{season}} {{day}} no ano {{year}}"
}
diff --git a/src/SMAPI/i18n/ru.json b/src/SMAPI/i18n/ru.json
index d773485a..002fdbf8 100644
--- a/src/SMAPI/i18n/ru.json
+++ b/src/SMAPI/i18n/ru.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "Недопустимое содержимое было удалено, чтобы предотвратить сбой (см. информацию в консоли SMAPI)",
// short date format for SDate
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
"generic.date": "{{season}}, {{day}}-е число",
"generic.date-with-year": "{{season}}, {{day}}-е число, {{year}}-й год"
}
diff --git a/src/SMAPI/i18n/tr.json b/src/SMAPI/i18n/tr.json
index 654e1acc..2a6e83a1 100644
--- a/src/SMAPI/i18n/tr.json
+++ b/src/SMAPI/i18n/tr.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "Yanlış paketlenmiş bir içerik, oyunun çökmemesi için yüklenmedi (SMAPI konsol penceresinde detaylı bilgi mevcut).",
// short date format for SDate
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
"generic.date": "{{day}} {{season}}",
"generic.date-with-year": "{{day}} {{season}} года {{year}}"
}
diff --git a/src/SMAPI/i18n/zh.json b/src/SMAPI/i18n/zh.json
index be485a79..cdbe3b74 100644
--- a/src/SMAPI/i18n/zh.json
+++ b/src/SMAPI/i18n/zh.json
@@ -3,6 +3,7 @@
"warn.invalid-content-removed": "非法内容已移除以防游戏闪退(查看SMAPI控制台获得更多信息)",
// short date format for SDate
+ // tokens: {{day}} (like 15), {{season}} (like Spring), {{seasonLowercase}} (like spring), {{year}} (like 2)
"generic.date": "{{season}}{{day}}日",
"generic.date-with-year": "第{{year}}年{{season}}{{day}}日"
}