Skip to content
Snippets Groups Projects
Verified Commit 1834146a authored by Julian Dehm's avatar Julian Dehm
Browse files

fix hebrew

parent 695b543b
No related branches found
No related tags found
No related merge requests found
...@@ -4,3 +4,4 @@ build ...@@ -4,3 +4,4 @@ build
local.properties local.properties
.settings .settings
src/main/assets/*.zip src/main/assets/*.zip
src/main/res/values-iw
...@@ -300,13 +300,25 @@ task verifyTranslations { ...@@ -300,13 +300,25 @@ task verifyTranslations {
} }
} }
folders.each { n -> folders.each { n ->
if (!translations.remove(n)) { if (!translations.remove(n) && n != 'iw') {
throw new GradleException("Translation " + n + " is missing in $file") throw new GradleException("Translation " + n + " is missing in $file")
} }
} }
if (translations.size() != 0) if (translations.size() != 0)
throw new GradleException("Translations\n" + translations.join("\n") throw new GradleException("Translations\n" + translations.join("\n")
+ "\nhave no matching value folder") + "\nhave no matching value folder")
// Some devices use iw instead of he for hebrew
def hebrew_legacy = new File("briar-android/src/main/res/values-iw")
def hebrew = new File("briar-android/src/main/res/values-he")
// Copy values-he to values-iw
if (hebrew.exists()) {
hebrew_legacy.mkdir()
copy {
from 'src/main/res/values-he'
into 'src/main/res/values-iw'
}
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment