How to use gettext in bash script?
I only found this page, but I don't understand it.
My script is written like this:
#!/bin/bash
. lang_file.sh
echo $LANG_HELLO_WORLD
And lang_file.sh look like that:
#!/bin/bash
LANG_HELLO_WORLD="Hello World"
I want to change lang_file.sh to something using gettext, like this:
#!/bin/bash
LANG_HELLO_WORLD=`some gettext command to get string in user language`
I want to use the code in Launchpad, so other users can translate it (.po, .pot files)
Sorry for bad English, any suggestions?
man -P cat bash | grep -EC3 'translat|gettext'
. – Navarra