[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [?] internationalizing shell scripts

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.



To UNSUBSCRIBE, email to debian-i18n-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: