aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Solano <csolano@gmail.com>2020-01-14 11:44:18 +0100
committerCarlos Solano <csolano@gmail.com>2020-01-14 11:44:18 +0100
commit125f793334c255d3662ba9eda3b66e339f8b1b1a (patch)
tree5905ef0107d8f123b92f49a5204d69097ff45969
parentd14532375651dc098bc7fea23d17566096a0fd4e (diff)
crowdin: remove old structure from p9.0
Change-Id: I90e03c914b136c54a785e10718ef78ad0108aaf8
-rw-r--r--config/q10.0.yaml2
-rwxr-xr-xcrowdin_sync.py35
2 files changed, 5 insertions, 32 deletions
diff --git a/config/q10.0.yaml b/config/q10.0.yaml
index 9829bc5..994a1a3 100644
--- a/config/q10.0.yaml
+++ b/config/q10.0.yaml
@@ -1,4 +1,4 @@
-# p9.0.yaml
+# q10.0.yaml
#
# Crowdin configuration file for AICP
#
diff --git a/crowdin_sync.py b/crowdin_sync.py
index ac822c6..60f9f1e 100755
--- a/crowdin_sync.py
+++ b/crowdin_sync.py
@@ -361,11 +361,6 @@ def upload_sources_crowdin(branch, config):
'--config=%s/config/%s.yaml' % (_DIR, branch),
'upload', 'sources', '--branch=%s' % branch])
- print('\nUploading GZOSP sources to Crowdin (AOSP supported languages)')
- check_run(['java', '-jar', '/usr/local/bin/crowdin-cli.jar',
- '--config=%s/config/%s_gzosp.yaml' % (_DIR, branch),
- 'upload', 'sources', '--branch=%s' % branch])
-
def upload_translations_crowdin(branch, config):
if config:
@@ -384,15 +379,6 @@ def upload_translations_crowdin(branch, config):
'--no-import-duplicates', '--import-eq-suggestions',
'--auto-approve-imported'])
- print('\nUploading GZOSP translations to Crowdin '
- '(AOSP supported languages)')
- check_run(['java', '-jar', '/usr/local/bin/crowdin-cli.jar',
- '--config=%s/config/%s_gzosp.yaml' % (_DIR, branch),
- 'upload', 'translations', '--branch=%s' % branch,
- '--no-import-duplicates', '--import-eq-suggestions',
- '--auto-approve-imported'])
-
-
def local_download(base_path, branch, xml, config):
if config:
print('\nDownloading translations from Crowdin (custom config)')
@@ -406,13 +392,6 @@ def local_download(base_path, branch, xml, config):
'--config=%s/config/%s.yaml' % (_DIR, branch),
'download', '--branch=%s' % branch])
- print('\nDownloading GZOSP translations from Crowdin '
- '(AOSP supported languages)')
- check_run(['java', '-jar', '/usr/local/bin/crowdin-cli.jar',
- '--config=%s/config/%s_gzosp.yaml' % (_DIR, branch),
- 'download', '--branch=%s' % branch])
-
-
def download_crowdin(base_path, branch, xml, username, config):
local_download(base_path, branch, xml, config)
@@ -422,8 +401,7 @@ def download_crowdin(base_path, branch, xml, username, config):
if config:
files = [('%s/config/%s' % (_DIR, config))]
else:
- files = [('%s/config/%s.yaml' % (_DIR, branch)),
- ('%s/config/%s_gzosp.yaml' % (_DIR, branch))]
+ files = [('%s/config/%s.yaml' % (_DIR, branch))]
for c in files:
cmd = ['java', '-jar', '/usr/local/bin/crowdin-cli.jar',
'--config=%s' % c, 'list', 'project', '--branch=%s' % branch]
@@ -513,21 +491,16 @@ def main():
if xml_extra is None:
sys.exit(1)
- xml_gzosp = load_xml(x='%s/platform_manifest/gzosp_default.xml' % base_path)
- if xml_gzosp is None:
- sys.exit(1)
-
- xml_aicp = load_xml(x='%s/platform_manifest/aicp_default.xml' % base_path)
+ xml_aicp = load_xml(x='%s/platform_manifest/aicp-default.xml' % base_path)
if xml_aicp is not None:
xml_files = (xml_default, xml_aicp, xml_extra)
else:
- xml_files = (xml_default, xml_extra, xml_gzosp)
+ xml_files = (xml_default, xml_extra)
if args.config:
files = [('%s/config/%s' % (_DIR, args.config))]
else:
- files = [('%s/config/%s.yaml' % (_DIR, default_branch)),
- ('%s/config/%s_gzosp.yaml' % (_DIR, default_branch))]
+ files = [('%s/config/%s.yaml' % (_DIR, default_branch))]
if not check_files(files):
sys.exit(1)