Remove 'other' form for languages that don't need it
'other' in these cases is for 1.0 v 1 and isn't used/present in Weblate, though weblate will output this in Android as technically there should always be an 'other'
This commit is contained in:
parent
73f4515bc7
commit
2e89b58fcc
5 changed files with 5 additions and 24 deletions
|
@ -21,8 +21,6 @@
|
|||
<string>%d закладкі</string>
|
||||
<key>many</key>
|
||||
<string>%d закладак</string>
|
||||
<key>other</key>
|
||||
<string>%d закладак</string>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
|
@ -36,8 +34,6 @@
|
|||
<string>NSStringPluralRuleType</string>
|
||||
<key>NSStringFormatValueTypeKey</key>
|
||||
<string>d</string>
|
||||
<key>other</key>
|
||||
<string>%d files were found. You can see them after conversion.</string>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
|
@ -57,8 +53,6 @@
|
|||
<string>%d сцежкі</string>
|
||||
<key>many</key>
|
||||
<string>%d сцежак</string>
|
||||
<key>other</key>
|
||||
<string>%d сцежак</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
<string>d</string>
|
||||
<key>many</key>
|
||||
<string>Zakładki: %d</string>
|
||||
<key>other</key>
|
||||
<string>Zakładki: %d</string>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
|
@ -38,8 +36,6 @@
|
|||
<string>Znaleziono %d pliki. Zobaczysz je po konwersji.</string>
|
||||
<key>many</key>
|
||||
<string>Znaleziono %d plików. Zobaczysz je po konwersji.</string>
|
||||
<key>other</key>
|
||||
<string>Znaleziono %d plików. Zobaczysz je po konwersji.</string>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
|
@ -59,8 +55,6 @@
|
|||
<string>%d trasy</string>
|
||||
<key>many</key>
|
||||
<string>%d tras</string>
|
||||
<key>other</key>
|
||||
<string>%d trasy</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
<string>%d метки</string>
|
||||
<key>many</key>
|
||||
<string>%d меток</string>
|
||||
<key>other</key>
|
||||
<string>%d меток</string>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
|
@ -42,8 +40,6 @@
|
|||
<string>%d файла были найдены. Вы увидите их после конвертации.</string>
|
||||
<key>many</key>
|
||||
<string>%d файлов было найдено. Вы увидите их после конвертации.</string>
|
||||
<key>other</key>
|
||||
<string>%d файлов было найдено. Вы увидите их после конвертации.</string>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
|
@ -63,8 +59,6 @@
|
|||
<string>%d трека</string>
|
||||
<key>many</key>
|
||||
<string>%d треков</string>
|
||||
<key>other</key>
|
||||
<string>%d треков</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
<string>%d мітки</string>
|
||||
<key>many</key>
|
||||
<string>%d міток</string>
|
||||
<key>other</key>
|
||||
<string>%d міток</string>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
|
@ -42,8 +40,6 @@
|
|||
<string>%d файлу були знайдені. Ви побачите їх після конвертації.</string>
|
||||
<key>many</key>
|
||||
<string>%d файлів було знайдено. Ви побачите їх після конвертації.</string>
|
||||
<key>other</key>
|
||||
<string>%d файлів було знайдено. Ви побачите їх після конвертації.</string>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
|
@ -59,8 +55,6 @@
|
|||
<string>d</string>
|
||||
<key>many</key>
|
||||
<string>%d треків</string>
|
||||
<key>other</key>
|
||||
<string>%d треків</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
|
|
|
@ -40,6 +40,8 @@ sed -i "" -E '/^$/d' $android_strings_xml
|
|||
for xml_file in $android_strings_xml; do
|
||||
truncate -s -1 $xml_file
|
||||
done
|
||||
# Remove 'other' translation form for languages that don't have it in Weblate
|
||||
#sed -i "" -E '/<item quantity="other">/d' android/app/src/main/res/values-{be,pl,ru,uk}/strings.xml
|
||||
|
||||
## Prepare iPhone files for Weblate
|
||||
|
||||
|
@ -57,3 +59,6 @@ sed -i "" -E '/^[/][*][^*]/i \
|
|||
# Add a blank line after comment headers
|
||||
sed -i "" -E $'/^[/][*][*]/,+1{/^"/s/^"/\\\n"/g;}' $iphone_strings $iphone_infoplist_strings
|
||||
sed -i "" '1,/^./{/^$/d;}' $iphone_strings $iphone_infoplist_strings # Drop spurious first line
|
||||
|
||||
# Remove 'other' translation form for languages that don't have it in Weblate
|
||||
sed -i "" -E '/<key>other<\/key>/,+1d' iphone/Maps/LocalizedStrings/{be,pl,ru,uk}.lproj/Localizable.stringsdict
|
||||
|
|
Reference in a new issue