GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Bug 40057: Add localized strings

parent b547847c
...@@ -27,6 +27,7 @@ EOF ...@@ -27,6 +27,7 @@ EOF
cp -rf $distdir/application-services/maven/org $gradle_repo cp -rf $distdir/application-services/maven/org $gradle_repo
tar -C $distdir -xf [% c('input_files_by_name/android-components') %] tar -C $distdir -xf [% c('input_files_by_name/android-components') %]
cp -rf $distdir/android-components/maven/org $gradle_repo cp -rf $distdir/android-components/maven/org $gradle_repo
tar -C $distdir -xf $rootdir/[% c('input_files_by_name/tba-translation') %]
[% END %] [% END %]
tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
...@@ -39,6 +40,13 @@ cp $rootdir/[% c('input_files_by_name/tor-android-service') %]/* app/ ...@@ -39,6 +40,13 @@ cp $rootdir/[% c('input_files_by_name/tor-android-service') %]/* app/
[% IF c("var/fetch_gradle_dependencies") %] [% IF c("var/fetch_gradle_dependencies") %]
$GRADLE_HOME/gradle-6.5.1/bin/gradle --debug --no-daemon app:assemble[% c('variant') %] -x lint $GRADLE_HOME/gradle-6.5.1/bin/gradle --debug --no-daemon app:assemble[% c('variant') %] -x lint
[% ELSE %] [% ELSE %]
# Add our localized strings
[% FOREACH lang = c('var/locales_mobile');
SET lang = tmpl(lang); %]
# Copy our torbrowser_strings.xml at the right place
cp /var/tmp/dist/tba-translation/[% lang %]/torbrowser_strings.xml app/src/main/res/values-[% lang %]/
[% END %]
# Prepare Glean dependencies for offline build # Prepare Glean dependencies for offline build
tar -xjf $rootdir/glean-parser-[% c('var/glean_parser') %].tar.bz2 tar -xjf $rootdir/glean-parser-[% c('var/glean_parser') %].tar.bz2
# We need to set `LC_ALL` and `LANG` to something that is not ASCII as encoding # We need to set `LC_ALL` and `LANG` to something that is not ASCII as encoding
......
...@@ -43,6 +43,9 @@ input_files: ...@@ -43,6 +43,9 @@ input_files:
- name: python - name: python
project: python project: python
enable: '[% !c("var/fetch_gradle_dependencies") %]' enable: '[% !c("var/fetch_gradle_dependencies") %]'
- name: tba-translation
project: tba-translation
enable: '[% !c("var/fetch_gradle_dependencies") %]'
- filename: 'gradle-dependencies-[% c("var/gradle_dependencies_version") %]' - filename: 'gradle-dependencies-[% c("var/gradle_dependencies_version") %]'
name: gradle-dependencies name: gradle-dependencies
enable: '[% !c("var/fetch_gradle_dependencies") %]' enable: '[% !c("var/fetch_gradle_dependencies") %]'
......
...@@ -3,5 +3,5 @@ filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz' ...@@ -3,5 +3,5 @@ filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
git_url: https://git.torproject.org/translation.git git_url: https://git.torproject.org/translation.git
# We need to bump the commit before releasing but just pointing to a branch # We need to bump the commit before releasing but just pointing to a branch
# might cause too much rebuidling of the Firefox part. # might cause too much rebuidling of the Firefox part.
git_hash: e93401f698cca39971395625e1f8de54b978ab88 git_hash: 1305ed3b598574c3fc52caaefc97a845260caa8c
version: '[% c("abbrev") %]' version: '[% c("abbrev") %]'
...@@ -98,6 +98,36 @@ var: ...@@ -98,6 +98,36 @@ var:
- vi - vi
- zh-CN - zh-CN
- zh-TW - zh-TW
locales_mobile:
- ar
- ca
- cs
- da
- de
- el
- es-rAR
- es-rES
- fa
- fr
- ga-rIE
- hu
- is
- it
- ja
- ka
- ko
- lt
- nl
- pl
- pt-rBR
- ro
- ru
- sv-rSE
- th
- tr
- vi
- zh-rCN
- zh-rTW
sign_build: '[% ENV.RBM_SIGN_BUILD %]' sign_build: '[% ENV.RBM_SIGN_BUILD %]'
sign_build_gpg_opts: '[% ENV.RBM_GPG_OPTS %]' sign_build_gpg_opts: '[% ENV.RBM_GPG_OPTS %]'
......
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