From: Bharat M. <bh...@us...> - 2002-11-05 07:16:52
|
Update of /cvsroot/gallery/gallery2/lib/tools/po In directory usw-pr-cvs1:/tmp/cvs-serv11298/lib/tools/po Modified Files: extract.pl Log Message: * Added partial Dutch translations (courtesy of Marcel van Groenigen). Marcel actually translated everything, but his translation exposed a bug in the text-extraction code, which I fixed .. leading to more strings that require translation. * First pass at creating item admin views, with a partial implementation of general item support. * Added a few useful permission methods to GalleryUserHelper Index: extract.pl =================================================================== RCS file: /cvsroot/gallery/gallery2/lib/tools/po/extract.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- extract.pl 7 Oct 2002 21:41:24 -0000 1.1 +++ extract.pl 5 Nov 2002 07:16:48 -0000 1.2 @@ -47,13 +47,13 @@ open($fd, basename($file)); my $data = join('', <$fd>); my $text; - while ($data =~ s/translate\("(.*?)"\)//s) { + while ($data =~ s/translate\([\"\'](.*?)[\"\']\)//s) { $text = $1; #$text =~ s/\s+/ /g; $strings{"_(\"$text\")"}++; } - while ($data =~ s/({galleryText.*?)(one|many|text)="(.*?)"/$1/s) { + while ($data =~ s/({galleryText.*?)(one|many|text)=[\"\'](.*?)[\"\']/$1/s) { $text = $3; #$text =~ s/\s+/ /g; $strings{"_(\"$text\")"}++; |