Skip to content

Commit

Permalink
Merge branch 'main' into weblate-copy-sms-code-otp-helper-app-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jd1378 authored Jul 8, 2024
2 parents 6831d03 + abd18b9 commit a162d03
Show file tree
Hide file tree
Showing 20 changed files with 108 additions and 105 deletions.
3 changes: 2 additions & 1 deletion app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Allow App</string>
<string name="n_items">%1$d عنصر</string>
</resources>
<string name="n_items">%1$d items</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-b+pt+BR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Allow App</string>
<string name="n_items">%1$d itens</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-b+zh+Hans/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">允许标签</string>
<string name="allow_app">允许应用</string>
<string name="n_items">%1$d 个项目</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-b+zh+Hant/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">放行應用程式</string>
<string name="n_items">%1$d 個項目</string>
</resources>
</resources>
170 changes: 85 additions & 85 deletions app/src/main/res/values-bn-rBD/strings.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/src/main/res/values-ca/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Allow App</string>
<string name="n_items">%1$s elements</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Anwendungen zulassen</string>
<string name="n_items">%1$d Objekte</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Permitir etiqueta</string>
<string name="allow_app">Permitir aplicación</string>
<string name="n_items">%1$d elemento(s)</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-fa-rIR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">اجازه به برچسب</string>
<string name="allow_app">اجازه به برنامه</string>
<string name="n_items">%1$d مورد</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Autoriser</string>
<string name="n_items">%1$s composants</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-hi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">ऐप्स को अनुमति दें</string>
<string name="n_items">%1$sवस्तु</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Consenti app</string>
<string name="n_items">%1$d oggetti</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Allow App</string>
<string name="n_items">%1$s アイテム</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Zezwalaj aplikacjom</string>
<string name="n_items">%1$s - lista</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Permitir aplicações</string>
<string name="n_items">%1$d elemento</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Разрешить приложения</string>
<string name="n_items">%1$d элемент</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-tr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Uygulamalara izin ver</string>
<string name="n_items">%1$s öge</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-uk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Дозволити застосунки</string>
<string name="n_items">%1$d елемент</string>
</resources>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-vi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
<string name="allow_tag">Allow Tag</string>
<string name="allow_app">Allow App</string>
<string name="n_items">%1$d mục</string>
</resources>
</resources>
6 changes: 4 additions & 2 deletions update_strings.py → sync_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ def save_xml(tree, file_path):
prettify(tree.getroot())
xml_declaration = '<?xml version="1.0" encoding="utf-8"?>\n'
xml_content = ET.tostring(tree.getroot(), encoding="unicode")
with open(file_path, 'w', encoding='utf-8') as f:
f.write(xml_declaration + xml_content)
xml_content = xml_declaration + xml_content
xml_content = xml_content.replace('\r\n', '\n') # LF ending normalization
with open(file_path, 'wb') as f:
f.write(xml_content.encode('utf-8'))
print(f"Updated strings file saved at {file_path}")

def main():
Expand Down

0 comments on commit a162d03

Please sign in to comment.