Skip to content

Commit f23e80c

Browse files
committed
Nextcloud Notes for iOS Translation Script Update
- Replaced explicit naming of every resource with general language project folder references like Nextcloud Files for iOS already does. - Sign off localization updates from Transifex by Nextcloud Bot. - Updated commit message which is clear by the user name anyway. Signed-off-by: Iva Horn <[email protected]>
1 parent 3ec094d commit f23e80c

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

translations/handleiOSNotesTranslations.sh

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,26 @@ git clone [email protected]:nextcloud/notes-ios /app
1313
git checkout -b develop origin/develop
1414

1515
# remove all translations (they are added afterwards anyways but allows to remove languages via transifex)
16-
rm -r Source/*.lproj/Localizable.strings
17-
rm -r Source/*.lproj/Main_iPhone.strings
18-
rm -r Source/*.lproj/Categories.strings
19-
rm -r Source/Settings.bundle/*.lproj/Root.strings
20-
rm -r Source/Screens/Settings/*.lproj/Settings.strings
21-
22-
git checkout -- Source/en.lproj/Localizable.strings
23-
git checkout -- Source/en.lproj/Main_iPhone.strings
24-
git checkout -- Source/en.lproj/Categories.strings
25-
git checkout -- Source/Settings.bundle/en.lproj/Root.strings
26-
git checkout -- Source/Screens/Settings/en.lproj/Settings.strings
27-
16+
rm -rf Source/*.lproj
17+
git checkout -- Source/en.lproj
2818

2919
# push sources
3020
tx push -s
3121

3222
# pull translations
3323
tx pull -f -a --minimum-perc=50
3424

25+
# Overwrite "de" (unlocalized) with "de_DE" (actual localization)
26+
rm -rf ./Source/de.lproj
27+
rm -rf ./Source/Screens/Settings/de.lproj
28+
rm -rf ./Source/Settings.bundle/de.lproj
3529

36-
# use de_DE instead of de
37-
rm -rf Source/de.lproj/Localizable.strings
38-
rm -rf Source/de.lproj/Main_iPhone.strings
39-
rm -rf Source/de.lproj/Categories.strings
40-
rm -rf Source/Settings.bundle/de.lproj/Root.strings
41-
rm -rf Source/Screens/Settings/de.lproj/Settings.strings
42-
43-
mv Source/de_DE.lproj/Localizable.strings Source/de.lproj/Localizable.strings
44-
mv Source/de_DE.lproj/Main_iPhone.strings Source/de.lproj/Main_iPhone.strings
45-
mv Source/de_DE.lproj/Categories.strings Source/de.lproj/Categories.strings
46-
mv Source/Settings.bundle/de_DE.lproj/Root.strings Source/Settings.bundle/de.lproj/Root.strings
47-
mv Source/Screens/Settings/de_DE.lproj/Settings.strings Source/Screens/Settings/de.lproj/Settings.strings
30+
mv Source/de_DE.lproj Source/de.lproj
31+
mv Source/Settings.bundle/de_DE.lproj Source/Settings.bundle/de.lproj
32+
mv Source/Screens/Settings/de_DE.lproj Source/Screens/Settings/de.lproj
4833

4934
# create git commit and push it
5035
git add .
51-
git commit -am "[tx-robot] updated from transifex" || true
36+
git commit -am "Fix(l10n): Update translations from Transifex" -s || true
5237
git push origin develop
5338
echo "done"

0 commit comments

Comments
 (0)