PfSense® software translations with Zanata
-
Great, thanks!
-
The correct syntax is actually:
$group->setHelp('Specify the %s port or port range for this rule. The "To" field may be left empty if only filtering a single port.', array(strtolower($name))));
setHelp accepts a second argument which is an array of arguments to be passed to sprintf. The first argument (format string) does get gettext()
I want to see if we actually use that syntax anywhere, and if not (or few) I may update it to use a more conventional syntax.
-
You'll know you've hit the bigtime when someone does a translation to Klingon.
ghItlh bIngDaq ghItlh leghlu' pa' tlhIngan Hol
-
Just pushed a change as described above. setHelp now likes the more conventional syntax: e.g.:```
setHelp("%d interfaces have been detected", $numIfs); -
@KOM:
You'll know you've hit the bigtime when someone does a translation to Klingon.
ghItlh bIngDaq ghItlh leghlu' pa' tlhIngan Hol
Klingon 0.0001% complete now.
Sadly there's no Klingon, Elvish, Kölsch or FarCry Primal on Zanata. But you can always ask Steve to include Esperanto or Latin. -
A few more bits of unneeded sprintf and gettext in setHelp removed by https://github.com/pfsense/pfsense/pull/3466
You can all get busy with the Klingon translation now. Maybe I will have a go at English-Pirate en-PI.
-
Sadly, unless I'm overlooking something I don't see an option for either Pirate or Klingon on Zanata
Consider me timbers shivered.
-
Is there anything special about those?
#: src/usr/local/www/system_advanced_network.php:186 msgid "IPv4 address of Tunnel Peer" msgstr "IPv4 Adresse der Tunnelgegenstelle"
It's translated but it does not show. Might be my test setup, I just replace the Turkish .po and .mo files and reroot afterwards.
I also believe that I have translated some Console messages a while ago, but they don't show either.
#: src/etc/inc/config.console.inc:43 msgid "Press ENTER to continue." msgstr "Drücken Sie die Eingabetaste um fortzufahren."
-
I suppose new subforums will be created to match every additional language?
-
@KOM:
I suppose new subforums will be created to match every additional language?
Want to lure out those Klingons hidden all over earth? Neat.
If memory serves Gonzopancho once said that he only creates forums for languages he has someone for to speak/understand.