aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Luther <luther.ralf@gmail.com>2022-07-02 13:13:31 +0200
committerRalf Luther <luther.ralf@gmail.com>2022-07-02 13:13:31 +0200
commitdfd997c4861e6f2e4db21690c1e685677a70dbed (patch)
tree7e781752815def36c7d71ef21b7d1681fa07d151
parentdfe7a9c7be04706d92adaeee646efe05d136736e (diff)
crowdin: initial checkin for s12.1
Change-Id: Ia322e4cef33ecb4de4facf52a35f7fa0bfa149e7
-rw-r--r--README.mkdn32
-rw-r--r--config/crowdin.xml10
-rw-r--r--config/s12.1.yml (renamed from config/r11.1.yml)113
-rwxr-xr-xconfig/s12.1_extra_packages.xml (renamed from config/r11.1_extra_packages.xml)4
4 files changed, 85 insertions, 74 deletions
diff --git a/README.mkdn b/README.mkdn
index 49ade15..67b554b 100644
--- a/README.mkdn
+++ b/README.mkdn
@@ -18,15 +18,15 @@ Prerequisites
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.x.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.
*Note: The current limitation is that the script will search for an executable (alias) using the "which" command on a Linux/macOS installation.*
-7. Currently the crowdin-cli tool requires either Windows10+ WSL2, macOS or Linux and an appropiate Java version >= 1.8.x to work.
+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>/r11.1/platform/manifest/crowdin.xml</code> of each "AICP-version" tree.
+8. <code>/config/crowdin.xml</code> must be copied to <code>/s12.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.
@@ -44,21 +44,21 @@ Needed directory structure:
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 />
+ config/s12.1.yml #Configuration file for the translatable repositories<br />
+ s12.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_r11_1=your_base_path_and_branch
+ export AICP_CROWDIN_BASE_PATH_s12_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_r11_1=/home/your_username/aicp/r11.1 #This is dependent on the real path to your source tree
+ export AICP_CROWDIN_BASE_PATH_s12_1=/home/your_username/aicp/s12.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 r11.1 --upload-sources</code>
+<code>./crowdin_sync.py --username Gerrit-Username --branch s12.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 r11.1 --upload-translations</code>
+<code>./crowdin_sync.py --username Gerrit-Username --branch s12.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 r11.1 --download</code>
+<code>./crowdin_sync.py --username Gerrit-Username --branch s12.1 --download</code>
-Will download translations from Crowdin of the specified branch (r11.1), based on YAML-config, to your local sources,
+Will download translations from Crowdin of the specified branch (s12.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 r11.1 --local-download</code>
+<code>./crowdin_sync.py --branch s12.1 --local-download</code>
-Will download translations from Crowdin of the specified branch (r11.1), based on YAML-config, to your local sources
+Will download translations from Crowdin of the specified branch (s12.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 r11.1 --submit</code>
-<code>./crowdin_sync.py --username Gerrit-Username --branch r11.1 --submit --owner "Name"</code>
+<code>./crowdin_sync.py --username Gerrit-Username --branch s12.1 --submit</code>
+<code>./crowdin_sync.py --username Gerrit-Username --branch s12.1 --submit --owner "Name"</code>
-Will search for open translations commits on AICP's Gerrit on the specified branch (r11.1) and
+Will search for open translations commits on AICP's Gerrit on the specified branch (s12.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
index c473997..035d6b7 100644
--- a/config/crowdin.xml
+++ b/config/crowdin.xml
@@ -1,7 +1,7 @@
<?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" />
+ <remote name="aicp" fetch="ssh://git@github.com" revision="s12.1" />
<default remote="aicp" sync-c="true" sync-j="8" sync-f="true" />
<!-- platform_manifest -->
@@ -16,12 +16,14 @@
<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/apps/TilesWallpaper" name="AICP/packages_apps_TilesWallpaper" />
+ <project path="packages/apps/GameSpace" name="AICP/packages_apps_GameSpace" />
<project path="packages/services/OmniJaws" name="AICP/packages_services_OmniJaws" />
+ <project path="vendor/aicp" name="AICP/vendor_aicp" />
<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" />
+ <!-- <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/r11.1.yml b/config/s12.1.yml
index c630187..c10a8c1 100644
--- a/config/r11.1.yml
+++ b/config/s12.1.yml
@@ -1,9 +1,9 @@
-# r11.1.yaml
+# s12.1.yml
#
# Crowdin configuration file for AICP
#
# Copyright (C) 2014-2016 The CyanogenMod Project
-# Copyright (C) 2017-2019 The LineageOS Project
+# Copyright (C) 2017-2022 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
"api_key_env": "AICP_CROWDIN_API_KEY"
"project_id_env": "AICP_CROWDIN_PROJECT_ID"
"api_token_env": "AICP_CROWDIN_API_TOKEN"
-"base_path_env": AICP_CROWDIN_BASE_PATH_r11_1
+"base_path_env": AICP_CROWDIN_BASE_PATH_s12_1
"preserve_hierarchy": true
"files": [
@@ -147,6 +147,26 @@
"translation": "/frameworks/opt/aicpgear/preference/res/values-%android_code%/%original_file_name%",
"languages_mapping": *anchor
},
+ {
+ "source": "/frameworks/opt/aicpgear/util/res/values/strings.xml",
+ "translation": "/frameworks/opt/aicpgear/util/res/values-%android_code%/%original_file_name%",
+ "languages_mapping": *anchor
+ },
+ {
+ "source": "/frameworks/opt/aicpgear/preference/res/values/color_matrix_list_strings.xml",
+ "translation": "/frameworks/opt/aicpgear/preference/res/values-%android_code%/%original_file_name%",
+ "languages_mapping": *anchor
+ },
+ {
+ "source": "/frameworks/opt/aicpgear/preference/res/values/color_blend_strings.xml",
+ "translation": "/frameworks/opt/aicpgear/preference/res/values-%android_code%/%original_file_name%",
+ "languages_mapping": *anchor
+ },
+ {
+ "source": "/frameworks/opt/aicpgear/preference/res/values/app_picker_strings.xml",
+ "translation": "/frameworks/opt/aicpgear/preference/res/values-%android_code%/%original_file_name%",
+ "languages_mapping": *anchor
+ },
# frameworks-base-packages-SettingsLib
{
"source": "/frameworks/base/packages/SettingsLib/res/values/aicp_strings.xml",
@@ -154,19 +174,14 @@
"languages_mapping": *anchor
},
- # SystemUI
+ # frameworks-base-packages-SystemUI
{
"source": "/frameworks/base/packages/SystemUI/res/values/aicp_strings.xml",
"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
-# },
- # PackageInstaller
+ # frameworks-base-packages-PackageInstaller
{
"source": "/frameworks/base/packages/PackageInstaller/res/values/aicp_strings.xml",
"translation": "/frameworks/base/packages/PackageInstaller/res/values-%android_code%/%original_file_name%",
@@ -219,36 +234,9 @@
"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/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%",
+ "source": "/packages/apps/Dialer/java/com/android/dialer/calllog/ui/res/values/aicp_strings.xml",
+ "translation": "/packages/apps/Dialer/java/com/android/dialer/calldetails/res/values-%android_code%/%original_file_name%",
"languages_mapping": *anchor
},
@@ -266,13 +254,19 @@
"languages_mapping": *anchor
},
-# Providers
-# # MediaProvider
-# {
-# "source": "/packages/providers/MediaProvider/res/values/aicp_strings.xml",
-# "translation": "/packages/providers/MediaProvider/res/values-%android_code%/%original_file_name%",
-# "languages_mapping": *anchor
-# },
+ # Tiles Wallpaper Settings
+ {
+ "source": "/packages/apps/TilesWallpaper/app/src/main/res/values/strings.xml",
+ "translation": "/packages/apps/TilesWallpaper/app/src/main/res/values-%android_code%/%original_file_name%",
+ "languages_mapping": *anchor
+ },
+
+ # GameSpace
+ {
+ "source": "/packages/apps/GameSpace/app/src/main/res/values/strings.xml",
+ "translation": "/packages/apps/GameSpace/app/src/main/res/values-%android_code%/%original_file_name%",
+ "languages_mapping": *anchor
+ },
# Services
# OmniJaws
@@ -287,6 +281,21 @@
"languages_mapping": *anchor
},
+# AICP Vendor specific
+ # Aicp Themes
+ {
+ "source": "/vendor/aicp/stub/res/values/strings.xml",
+ "translation": "/vendor/aicp/stub/res/values-%android_code%/%original_file_name%",
+ "languages_mapping": *anchor
+ },
+
+ # Aicp Fonts
+ {
+ "source": "/vendor/aicp/fonts/res/values/strings.xml",
+ "translation": "/vendor/aicp/fonts/res/values-%android_code%/%original_file_name%",
+ "languages_mapping": *anchor
+ },
+
# Device specific
# DeviceSettings
{
@@ -302,10 +311,10 @@
"languages_mapping": *anchor
},
- # packages_apps_FlipFlap
- {
- "source": "/packages/apps/FlipFlap/res/values/strings.xml",
- "translation": "/packages/apps/FlipFlap/res/values-%android_code%/%original_file_name%",
- "languages_mapping": *anchor
- }
+ # FlipFlap
+# {
+# "source": "/packages/apps/FlipFlap/res/values/strings.xml",
+# "translation": "/packages/apps/FlipFlap/res/values-%android_code%/%original_file_name%",
+# "languages_mapping": *anchor
+# }
]
diff --git a/config/r11.1_extra_packages.xml b/config/s12.1_extra_packages.xml
index 839749f..dccf01f 100755
--- a/config/r11.1_extra_packages.xml
+++ b/config/s12.1_extra_packages.xml
@@ -3,6 +3,6 @@
<!-- Extra packages not included in the main manifest -->
<!-- Devicespecific repositories that can be translated -->
- <project path="packages/apps/FlipFlap" name="AICP/packages_apps_FlipFlap" remote="aicp" revision="r11.1" />
- <!-- <project path="packages/apps/JamesDSPManager" name="AICP/packages_apps_JamesDSPManager" remote="aicp" revision="r11.1" /> -->
+ <!-- <project path="packages/apps/FlipFlap" name="AICP/packages_apps_FlipFlap" remote="aicp" revision="s12.1" /> -->
+ <!-- <project path="packages/apps/JamesDSPManager" name="AICP/packages_apps_JamesDSPManager" remote="aicp" revision="s12.1" /> -->
</manifest>