Localisation support on Windows Visual Studio builds #2882
jim-easterbrook
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As stated here https://github.com/Exiv2/exiv2#localisation, localisation is not supported on Windows Visual Studio builds. However, it's not too hard to achieve.
First download the gettext executables from http://mlocati.github.io/articles/gettext-iconv-windows.html, unzip the files to any convenient directory, then add their bin directory to your path, e.g.:
Next add
libgettext/0.21to the requirements method in exiv2'sconanfile.py. This provideslibintl. There is also agettext/0.21conan package with the gettext executables but I couldn't get it to work with exiv2's cmake files. With exiv2 v0.27.7 and earlier you also need to deletecmake\FindIconv.cmakeas it prevents use of iconv on Windows.Now you can run conan and then configure cmake with
-D EXIV2_ENABLE_NLS=ONto build libexiv2 with native language support.In my
python-exiv2project I copy the compiled.mofiles into the Python "package data" and callbindtextdomainto get libexiv2 to use them. I don't know how other Windows applications would deal with them.Beta Was this translation helpful? Give feedback.
All reactions