forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
localization.gradle
48 lines (42 loc) · 1.34 KB
/
localization.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
repositories {
jcenter()
}
configurations {
jython
}
dependencies {
jython 'org.python:jython-standalone:2.7.0'
}
task checkTranslations(type: JavaExec) {
description "Print empty and duplicate translations."
group = 'Localization'
main 'org.python.util.jython'
classpath project.configurations.jython.asPath
args file("scripts/syncLang.py")
args "-d"
}
task checkTranslationsSummary(type: JavaExec) {
description "Print summary of empty and duplicate translations."
group = 'Localization'
main 'org.python.util.jython'
classpath project.configurations.jython.asPath
args file("scripts/syncLang.py")
args "-c"
}
task showMissingTranslationKeys(type: JavaExec) {
description "Prints differences between the English translation and translations in other languages."
group = 'Localization'
main 'org.python.util.jython'
classpath project.configurations.jython.asPath
args file("scripts/syncLang.py")
args "-t"
}
task generateMissingTranslationKeys(type: JavaExec) {
description "Prints differences between the English translation and translations in other languages, and updates translations if possible."
group = 'Localization'
main 'org.python.util.jython'
classpath project.configurations.jython.asPath
args file("scripts/syncLang.py")
args "-t"
args "-u"
}