summaryrefslogtreecommitdiff
path: root/tools/buildzip.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/buildzip.pl')
-rwxr-xr-xtools/buildzip.pl35
1 files changed, 2 insertions, 33 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 4c21ae819f..4faa38ac54 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -154,30 +154,6 @@ sub filesize {
154 return $size; 154 return $size;
155} 155}
156 156
157sub buildlangs {
158 my ($outputlang)=@_;
159 my $dir = "$ROOT/apps/lang";
160 opendir(DIR, $dir);
161 my @files = grep { /\.lang$/ } readdir(DIR);
162 closedir(DIR);
163
164 # Exclude some bad languages (uncomment and adjust in case of release
165 # and/or End Times)
166 # @files = grep(!/(afrikaans|hindi|slovenscina|turkce)\.lang/, @files);
167
168 # Exclude more languages on the player which won't work on charcell display
169 if ($archos =~ /^"?player:/ ) {
170 @files = grep(!/(chinese-simp|chinese-trad|hindi|japanese|korean|thai)\.lang/, @files);
171 }
172
173 for(@files) {
174 my $output = $_;
175 $output =~ s/(.*)\.lang/$1.lng/;
176 print "$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -i=$target_id -b=$outputlang/$output $dir/$_\n" if($verbose);
177 system ("$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -i=$target_id -b=$outputlang/$output $dir/$_ >/dev/null 2>&1");
178 }
179}
180
181sub buildzip { 157sub buildzip {
182 my ($zip, $image, $fonts)=@_; 158 my ($zip, $image, $fonts)=@_;
183 159
@@ -413,15 +389,8 @@ STOP
413 # and the info file 389 # and the info file
414 system("cp rockbox-info.txt .rockbox/"); 390 system("cp rockbox-info.txt .rockbox/");
415 391
416 # now copy the file made for reading on the unit: 392 # copy the already built lng files
417 #if($notplayer) { 393 `cp apps/lang/*lng .rockbox/langs/`
418 # `cp $webroot/docs/Help-JBR.txt .rockbox/docs/`;
419 #}
420 #else {
421 # `cp $webroot/docs/Help-Stu.txt .rockbox/docs/`;
422 #}
423
424 buildlangs(".rockbox/langs");
425 394
426} 395}
427 396