Commit e590fb50 authored by Mygod's avatar Mygod

Update translations

parent ef1f455a
...@@ -14,7 +14,7 @@ buildscript { ...@@ -14,7 +14,7 @@ buildscript {
androidEspressoVersion = '3.2.0' androidEspressoVersion = '3.2.0'
versionCode = 4080350 versionCode = 4080350
versionName = '4.8.3-nightly' versionName = '4.8.3-nightly'
resConfigs = ['es', 'fa', 'fr', 'ja', 'ko', 'ru', 'tr', 'zh-rCN', 'zh-rTW'] resConfigs = ['ar', 'es', 'fa', 'fr', 'ja', 'ko', 'ru', 'tr', 'zh-rCN', 'zh-rTW']
} }
repositories { repositories {
......
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources>
<string name="quick_toggle">"تغيير"</string>
<string name="remote_dns">"سيرفر ال DNS"</string>
<string name="stat_summary">"ارسل: \t%3$s\t↑\t%1$s
استقبل: \t%4$s\t↓\t%2$s"</string>
<string name="connection_test_testing">"اختبار الاتصال..."</string>
<string name="connection_test_error">"فشل فحص اتصال الانترنت: %s"</string>
<string name="connection_test_fail">"لا يوجد اتصال بالانترنت"</string>
<string name="connection_test_error_status_code">"خطآ رقم: #%d"</string>
<string name="proxy">"السيرفر"</string>
<string name="remote_port">"المنفذ"</string>
<string name="sitekey">"كلمة المرور"</string>
<string name="enc_method">"طريقة التشفير"</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="quick_toggle">"Alternar"</string> <string name="quick_toggle">"Alternar"</string>
<string name="remote_dns">"DNS Remoto"</string> <string name="remote_dns">"DNS Remoto"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="app_name">"شدوساکس"</string> <string name="app_name">"شدوساکس"</string>
<string name="remote_dns">"دی‌ان‌اس سرور"</string> <string name="remote_dns">"دی‌ان‌اس سرور"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="quick_toggle">"Basculer"</string> <string name="quick_toggle">"Basculer"</string>
<string name="remote_dns">"DNS Distant"</string> <string name="remote_dns">"DNS Distant"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="quick_toggle">"ON/OFF"</string> <string name="quick_toggle">"ON/OFF"</string>
<string name="remote_dns">"リモートDNS"</string> <string name="remote_dns">"リモートDNS"</string>
<string name="stat_summary">"送信済み: \t%3$s\t↑\t%1$s/s <string name="stat_summary">"送信済み: \t%3$s\t↑\t%1$s/s
受信済み: \t%4$s\t↓\t%2$s/s"</string> 受信済み: \t%4$s\t↓\t%2$s/s"</string>
<string name="connection_test_testing">"テスト中…"</string> <string name="connection_test_testing">"テスト中…"</string>
<!-- Fuzzy -->
<string name="connection_test_available">"成功: %dmsの遅延"</string>
<string name="connection_test_error">"失敗しました:%s"</string> <string name="connection_test_error">"失敗しました:%s"</string>
<string name="connection_test_fail">"インターネット利用不可"</string> <string name="connection_test_fail">"インターネット利用不可"</string>
<string name="connection_test_error_status_code">"ステータスコード無効: #%d"</string> <string name="connection_test_error_status_code">"ステータスコード無効: #%d"</string>
...@@ -150,4 +175,13 @@ ...@@ -150,4 +175,13 @@
<string name="action_export_more">"エクスポート"</string> <string name="action_export_more">"エクスポート"</string>
<string name="action_export_file">"ファイルへエクスポート"</string> <string name="action_export_file">"ファイルへエクスポート"</string>
<string name="cleartext_http_warning">"クリアテキスト(平文)通信は安全ではありません"</string> <string name="cleartext_http_warning">"クリアテキスト(平文)通信は安全ではありません"</string>
<string name="share_over_lan">"LAN経由でシェア"</string>
<string name="connection_test_pending">"接続チェック中"</string>
<string name="file_manager_missing">"ファイルマネージャーをインストールしてください(MiXplorerなど)"</string>
<string name="tcp_fastopen_failure">"切り替え失敗"</string>
<string name="udp_fallback">"UDPフォールバック"</string>
<string name="action_replace_file">"ファイルから置き換え"</string>
<string name="proxied_apps_mode">"モード"</string>
<string name="metered">"従量制提示"</string>
<string name="metered_summary">"VPNは従量制であることをシステムに知らせる"</string>
</resources> </resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="quick_toggle">"켜기/끄기"</string> <string name="quick_toggle">"켜기/끄기"</string>
<string name="remote_dns">"원격 DNS"</string> <string name="remote_dns">"원격 DNS"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="quick_toggle">"Подключение"</string> <string name="quick_toggle">"Подключение"</string>
<string name="remote_dns">"Удалённый DNS"</string> <string name="remote_dns">"Удалённый DNS"</string>
...@@ -25,8 +47,6 @@ ...@@ -25,8 +47,6 @@
<string name="proxied_apps">"Режим VPN для выбранных приложений"</string> <string name="proxied_apps">"Режим VPN для выбранных приложений"</string>
<string name="proxied_apps_summary">"Выбрать приложения, для которых нужно использовать режим VPN"</string> <string name="proxied_apps_summary">"Выбрать приложения, для которых нужно использовать режим VPN"</string>
<string name="on">"Вкл"</string> <string name="on">"Вкл"</string>
<!-- Fuzzy -->
<string name="bypass_apps">"В обход прокси"</string> <string name="bypass_apps">"В обход прокси"</string>
<string name="bypass_apps_summary">"Включите эту опцию для работы выбранных приложений в обход прокси"</string> <string name="bypass_apps_summary">"Включите эту опцию для работы выбранных приложений в обход прокси"</string>
<string name="auto_connect">"Авто-подключение"</string> <string name="auto_connect">"Авто-подключение"</string>
...@@ -155,4 +175,11 @@ ...@@ -155,4 +175,11 @@
<string name="share_over_lan">"Поделиться через LAN"</string> <string name="share_over_lan">"Поделиться через LAN"</string>
<string name="connection_test_pending">"Проверить подключение"</string> <string name="connection_test_pending">"Проверить подключение"</string>
<string name="file_manager_missing">"Установите файловый менеджер"</string> <string name="file_manager_missing">"Установите файловый менеджер"</string>
<string name="tcp_fastopen_failure">"Не удалось переключить"</string>
<string name="udp_fallback">"Возврат к UDP"</string>
<string name="action_replace_file">"Заменить из файла..."</string>
<string name="off">"Выкл"</string>
<string name="proxied_apps_mode">"Режим"</string>
<string name="metered">"Лимитное соединение"</string>
<string name="metered_summary">"Сообщить системе, что это не безлимитное подключение"</string>
</resources> </resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="quick_toggle">"Aç/Kapa"</string> <string name="quick_toggle">"Aç/Kapa"</string>
<string name="remote_dns">"Uzaktan DNS"</string> <string name="remote_dns">"Uzaktan DNS"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="quick_toggle">"开关"</string> <string name="quick_toggle">"开关"</string>
<string name="remote_dns">"远程 DNS"</string> <string name="remote_dns">"远程 DNS"</string>
...@@ -154,4 +176,6 @@ ...@@ -154,4 +176,6 @@
<string name="action_replace_file">"从文件替换…"</string> <string name="action_replace_file">"从文件替换…"</string>
<string name="off">"关"</string> <string name="off">"关"</string>
<string name="proxied_apps_mode">"模式"</string> <string name="proxied_apps_mode">"模式"</string>
<string name="metered">"网络限制"</string>
<string name="metered_summary">"使系统视此 VPN 为按流量计费"</string>
</resources> </resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="app_name">"影梭"</string> <string name="app_name">"影梭"</string>
<string name="quick_toggle">"切換"</string> <string name="quick_toggle">"切換"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="proxy_cat">"Propiedades del Servidor"</string> <string name="proxy_cat">"Propiedades del Servidor"</string>
<string name="yes">"Sí"</string> <string name="yes">"Sí"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="proxy_cat">"تنظیمات سرور"</string> <string name="proxy_cat">"تنظیمات سرور"</string>
<string name="feature_cat">"تنظیمات ویژگی‌ها"</string> <string name="feature_cat">"تنظیمات ویژگی‌ها"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="proxy_cat">"Paramètres du Serveur"</string> <string name="proxy_cat">"Paramètres du Serveur"</string>
<string name="feature_cat">"Paramètres des Fonctionnalités"</string> <string name="feature_cat">"Paramètres des Fonctionnalités"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="proxy_cat">"サーバー設定"</string> <string name="proxy_cat">"サーバー設定"</string>
<string name="feature_cat">"機能設定"</string> <string name="feature_cat">"機能設定"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="proxy_cat">"서버 설정"</string> <string name="proxy_cat">"서버 설정"</string>
<string name="feature_cat">"기능 설정"</string> <string name="feature_cat">"기능 설정"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="proxy_cat">"Настройки сервера"</string> <string name="proxy_cat">"Настройки сервера"</string>
<string name="feature_cat">"Настройки опций"</string> <string name="feature_cat">"Настройки опций"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="proxy_cat">"Sunucu Ayarları"</string> <string name="proxy_cat">"Sunucu Ayarları"</string>
<string name="feature_cat">"Özellik Ayarları"</string> <string name="feature_cat">"Özellik Ayarları"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="proxy_cat">"服务器设置"</string> <string name="proxy_cat">"服务器设置"</string>
<string name="feature_cat">"功能设置"</string> <string name="feature_cat">"功能设置"</string>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
<resources> <resources>
<string name="proxy_cat">"伺服器設定"</string> <string name="proxy_cat">"伺服器設定"</string>
<string name="feature_cat">"功能設定"</string> <string name="feature_cat">"功能設定"</string>
......
...@@ -30,7 +30,7 @@ from multiprocessing.pool import ThreadPool ...@@ -30,7 +30,7 @@ from multiprocessing.pool import ThreadPool
from poeditor import POEditorAPI from poeditor import POEditorAPI
def main(api_token, project_id, languages, tags, file_path): def main(api_token, project_id, languages, tags, file_path, header_comment):
client = POEditorAPI(api_token) client = POEditorAPI(api_token)
# See also: https://github.com/sporteasy/python-poeditor/pull/15 # See also: https://github.com/sporteasy/python-poeditor/pull/15
client.FILTER_BY += 'proofread' client.FILTER_BY += 'proofread'
...@@ -40,11 +40,23 @@ def main(api_token, project_id, languages, tags, file_path): ...@@ -40,11 +40,23 @@ def main(api_token, project_id, languages, tags, file_path):
def export_worker(params): def export_worker(params):
((language_code, language_id), (tag, module)) = params ((language_code, language_id), (tag, module)) = params
output = file_path.format(language_id, module) output = file_path.format(language_id, module)
(_, temp) = client.export(project_id, language_code, 'android_strings', 'proofread', tag)
try: try:
os.makedirs(os.path.dirname(output)) if os.path.getsize(temp) > 0:
except FileExistsError: try:
pass os.makedirs(os.path.dirname(output))
client.export(project_id, language_code, 'android_strings', 'proofread', tag, output) except FileExistsError:
pass
with open(output, 'w') as writer:
with open(temp) as reader:
head = reader.readline()
assert head.startswith('<?xml')
writer.write(head)
writer.write(header_comment)
for line in reader:
writer.write(line)
finally:
os.remove(temp)
with lock: with lock:
nonlocal done nonlocal done
done += 1 done += 1
...@@ -59,6 +71,8 @@ if __name__ == "__main__": ...@@ -59,6 +71,8 @@ if __name__ == "__main__":
api_token=sys.argv[1], api_token=sys.argv[1],
project_id='89595', project_id='89595',
languages={ languages={
# Arabic
'ar': 'ar',
# Chinese (simplified) # Chinese (simplified)
'zh-CN': 'zh-rCN', 'zh-CN': 'zh-rCN',
# Chinese (traditional) # Chinese (traditional)
...@@ -83,4 +97,27 @@ if __name__ == "__main__": ...@@ -83,4 +97,27 @@ if __name__ == "__main__":
'plugin': 'plugin', 'plugin': 'plugin',
}, },
file_path='{1}/src/main/res/values-{0}/strings.xml', file_path='{1}/src/main/res/values-{0}/strings.xml',
header_comment='''<!--
Copyright (C) 2019 by Max Lv <max.c.lv@gmail.com>
Copyright (C) 2019 by Mygod Studio <contact-shadowsocks-android@mygod.be>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
DO NOT EDIT: This file was automagically generated by script.
If you are looking for contributing a translation, read this:
https://discourse.shadowsocks.org/t/poeditor-translation-main-thread/30
-->
''',
)) ))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment