mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +01:00
fix hebrew
This commit is contained in:
1
briar-android/.gitignore
vendored
1
briar-android/.gitignore
vendored
@@ -4,3 +4,4 @@ build
|
||||
local.properties
|
||||
.settings
|
||||
src/main/assets/*.zip
|
||||
src/main/res/values-iw
|
||||
|
||||
@@ -300,13 +300,25 @@ task verifyTranslations {
|
||||
}
|
||||
}
|
||||
folders.each { n ->
|
||||
if (!translations.remove(n)) {
|
||||
if (!translations.remove(n) && n != 'iw') {
|
||||
throw new GradleException("Translation " + n + " is missing in $file")
|
||||
}
|
||||
}
|
||||
if (translations.size() != 0)
|
||||
throw new GradleException("Translations\n" + translations.join("\n")
|
||||
+ "\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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user