From: Carsten K. <car...@ma...> - 2001-12-18 23:02:48
|
Ok, I removed the fuzzies with emacs--what a cool little program! (I was=20= used to using pico, never even new what emacs was.) Still verifying which strings weren't picked out by xgettext. A couple more problems: 1. Variable reordering. In the case where word ordering differs during=20= translation, the gettext manual suggests the following syntax to force = the=20 correct text substitution: #: ../lib/diff.php:251 #, c-format msgid "Differences between %s and %s of %s." msgstr "Der Unterschiedsergebnis von %3$s, zwischen %1$s und %2$s." PHP doesn't like it. Probably the example from the gettext manual refers=20= to C code. PHP Warnungen locale/de/LC_MESSAGES/phpwiki.php:57: Notice[8]: Undefined variable: s What to do? 2. Strings in the html template don't seem to substitute for %s. I tried: <?php echo sprintf(_("haystack %s"),_("needle")); ?> and some permutations of $_() as they are used elsewhere on the page: <?php echo sprintf($_("haystack %s"),_("needle")); ?> The purpose is to make the three following changes, the first and second=20= are the most important: 1.=3D=3D=3D=3D #: ../templates/browse.html:97 ../templates/editpage.html:71 -msgid "You are signed in as" -msgstr "Du bist eingemeldet als" +msgid "You are signed in as %s" +msgstr "Du bist als %s eingemeldet" 2.=3D=3D=3D=3D #: ../templates/editpage.html:80 -msgid "You can change the size of the editing area in" +msgid "You can change the size of the editing area in %s" 3.=3D=3D=3D=3D -#: ../templates/editpage.html:82 -msgid "See" -msgstr "Sehe" #: ../templates/editpage.html:82 msgid "GoodStyle" msgstr "GuterStil" -#: ../templates/editpage.html:82 -msgid "tips for editing." -msgstr "tips f=B8rs Editieren." +msgid "See %s tips for editing." +msgstr "Sehe %s tips f=B8rs Editieren." =3D=3D=3D=3D Carsten |