Bash script with i18n

I have a fairly large bash script (~5000 lines) using the dialog utility as a UI. I should rewrite it to make it capable to support different languages.

Of course there are many ways to do this. My main concerns are readability (of the script code) and speed. I am not looking for actual code but for some ideas how you would implement this.

GNU gettext supports shell scripts too.

GNU `gettext’ utilities

Great! I wasn’t aware of this. Probably the way to go.