Build: Add translations to gradle build (part 1 - jars)

This commit is contained in:
zzz
2021-01-03 09:08:21 -05:00
parent 2df5fb972a
commit 888311e34f
16 changed files with 77 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ sourceSets {
main {
java {
srcDir 'src'
srcDir 'build/messages-src'
}
}
}
@@ -12,3 +13,13 @@ dependencies {
compile project(':installer')
compile project(':apps:systray')
}
// Create the java files from the po files. The jar task will compile them.
// This requires gettext 0.19 or higher.
// We don't support the "slow way"
task bundle {
doLast {
println "apps/desktopgui/bundle-messages.sh".execute().text
}
}
jar.dependsOn bundle

1
apps/desktopgui/bundle-messages.sh Normal file → Executable file
View File

@@ -11,6 +11,7 @@
# zzz - public domain
# Mathiasdm - modifications for desktopgui
#
cd `dirname $0`
CLASS=net.i2p.desktopgui.messages
TMPFILE=build/javafiles.txt
export TZ=UTC