Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
e590fb50
Commit
e590fb50
authored
Jul 24, 2019
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update translations
parent
ef1f455a
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
497 additions
and
8 deletions
+497
-8
build.gradle
build.gradle
+1
-1
core/src/main/res/values-ar/strings.xml
core/src/main/res/values-ar/strings.xml
+37
-0
core/src/main/res/values-es/strings.xml
core/src/main/res/values-es/strings.xml
+22
-0
core/src/main/res/values-fa/strings.xml
core/src/main/res/values-fa/strings.xml
+22
-0
core/src/main/res/values-fr/strings.xml
core/src/main/res/values-fr/strings.xml
+22
-0
core/src/main/res/values-ja/strings.xml
core/src/main/res/values-ja/strings.xml
+34
-0
core/src/main/res/values-ko/strings.xml
core/src/main/res/values-ko/strings.xml
+22
-0
core/src/main/res/values-ru/strings.xml
core/src/main/res/values-ru/strings.xml
+29
-2
core/src/main/res/values-tr/strings.xml
core/src/main/res/values-tr/strings.xml
+22
-0
core/src/main/res/values-zh-rCN/strings.xml
core/src/main/res/values-zh-rCN/strings.xml
+24
-0
core/src/main/res/values-zh-rTW/strings.xml
core/src/main/res/values-zh-rTW/strings.xml
+22
-0
plugin/src/main/res/values-es/strings.xml
plugin/src/main/res/values-es/strings.xml
+22
-0
plugin/src/main/res/values-fa/strings.xml
plugin/src/main/res/values-fa/strings.xml
+22
-0
plugin/src/main/res/values-fr/strings.xml
plugin/src/main/res/values-fr/strings.xml
+22
-0
plugin/src/main/res/values-ja/strings.xml
plugin/src/main/res/values-ja/strings.xml
+22
-0
plugin/src/main/res/values-ko/strings.xml
plugin/src/main/res/values-ko/strings.xml
+22
-0
plugin/src/main/res/values-ru/strings.xml
plugin/src/main/res/values-ru/strings.xml
+22
-0
plugin/src/main/res/values-tr/strings.xml
plugin/src/main/res/values-tr/strings.xml
+22
-0
plugin/src/main/res/values-zh-rCN/strings.xml
plugin/src/main/res/values-zh-rCN/strings.xml
+22
-0
plugin/src/main/res/values-zh-rTW/strings.xml
plugin/src/main/res/values-zh-rTW/strings.xml
+22
-0
translate.py
translate.py
+42
-5
No files found.
build.gradle
View file @
e590fb50
...
@@ -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
{
...
...
core/src/main/res/values-ar/strings.xml
0 → 100644
View file @
e590fb50
<?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
core/src/main/res/values-es/strings.xml
View file @
e590fb50
<?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>
...
...
core/src/main/res/values-fa/strings.xml
View file @
e590fb50
<?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>
...
...
core/src/main/res/values-fr/strings.xml
View file @
e590fb50
<?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>
...
...
core/src/main/res/values-ja/strings.xml
View file @
e590fb50
<?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
core/src/main/res/values-ko/strings.xml
View file @
e590fb50
<?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>
...
...
core/src/main/res/values-ru/strings.xml
View file @
e590fb50
<?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
core/src/main/res/values-tr/strings.xml
View file @
e590fb50
<?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>
...
...
core/src/main/res/values-zh-rCN/strings.xml
View file @
e590fb50
<?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
core/src/main/res/values-zh-rTW/strings.xml
View file @
e590fb50
<?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>
...
...
plugin/src/main/res/values-es/strings.xml
View file @
e590fb50
<?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>
...
...
plugin/src/main/res/values-fa/strings.xml
View file @
e590fb50
<?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>
...
...
plugin/src/main/res/values-fr/strings.xml
View file @
e590fb50
<?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>
...
...
plugin/src/main/res/values-ja/strings.xml
View file @
e590fb50
<?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>
...
...
plugin/src/main/res/values-ko/strings.xml
View file @
e590fb50
<?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>
...
...
plugin/src/main/res/values-ru/strings.xml
View file @
e590fb50
<?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>
...
...
plugin/src/main/res/values-tr/strings.xml
View file @
e590fb50
<?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>
...
...
plugin/src/main/res/values-zh-rCN/strings.xml
View file @
e590fb50
<?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>
...
...
plugin/src/main/res/values-zh-rTW/strings.xml
View file @
e590fb50
<?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>
...
...
translate.py
View file @
e590fb50
...
@@ -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
-->
'''
,
))
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment