aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Luther <luther.ralf@gmail.com>2020-12-21 10:44:07 +0100
committerRalf Luther <luther.ralf@gmail.com>2020-12-21 10:44:07 +0100
commit69d147ebbe5717fa9ac20df21aa5454d7c6d2d95 (patch)
tree7c2d8b8139ad639b908afe354d13c09fa0ba61ad
parent0f36c00fb30c19b05e32fd71a3476480977d3aca (diff)
crowdin: first shot for Android "R"
* Update the ReadMe * Adapt the files for the new branch * Add currently translatable repos as of now. Change-Id: Ic802a2fdac9f4bc533446ab829527479061d8c16
-rw-r--r--[-rwxr-xr-x]README.mkdn46
-rw-r--r--config/crowdin.xml27
-rw-r--r--config/r11.1.yml (renamed from config/q10.0.yml)69
-rw-r--r--config/r11.1_extra_packages.xml (renamed from config/q10.0_extra_packages.xml)2
4 files changed, 86 insertions, 58 deletions
diff --git a/README.mkdn b/README.mkdn
index bc9e2fe..690108e 100755..100644
--- a/README.mkdn
+++ b/README.mkdn
@@ -16,9 +16,9 @@ Prerequisites
4. The package "python-git" is used for Git integration and must be installed (also see: https://gitpython.readthedocs.io/en/stable/).
-5. The install of the package "python-gitdb" with its dependencies via a package manager or via <code>pip install gitdb</code> for python 3.6.x.
+5. The install of the package "python-gitdb" with its dependencies via a package manager or via <code>pip install gitdb</code> for python 3.x.x.
-6. A prebuilt java version of crowdin-cli >= 3.2.x or a packaged version (see: https://support.crowdin.com/cli-tool/) is required for
+6. A prebuilt java version of crowdin-cli >= 3.2.x or a packaged version (see: https://support.crowdin.com/cli-tool/) is required for
this script to work.
It can be downloaded and installed for different Linux distributions as described on the mentioned webpage.
@@ -26,7 +26,7 @@ Prerequisites
7. Currently the crowdin-cli tool requires either Windows10 WSL2, macOS or Linux and an appropiate Java version >= 1.8.xx to work.
-8. <code>/config/crowdin.xml</code> must be copied to <code>/q10.0/platform/manifest/crowdin.xml</code> of each "AICP-version" tree.
+8. <code>/config/crowdin.xml</code> must be copied to <code>/r11.1/platform/manifest/crowdin.xml</code> of each "AICP-version" tree.
This makes sure you will sync all the translatable and extra packages.
Please remember that you should comment out the packages you already have in your local aicp_manifest.xml file
as these are device dependent.
@@ -34,31 +34,31 @@ Prerequisites
Executing
---------
-Export the needed environment variables to set the API key and the base path to your zsh config, **.bashrc** or **.bash-profile**.
+Export the needed environment variables to set the API key and the base path to your **.zshrc**, **.bashrc** or **.bash-profile**.
The base path should contain all AICP trees in subfolders, named after AICP branches.
Needed directory structure:
-* /home
-* /your_username
- * /aicp
- * /config/q10.0.yml #Configuration file for the transaltable repositories
- * /q10.0
- * /.platform
- * /manifest/crowdin.xml
- * crowdin_sync.py #Python script for the crowdin-CLI tool
+
+<pre><code> home/<br />
+ your_username/<br />
+ aicp/
+ crowdin_sync.py #Python script for the crowdin-CLI tool<br />
+ config/r11.1.yml #Configuration file for the translatable repositories<br />
+ r11.1/<br />
+ platform_manifest/crowdin.xml #Manifest file (used by the script)<br /></code></pre>
Enviroment variables to export:
export AICP_CROWDIN_PROJECT_ID=aicp_project-id
export AICP_CROWDIN_API_TOKEN=your_aicp_personal-access-token #must be generated by you and will be displayed ONLY ONCE afterwards!
- export AICP_CROWDIN_BASE_PATH_q10_0=your_base_path_and_branch
+ export AICP_CROWDIN_BASE_PATH_r11_1=your_base_path_and_branch
Example:
export AICP_CROWDIN_PROJECT_ID=123123 #Open project settings and go to API section on the project website
export AICP_CROWDIN_API_TOKEN=68f83--your-personal-token--... #Open profile settings and go to API & SSO > New Token > create Token
- export AICP_CROWDIN_BASE_PATH_q10_0=/home/your_username/aicp/q10.0 #This is dependent on the real path to your source tree
+ export AICP_CROWDIN_BASE_PATH_r11_1=/home/your_username/aicp/r11.1 #This is dependent on the real path to your source tree
Execute:
@@ -85,28 +85,28 @@ optional arguments:<br />
Examples:
-<code>./crowdin_sync.py --username Gerrit-Username --branch q10.0 --upload-sources</code>
+<code>./crowdin_sync.py --username Gerrit-Username --branch r11.1 --upload-sources</code>
Will upload specified local files from the YAML-config to Crowdin. Translations already there will be preserved.
-<code>./crowdin_sync.py --username Gerrit-Username --branch q10.0 --upload-translations</code>
+<code>./crowdin_sync.py --username Gerrit-Username --branch r11.1 --upload-translations</code>
Will upload local translations to Crowdin, based on YAML-config and from your local sources.
-<code>./crowdin_sync.py --username Gerrit-Username --branch q10.0 --download</code>
+<code>./crowdin_sync.py --username Gerrit-Username --branch r11.1 --download</code>
-Will download translations from Crowdin of the specified branch (q10.0), based on YAML-config, to your local sources,
+Will download translations from Crowdin of the specified branch (r11.1), based on YAML-config, to your local sources,
delete empty translations and upload updated or new translations to AICP Gerrit for review.
-<code>./crowdin_sync.py --branch q10.0 --local-download</code>
+<code>./crowdin_sync.py --branch r11.1 --local-download</code>
-Will download translations from Crowdin of the specified branch (q10.0), based on YAML-config, to your local sources
+Will download translations from Crowdin of the specified branch (r11.1), based on YAML-config, to your local sources
and delete empty translations. This is useful to perform local builds and test the imported translations.
-<code>./crowdin_sync.py --username Gerrit-Username --branch q10.0 --submit</code>
-<code>./crowdin_sync.py --username Gerrit-Username --branch q10.0 --submit --owner "Name"</code>
+<code>./crowdin_sync.py --username Gerrit-Username --branch r11.1 --submit</code>
+<code>./crowdin_sync.py --username Gerrit-Username --branch r11.1 --submit --owner "Name"</code>
-Will search for open translations commits on AICP's Gerrit on the specified branch (q10.0) and
+Will search for open translations commits on AICP's Gerrit on the specified branch (r11.1) and
automatically review, verify and submit them into the repositories. This is useful after successful builds and requires
Gerrit Admin rights to preform this action.
The optional "--owner" option filters the submitted files, so we can make sure that no accidental merges happen.
diff --git a/config/crowdin.xml b/config/crowdin.xml
new file mode 100644
index 0000000..868d2a3
--- /dev/null
+++ b/config/crowdin.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest>
+ <!-- Sync settings for repositories used by crowdin-->
+ <remote name="aicp" fetch="ssh://git@github.com" revision="r11.1" />
+ <default remote="aicp" sync-c="true" sync-j="8" sync-f="true" />
+
+ <!-- platform_manifest -->
+ <project path="platform/manifest" name="AICP/platform_manifest" />
+
+ <!-- Repositories that are translated by crowdin (must be in sync with branch's .yml file) -->
+ <project path="frameworks/base" name="AICP/frameworks_base" />
+ <project path="frameworks/opt/slimrecent" name="AICP/frameworks_opt_slimrecent" />
+ <project path="frameworks/opt/aicpgear" name="AICP/frameworks_opt_aicpgear" />
+ <project path="packages/apps/AicpExtras" name="AICP/packages_apps_AicpExtras" />
+ <project path="packages/apps/Updater" name="AICP/packages_apps_Updater" />
+ <project path="packages/apps/Dialer" name="AICP/packages_apps_Dialer" />
+ <project path="packages/apps/Launcher3" name="AICP/packages_apps_Launcher3" />
+ <project path="packages/apps/Settings" name="AICP/packages_apps_Settings" />
+ <!-- <project path="packages/providers/MediaProvider" name="AICP/packages_providers_MediaProvider" /> -->
+ <project path="packages/services/OmniJaws" name="AICP/packages_services_OmniJaws" />
+ <project path="packages/resources/devicesettings" name="AICP/packages_resources_devicesettings" />
+ <project path="packages/resources/deviceparts" name="AICP/packages_resources_deviceparts" />
+
+ <!-- Devicespecific repositories (must be in sync with branch's extra_packages.xml file) -->
+ <project path="packages/apps/FlipFlap" name="AICP/packages_apps_FlipFlap" />
+ <!-- <project path="packages/apps/JamesDSPManager" name="AICP/packages_apps_JamesDSPManager" /> -->
+</manifest>
diff --git a/config/q10.0.yml b/config/r11.1.yml
index c532dd7..29d868b 100644
--- a/config/q10.0.yml
+++ b/config/r11.1.yml
@@ -160,11 +160,11 @@
"translation": "/frameworks/base/packages/SystemUI/res/values-%android_code%/%original_file_name%",
"languages_mapping": *anchor
},
- {
- "source": "/frameworks/base/packages/SystemUI/res-keyguard/values/aicp_strings.xml",
- "translation": "/frameworks/base/packages/SystemUI/res-keyguard/values-%android_code%/%original_file_name%",
- "languages_mapping": *anchor
- },
+# {
+# "source": "/frameworks/base/packages/SystemUI/res-keyguard/values/aicp_strings.xml",
+# "translation": "/frameworks/base/packages/SystemUI/res-keyguard/values-%android_code%/%original_file_name%",
+# "languages_mapping": *anchor
+# },
# PackageInstaller
{
@@ -219,23 +219,38 @@
"translation": "/packages/apps/Dialer/java/com/android/dialer/app/res/values-%android_code%/%original_file_name%",
"languages_mapping": *anchor
},
- {
- "source": "/packages/apps/Dialer/java/com/android/dialer/calldetails/res/values/aicp_strings.xml",
- "translation": "/packages/apps/Dialer/java/com/android/dialer/calldetails/res/values-%android_code%/%original_file_name%",
- "languages_mapping": *anchor
- },
+# {
+# "source": "/packages/apps/Dialer/java/com/android/dialer/calldetails/res/values/cm_strings.xml",
+# "translation": "/packages/apps/Dialer/java/com/android/dialer/calldetails/res/values-%android_code%/%original_file_name%",
+# "languages_mapping": *anchor
+# },
+# {
+# "source": "/packages/apps/Dialer/java/com/android/dialer/calllogutils/res/values/cm_strings.xml",
+# "translation": "/packages/apps/Dialer/java/com/android/dialer/calllogutils/res/values-%android_code%/%original_file_name%",
+# "languages_mapping": *anchor
+# },
+# {
+# "source": "/packages/apps/Dialer/java/com/android/dialer/callstats/res/values/cm_strings.xml",
+# "translation": "/packages/apps/Dialer/java/com/android/dialer/calllogutils/res/values-%android_code%/%original_file_name%",
+# "languages_mapping": *anchor
+# },
+# {
+# "source": "/packages/apps/Dialer/java/com/android/dialer/callstats/res/values/cm_plurals.xml",
+# "translation": "/packages/apps/Dialer/java/com/android/dialer/calllogutils/res/values-%android_code%/%original_file_name%",
+# "languages_mapping": *anchor
+# },
- # JamesDSPManager
- {
- "source": "/packages/apps/JamesDSPManager/app/src/main/res/values/strings.xml",
- "translation": "/packages/apps/JamesDSPManager/app/src/main/res/values-%android_code%/%original_file_name%",
- "languages_mapping": *anchor
- },
- {
- "source": "/packages/apps/JamesDSPManager/app/src/main/res/values/arrays.xml",
- "translation": "/packages/apps/JamesDSPManager/app/src/main/res/values-%android_code%/%original_file_name%",
- "languages_mapping": *anchor
- },
+# # JamesDSPManager
+# {
+# "source": "/packages/apps/JamesDSPManager/app/src/main/res/values/strings.xml",
+# "translation": "/packages/apps/JamesDSPManager/app/src/main/res/values-%android_code%/%original_file_name%",
+# "languages_mapping": *anchor
+# },
+# {
+# "source": "/packages/apps/JamesDSPManager/app/src/main/res/values/arrays.xml",
+# "translation": "/packages/apps/JamesDSPManager/app/src/main/res/values-%android_code%/%original_file_name%",
+# "languages_mapping": *anchor
+# },
# Launcher3
{
@@ -273,18 +288,6 @@
},
# Device specific
- # device_oppo_common DeviceHandler for OnePlus
- {
- "source": "/device/oppo/common/DeviceHandler/res/values/strings.xml",
- "translation": "/device/oppo/common/DeviceHandler/res/values-%android_code%/%original_file_name%",
- "languages_mapping": *anchor
- },
- {
- "source": "/device/oppo/common/overlay/packages/apps/Settings/res/values/devicehandlerstrings.xml",
- "translation": "/device/oppo/common/overlay/packages/apps/Settings/res/values-%android_code%/%original_file_name%",
- "languages_mapping": *anchor
- },
-
# DeviceSettings
{
"source": "/packages/resources/devicesettings/res/values/strings.xml",
diff --git a/config/q10.0_extra_packages.xml b/config/r11.1_extra_packages.xml
index cc95fb6..6f5250f 100644
--- a/config/q10.0_extra_packages.xml
+++ b/config/r11.1_extra_packages.xml
@@ -3,8 +3,6 @@
<!-- Extra packages not included in the main manifest -->
<!-- Devicespecific repositories that can be translated -->
- <project path="device/oppo/common" name="AICP/device_oppo_common" />
<project path="packages/apps/FlipFlap" name="AICP/packages_apps_FlipFlap" />
- <project path="packages/apps/MusicFX" name="AICP/packages_apps_MusicFX" />
<project path="packages/apps/JamesDSPManager" name="AICP/packages_apps_JamesDSPManager" />
</manifest>