forked from nextcloud/android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed all strings except English and German.
- Loading branch information
1 parent
b939e42
commit 893d810
Showing
4 changed files
with
58 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// remove all translations except english and german | ||
task removeTranslations { | ||
println 'Removing all translations except English and German' | ||
doLast { | ||
def resDir = file('src/main/res') | ||
def excludeDirs = ['values-de'] // Add directories to exclude | ||
resDir.eachDir { dir -> | ||
if (!excludeDirs.contains(dir.name) && dir.name.startsWith('values-')) { | ||
def stringsXml = new File(dir, 'strings.xml') | ||
if (stringsXml.exists()) { | ||
println "Deleting ${stringsXml.path}" | ||
stringsXml.delete() | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
preBuild.dependsOn removeTranslations |