Answer the question
In order to leave comments, you need to log in
Problem with gettext and bash?
Hello.
I'm struggling with gettext and xgettext for bash script localization. And constantly, one thing or the other does not work. Now, for some reason, the --from-code=utf-8 key stopped working and instead of utf-8 in the resulting .po file, it displays:
"Content-Type: text/plain; charset=CHARSET\n"<br/>
"Content-Type: text/plain; charset=utf-8\n"<br/>
echo "`gettext 'Text text text...'`"
xgettext -c -inL Shell --package-name="$SA_EXT_ID" --package-version="$SA_EXT_VERSION" --msgid-bugs-address="$SA_EXT_EMAIL" --copyright-holder="$SA_EXT_AUTHOR" --from-code=UTF-8 --force-po -o "${output_file}t" "$input_file"
Answer the question
In order to leave comments, you need to log in
Andrey, can you write the full text of the command you use, and the minimum piece of the bash script that you localize?
I faced a similar problem a couple of years ago, but to remember the solution, details are needed ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question