From 1c688a3479fd7df5df778fdc8fa3012f1caeca18 Mon Sep 17 00:00:00 2001 From: Gregor Santner Date: Sat, 2 Oct 2021 14:42:07 +0200 Subject: [PATCH] Fix language preference: Properly show all languages (PR #1453 by @gsantner) (cherry picked from commit 7ff1f1389d69df9ac2c0e041600451649325ac85) --- build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 75a6ed58..4e1fd9c8 100644 --- a/build.gradle +++ b/build.gradle @@ -83,14 +83,15 @@ static String findUsedAndroidLocales() { Set langs = new HashSet<>() new File('.').eachFileRecurse(groovy.io.FileType.DIRECTORIES) { final foldername = it.name - if (foldername.startsWith('values-') && !it.canonicalPath.contains("build" + File.separator + "intermediates") && !it.canonicalPath.contains("gradle" + File.separator + "daemon")) { + if (foldername.contains('values-') && !it.absolutePath.contains("build" + File.separator + "intermediates") && !foldername.matches(".*values-((.*[0-9])|(land)|(port)).*")) { new File(it.toString()).eachFileRecurse(groovy.io.FileType.FILES) { - if (it.name.toLowerCase().endsWith(".xml") && it.getCanonicalFile().getText('UTF-8').contains("