Skip to content

Commit

Permalink
Update translations installation
Browse files Browse the repository at this point in the history
The new version of babel 2.12.1 updated CLDR so now it does not
appear to match what Launchpad is outputting. Pin babel to 2.11.0
until it can be sorted out.
  • Loading branch information
kruton committed Mar 3, 2023
1 parent 140b1ed commit d7abd89
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions translations/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ plugins {
id "com.jetbrains.python.envs" version "0.0.31"
}

envs {
bootstrapDirectory = new File(buildDir, "bootstrap")
conda "miniconda", "Miniconda3-4.7.12.1"
}

def condaDir = "${buildDir}/bootstrap/miniconda"
def appDir = '../app/'
def localeDir = file(appDir + 'locale')
Expand All @@ -45,10 +40,9 @@ def android2poArgs = [
'fortune/%(locale)s.po'
]

task installAndroid2Po(type: Exec) {
dependsOn 'build_envs'
executable "${condaDir}/bin/pip"
args 'install', android2poUrl
envs {
bootstrapDirectory = new File(buildDir, "bootstrap")
conda "miniconda", "Miniconda3-py39_23.1.0-1", [android2poUrl, "babel==2.11.0"]
}

task untarTranslations(type: Copy) {
Expand All @@ -63,7 +57,7 @@ task importToAndroid(type: Exec) {
group = "Translations"
description = "Import translations into ConnectBot from app/locale directory."

dependsOn 'installAndroid2Po'
dependsOn 'build_envs'

executable = android2poExec
args = ['import'] + android2poArgs
Expand Down

0 comments on commit d7abd89

Please sign in to comment.