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
The Tor Project
Applications
fenix
Commits
460d5891
Unverified
Commit
460d5891
authored
Oct 07, 2020
by
Matthew Finkel
Browse files
Bug 40071: Show only supported locales
parent
4a7a5f7b
Pipeline
#1340
failed with stages
in 9 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/build.gradle
View file @
460d5891
...
...
@@ -589,7 +589,7 @@ task buildTranslationArray {
foundLocales
.
append
(
"new String[]{"
)
fileTree
(
"src/main/res"
).
visit
{
FileVisitDetails
details
->
if
(
details
.
file
.
path
.
endsWith
(
"/strings.xml"
)){
if
(
details
.
file
.
path
.
endsWith
(
"/
torbrowser_
strings.xml"
)){
def
languageCode
=
details
.
file
.
parent
.
tokenize
(
'/'
).
last
().
replaceAll
(
'values-'
,
''
).
replaceAll
(
'-r'
,
'-'
)
languageCode
=
(
languageCode
==
"values"
)
?
"en-US"
:
languageCode
languageCodes
.
add
(
languageCode
)
...
...
Write
Preview
Supports
Markdown
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