Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthew Finkel
fenix
Commits
57b8e341
Commit
57b8e341
authored
Oct 07, 2020
by
Matthew Finkel
Browse files
Bug 40071: Show only supported locales
parent
42134384
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/build.gradle
View file @
57b8e341
...
...
@@ -612,7 +612,7 @@ task buildTranslationArray {
foundLocales
.
append
(
"new String[]{"
)
fileTree
(
"src/main/res"
).
visit
{
FileVisitDetails
details
->
if
(
details
.
file
.
path
.
endsWith
(
"${File.separator}strings.xml"
)){
if
(
details
.
file
.
path
.
endsWith
(
"${File.separator}
torbrowser_
strings.xml"
)){
def
languageCode
=
details
.
file
.
parent
.
tokenize
(
File
.
separator
).
last
().
replaceAll
(
'values-'
,
''
).
replaceAll
(
'-r'
,
'-'
)
languageCode
=
(
languageCode
==
"values"
)
?
"en-US"
:
languageCode
languageCodes
.
add
(
languageCode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment