Jacobo Tarrio <[EMAIL PROTECTED]> writes: > O Xoves, 16 de Maio de 2002 �s 15:47:31 +0900, Olaf Meeuwissen escrib�a: > > > How do I internationalize my shell scripts? > > If you use bash, it's easy: > > #!/bin/bash -e > export TEXTDOMAIN=name_your_text_domain_here > echo "this string is not i18n-ed" > echo $"but this string is" > > You can extract the strings (and add them to your already existing pot > file) with the command: > > bash --dump-po-strings name_of_your_script >> master_pot_file > > Then you can do as usual with the pot file.
I think I like the /bin/sh solution by Santiago Vila better for portability reasons, but this one seems to offer a handle for integration in my automake/autoconf/gettext build machinery. Any ideas? Does gettext support shell scripts out of the box? -- Olaf Meeuwissen Epson Kowa Corporation, CID GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 LPIC-2 -- I hack, therefore I am -- BOFH -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

