Skip to content

Commit

Permalink
Merge pull request #4885 from rmol/i18n-add-czech
Browse files Browse the repository at this point in the history
Add Czech to list of supported languages
  • Loading branch information
redshiftzero authored Oct 10, 2019
2 parents f746182 + c46a7fe commit bca26dd
Show file tree
Hide file tree
Showing 5 changed files with 1,431 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/includes/l10n.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Arabic (``ar``)
* Catalan (``ca``)
* Czech (``cs``)
* German (``de_DE``)
* Greek (``el``)
* Spanish (``es_ES``)
Expand Down
27 changes: 27 additions & 0 deletions install_files/ansible-base/roles/tails-config/templates/cs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Freedom of the Press Foundation
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"PO-Revision-Date: 2019-09-01 17:39+0000\n"
"Last-Translator: 1000101 <[email protected]>\n"
"Language-Team: Czech <https://weblate.securedrop.org/projects/securedrop/"
"desktop/cs/>\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Weblate 3.7.1\n"

#: desktop-journalist-icon.j2.in:9
msgid "SecureDrop Journalist Interface"
msgstr "SecureDrop rozhraní novináře"

#: desktop-source-icon.j2.in:9
msgid "SecureDrop Source Interface"
msgstr "SecureDrop rozhraní zdroje"
4 changes: 3 additions & 1 deletion securedrop/bin/translation-test
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ mkdir -p "/tmp/test-results/logs"
# Taking screenshots for consumes a lot of memory
# and can result in OOM errors in CI. Running each locale
# separately avoids this.
for locale in ar de_DE es_ES fr_FR hi is it_IT nb_NO nl pt_BR ro ru sv tr zh_Hant
SUPPORTED_LOCALES=$(./i18n_tool.py list-locales | sed -r -e "s/[][',]//g")
printf "Running tests in these locales: %s\n" "$SUPPORTED_LOCALES"
for locale in $SUPPORTED_LOCALES
do
PAGE_LAYOUT_LOCALES=$locale pytest \
-v \
Expand Down
1 change: 1 addition & 0 deletions securedrop/i18n_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class I18NTool(object):
SUPPORTED_LANGUAGES = {
'ar': {'name': 'Arabic', 'desktop': 'ar', },
'ca': {'name': 'Catalan', 'desktop': 'ca', },
'cs': {'name': 'Czech', 'desktop': 'cs', },
'de_DE': {'name': 'German', 'desktop': 'de_DE', },
'el': {'name': 'Greek', 'desktop': 'el', },
'es_ES': {'name': 'Spanish', 'desktop': 'es_ES', },
Expand Down
Loading

0 comments on commit bca26dd

Please sign in to comment.