On Friday, Sep 12th 2008 at 23:27 -0000, quoth Markus Kollmar:
=>Steven W. Orr wrote:
=>> Markus, I hope this is ok.
=>>
=>>
=>--> Steven, it is ok and great idea, that you now have removed all
=>cosmetic tabs from all language files.
=>
=>--> I have added "bb_main_menu=MAIN" to file "BashBurn.lang" in all
=>language files like you want it, or Steven?
=>An exception is the SWEDISH translation:
=>Anders (or Steven), what coding system did you use in your editor to
=>encode/decode this files? My emacs gave me a message while I wanted to
=>save the swedish file, that the correct encoding system has to select in
=>order to save the file savely. Did you use utf8? Maybe we should make
=>also guidlines which coding system to use?
=>
=>--> Steven please note (info manual of "gettext (libintl library,
=>version 0.16.1)"):
=>"GNU `bash' 2.0 or newer has a special shorthand for translating a
=>string and substituting variable values in it: `$"msgid"'. But the use
=>of this construct is *discouraged*, due to the security holes it opens
=>and due to its portability problems."
=>
=>To localize a sentence like
=> echo -e "Hello\tworld!"
=>we can use
=> echo -e "`gettext \"Hello\\tworld\"`"
=>
=>--> By the way I still have the problem that I got no german translation
=>in the sub-menues of configuration. Is this only local problem to me?
=>
=>
=>(Oh... time to go to bed... ;-) )
=>
=>Markus
I'll do some more reading on the proper use of $"stuff". It may be that we
should stick to the lang files, but localize the usage of gettext to those
files.
bb.en.lang:
bbhellothere=$"Hello there"
Then
echo -e $(gettext "$bbhellothere")
This way, the --dump-po-strings will work *for* us and by convention, we
would only use $"stuff" in places where nothing dangeous could be eval'd.
I'll be gone tomorrow. We're driving to New York. We're buying a new
Chowchow. :-)
http://www.chowchows.com/
--
Time flies like the wind. Fruit flies like a banana. Stranger things have .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net
|