Update of /cvsroot/phpwiki/phpwiki/locale
In directory usw-pr-cvs1:/tmp/cvs-serv29094
Added Files:
Makefile make-php-trans.awk
Log Message:
New file: locale/Makefile to replace locale/translate.sh
***** Error reading new file: [Errno 2] No such file or directory: 'Makefile'
--- NEW FILE ---
BEGIN {
msgid=""; msgstr="";
print ("<?php\n");
}
/^msgid ""/ {
if (msgid && str)
print ("$locale[\"" msgid "\"] =\n \"" str "\";");
str="";
next;
}
/^msgid "/ { #"{
if (msgid && str)
print ("$locale[\"" msgid "\"] =\n \"" str "\";");
str = substr ($0, 8, length ($0) - 8);
msgstr="";
}
/^msgstr ""/ {
msgid=str;
str="";
next;
}
/^msgstr "/ { #"{
msgid=str;
str = substr ($0, 9, length ($0) - 9);
next;
}
/^"/ { #"{
str = (str substr ($0, 2, length ($0) - 2));
next;
}
END {
if (msgid && str)
print ("$locale[\"" msgid "\"] =\n \"" str "\";");
print ("\n;?>");
}
|