CMake module for gettext support?
Asked Answered
K

3

11

Is there a good, open-source, documented CMake module for gettext support?

I mean:

  • Extracting messages from sources
  • Merging messages to existing translations
  • Compilation of mo-files
  • Installation of mo-files.

Because plain macros that CMake provides are quite... useless for real l10n support.

Anybody?

Edit: I created my own cmake rules for my own project but I don't think that it is long term solution especially when you have multiple projects.

So it would be really helpful if someone directed me to such module.

Kalbli answered 20/5, 2010 at 17:6 Comment(0)
F
3

I needed to write a gettext module for another project. So I made it user friendly and uploaded it to git hub.

https://github.com/jarro2783/CMake-Gettext

Familist answered 21/2, 2012 at 6:12 Comment(0)
W
1

Wesnoth has their own solution.

See the code: svn.gna.org/viewcvs/wesnoth/trunk/po/CMakeLists.txt?rev=42032&view=markup

And for reference: svn.gna.org/viewcvs/wesnoth/trunk/CMakeLists.txt?rev=42920&view=markup

I’m not too sure this is really ”good” solution, but it works.

Westing answered 4/6, 2010 at 22:19 Comment(0)
P
0

So late 2011 I started work on a CMake module:

https://github.com/Jookia/GettextTools

It fulfils everything you require.

Plantagenet answered 12/1, 2013 at 4:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.