update helper scripts
This commit is contained in:
parent
b371b16bf6
commit
7a822a24a1
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
gen() {
|
gen() {
|
||||||
name=`basename "$1" .svgz`
|
name=`basename "$1" .svgz`
|
||||||
png="res/drawable-$2/$name.png"
|
png="app/src/main/res/drawable-$2/$name.png"
|
||||||
if [ "$1" -nt "$png" -o ! -e "$png" ]; then
|
if [ "$1" -nt "$png" -o ! -e "$png" ]; then
|
||||||
inkscape --without-gui --export-area-page --export-dpi=$3 --export-png="$png" $1
|
inkscape --without-gui --export-area-page --export-dpi=$3 --export-png="$png" $1
|
||||||
echo
|
echo
|
||||||
|
@ -23,7 +23,7 @@ foreach my $src_file (glob("translations/vanilla-music-1.en-strings/*.xml")) {
|
|||||||
if ($src_file =~ /\/([a-zA-Z_]+)\.xml/) {
|
if ($src_file =~ /\/([a-zA-Z_]+)\.xml/) {
|
||||||
my $locale = $1;
|
my $locale = $1;
|
||||||
$locale = $LMAP->{$locale} if exists $LMAP->{$locale};
|
$locale = $LMAP->{$locale} if exists $LMAP->{$locale};
|
||||||
my $dst_file = "res/values-$locale/translatable.xml";
|
my $dst_file = "app/src/main/res/values-$locale/translatable.xml";
|
||||||
|
|
||||||
warn "+ $src_file -> $dst_file\n";
|
warn "+ $src_file -> $dst_file\n";
|
||||||
die "Unknown locale: '$locale', target=$dst_file\n" unless -f $dst_file;
|
die "Unknown locale: '$locale', target=$dst_file\n" unless -f $dst_file;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user