|
From: Arno H. <aho...@us...> - 2000-10-26 15:38:41
|
Update of /cvsroot/phpwiki/phpwiki/locale In directory slayer.i.sourceforge.net:/tmp/cvs-serv31978/locale Modified Files: translate.sh Log Message: another gettext() patch from Jan (fix plus translation of savepage) Index: translate.sh =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/locale/translate.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** translate.sh 2000/10/22 19:52:02 1.3 --- translate.sh 2000/10/26 15:38:38 1.4 *************** *** 31,38 **** awk -- ' ! BEGIN { print ("<?php") } ! /^msgid ""/ { getline; next } ! /^msgid "/ { msgid = substr ($0, 7); print ("$locale[" msgid "] ="); next } ! /^msgstr "/ { msgstr = substr ($0, 8); print (" " msgstr ";"); next } ! END { print ("?>") }' $po > $locale/phpwiki.php done --- 31,70 ---- awk -- ' ! 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 (mgsid && str) ! print ("$locale[\"" msgid "\"] =\n \"" str "\";"); ! print ("\n;?>"); ! } ! ! ' $po > $locale/phpwiki.php done |