1

How to tell bash to get gettext .mo file from custom location?

view story
linux-howto

http://stackoverflow.com – I am creating a bash script for a very specific project, and the strings must be translatable. I have successfully followed the following tutorial: gettext support for bash scripts: http://mywiki.wooledge.org/BashFAQ/098 However, part of the tutorial asks to run the msgfmt command to generate compiled .mo files for each language. To make it work, I had to run the command as root and the .mo files are saved under /usr/share/locale/(lang)/LC_MESSAGES. I'd like the .mo files to be saved in a sub-directory relative to the bash script, which is easy enough. But then, when the script is run, ba (HowTos)