Comment 10 for bug 679715

Revision history for this message
tmodes (tmodes) wrote :

> I think I fixed this with
> my last commit.

It's only the first step. First you forgot to modify the paths (copy and paste error). On Windows the translations are in \share\locale and not in \share\hugin\data, on Linux in INSTALL_LOCALE_DIR and not in INSTALL_DATA_DIR. Second the name TranslateText is not approbiate. Better would be InitTranslation or something similiar. Also add a short documentation what the function do. Also for Windows and MacOS some includes are missing.
In ImageCache.cpp you forgot to replace a second call of bindtextdomain with the new function.

For nona you need to put InitTranslation in nonas main() procedure.

The gettext tools are working on windows (there are binary releases, but they are outdated). The gettext lib is completly broken on Windows with MSVC.