Skip to content

Commit 80f51aa

Browse files
committed
fix: fallback to english when localization is missing
1 parent 19107b6 commit 80f51aa

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

fat-drive-sorter.xcodeproj/xcshareddata/xcschemes/Release.xcscheme

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
ignoresPersistentStateOnLaunch = "NO"
4141
debugDocumentVersioning = "YES"
4242
debugServiceExtension = "internal"
43-
allowLocationSimulation = "YES">
43+
allowLocationSimulation = "YES"
44+
language = "it">
4445
<BuildableProductRunnable
4546
runnableDebuggingMode = "0">
4647
<BuildableReference

resources/l10n/fr.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"%@ crashed last time you used it. Sending a crash report will help get the issue fixed" = "%@ a planté la dernière fois. Envoyer un rapport de plantage aidera à résoudre le problème";
2+
"Case-sensitive:" = "Case-sensitive:";
23
"Directories first" = "Dossiers en premier";
34
"Directory (optional):" = "Dossier (optionel)";
45
"Don’t send" = "Ne pas envoyer";
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
"%@ crashed last time you used it. Sending a crash report will help get the issue fixed" = "%@ si è chiusa inaspettatamente. Invia segnalazione per aiutare a risolvere";
2-
"Directories first" = "";
2+
"Case-sensitive:" = "Case-sensitive:";
3+
"Directories first" = "Directories first";
34
"Directory (optional):" = "Cartella (opzionale)";
45
"Don’t send" = "Non spedire";
56
"Drive:" = "Disco";
6-
"Files first" = "";
7-
"Mixed" = "";
7+
"Files first" = "Files first";
8+
"Mixed" = "Mixed";
89
"No drive detected" = "Nessun disco";
9-
"NSHumanReadableCopyright" = "";
10+
"NSHumanReadableCopyright" = "GPL-3.0 license";
1011
"Order:" = "Order:";
1112
"Remember my choice" = "Ricorda mia scelta";
1213
"See current file order" = "Vedi attuale ordine";
1314
"Send" = "Send";
14-
"Send a crash report?" = "";
15+
"Send a crash report?" = "Send a crash report?";
1516
"Sort" = "Sort";

resources/l10n/zh-Hans.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"%@ crashed last time you used it. Sending a crash report will help get the issue fixed" = "您上次使用%@,它时崩溃了。 发送崩溃报告将有助于解决问题";
2+
"Case-sensitive:" = "Case-sensitive:";
23
"Directories first" = "文件夹先";
34
"Directory (optional):" = "文件夹(选修的):";
45
"Don’t send" = "不要发送";

scripts/l10n/import_l10n_strings_from_poeditor.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ function updateLanguageFile() {
1010
-d api_token="$readOnlyToken" \
1111
-d id="$projectId" \
1212
-d language="$1" \
13+
-d fallback_language="en" \
1314
-d order="terms" \
1415
-d type="apple_strings")"
1516
fileUrl="$(jq -r '.result.url' <<<"$exportApiJson")"
1617
mkdir -p "resources/l10n/$1.lproj"
17-
curl -s "$fileUrl" | sed -e '/\/\*.*\*\//d' -e '/^$/d' > "resources/l10n/$1.lproj/Localizable.strings"
18+
curl -s "$fileUrl" | sed -e '/\/\*.*\*\//d' -e '/^$/d' -e '/ = "";$/d' > "resources/l10n/$1.lproj/Localizable.strings"
1819
}
1920

2021
function getLanguagesOnPoeditor() {

0 commit comments

Comments
 (0)