chore: Weblate sync (#1041)

Co-authored-by: Hosted Weblate <hosted@weblate.org>
This commit is contained in:
Diego Beraldin 2024-06-24 20:58:56 +02:00 committed by GitHub
parent 32859c9bf6
commit 3c447f795f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="createPostBody">帖子內容</string>
<string name="homeSortTypeScaled">按比例</string>
@ -412,4 +412,4 @@
<string name="actionRestore">恢復</string>
<string name="settingsInboxPreviewMaxLines">Inbox card preview max lines</string>
<string name="settingsDefaultExploreResultType">Default search result type for explore</string>
</resources>
</resources>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="communityDetailBlock">封鎖</string>
<string name="communityDetailBlockInstance">封鎖網站</string>
@ -412,4 +412,4 @@
<string name="actionRestore">恢復</string>
<string name="settingsInboxPreviewMaxLines">Inbox card preview max lines</string>
<string name="settingsDefaultExploreResultType">Default search result type for explore</string>
</resources>
</resources>

View File

@ -45,7 +45,7 @@ def escape(str_xml):
def write_l10n_to_file(messages, output_path):
with open(output_path, "w") as file_handle:
file_handle.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
file_handle.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n")
file_handle.write("<resources>\n")
for pair in messages:
sanitizedValue = escape(pair["value"])