1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Move unsupported language list into a separate file (#13865)

This commit is contained in:
Muhammad Rifqi Priyo Susanto 2023-10-05 22:29:02 +07:00 committed by GitHub
parent 8db4381304
commit c60d971bc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 12 deletions

View file

@ -56,6 +56,9 @@ task prepareAssets() {
def projRoot = rootDir.parent
def gameToCopy = "minetest_game"
// See issue #4638
def unsupportedLanguages = new File("${projRoot}/src/unsupported_language_list.txt").text.readLines()
doFirst {
logger.lifecycle('Preparing assets at {}', assetsFolder)
}
@ -86,7 +89,9 @@ task prepareAssets() {
}
// compile translations
fileTree("${projRoot}/po").include("**/*.po").forEach { poFile ->
fileTree("${projRoot}/po").include("**/*.po").grep {
it.parentFile.name !in unsupportedLanguages
}.forEach { poFile ->
def moPath = "${assetsFolder}/locale/${poFile.parentFile.name}/LC_MESSAGES/"
file(moPath).mkdirs()
exec {