Revision: 5378 http://ipcop.svn.sourceforge.net/ipcop/?rev=5378&view=rev Author: owes Date: 2011-01-26 20:59:17 +0000 (Wed, 26 Jan 2011)
Log Message: ----------- Add quick&dirty progress list for translation DB, GUI texts only. Modified Paths: -------------- ipcop/trunk/tools/gen_strings.pl Added Paths: ----------- ipcop/trunk/langs/list_progress Added: ipcop/trunk/langs/list_progress =================================================================== --- ipcop/trunk/langs/list_progress (rev 0) +++ ipcop/trunk/langs/list_progress 2011-01-26 20:59:17 UTC (rev 5378) @@ -0,0 +1,34 @@ +Afrikaans,310,24 +Brazilian Portuguese,989,76 +Bulgarian,315,24 +Catalan,269,20 +Chinese Simplified,761,59 +Chinese Traditional,761,59 +Czech,760,59 +Danish,1288,100 +Dutch,1288,100 +Finnish,732,56 +French,1288,100 +German,1288,100 +Greek,1288,100 +Gujarati,121,9 +Hungarian,671,52 +Italian,1288,100 +Japanese,729,56 +Lithuanian,180,13 +Norwegian,763,59 +Persian,210,16 +Polish,742,57 +Portuguese,853,66 +Romanian,218,16 +Russian,1288,100 +Slovak,761,59 +Slovenian,365,28 +Somali,599,46 +Spanish,1288,100 +Spanish Latino,1010,78 +Swedish,894,69 +Thai,92,7 +Turkish,1288,100 +Urdu,215,16 +Vietnamese,761,59 Modified: ipcop/trunk/tools/gen_strings.pl =================================================================== --- ipcop/trunk/tools/gen_strings.pl 2011-01-26 20:22:41 UTC (rev 5377) +++ ipcop/trunk/tools/gen_strings.pl 2011-01-26 20:59:17 UTC (rev 5378) @@ -126,10 +126,9 @@ # one of 'ipcop' (CGI) and 'install' (installer/setup) our $file_typ = 'ipcop'; -# finally generate the lang files -# CGI +# generate the lang files for CGI &generateFiles(); -# Installer +# generate the lang files for installer $file_typ = 'install'; &generateFiles(); @@ -226,6 +225,7 @@ open(LIST, "$targetdir/list") or die 'Unable to open language list $targetdir/list'; + open(LIST_PROGRESS, ">$targetdir/list_progress") or die 'Unable to open progress list $targetdir/list_progress' if ($file_typ eq 'ipcop'); while (<LIST>) { next if $_ =~ m/^#/; @@ -284,6 +284,7 @@ } close(SOURCE_FILE); + my $cnt_translated = 0; # loop over wanted lang entries for my $key (sort (keys %tr_wanted)) { if (defined($tr_trans{$key})) { @@ -291,6 +292,7 @@ print FILE_GT "msgid \"$key\"\n"; print FILE_GT "msgstr \"$value\"\n"; + $cnt_translated++; } elsif (defined($tr_en{$key})) { # DEBUG: @@ -327,8 +329,13 @@ } unlink("$targetdir/$relativePath_pl"); print "Done.\n"; + + if (($file_typ eq 'ipcop') && ($temp[2] ne 'English')) { + print LIST_PROGRESS "$temp[2],$cnt_translated,".int($cnt_translated * 100 /(keys %tr_wanted))."\n"; + } } close (LIST); + close (LIST_PROGRESS) if ($file_typ eq 'ipcop'); # en_US to en_GB # Change Color to Colour This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn