Spirit_po is intended to be a drop-in replacement for the use of GNU msgfmt and GNU libintl. Of parsing po files rather than mo files at run-time, is provided Libintl and boost::locale::gettext, and specifically, the advantages (Which is partly why I made spirit-po.)Īn in-depth explanation of the rationale for this library as compared to The parser is only a piece of this, but it is also quite complex and difficult to separateįrom the rest of the code. Libgettext-po directory as ansic: 29382 (98.35%), that is, 30kloc of ANSI C. The libgettext-po po-manipulation library. This makes it relatively easy to understand its behavior, and makes the library as a whole easy to modify if needed.īy contrast, the equivalent po-parser facility within the gettext project is Our po grammar itself is only a few dozen lines. Spirit-po is very easy to use in your C++11 projects.Īccording to sloccount, it is only 916 lines of code in total (at time of writing), Translators rather than require a binary format which Program can use the simple, portable po files produced directly by Spirit-po has the advantage that it does not use mo files, so your Localization within the GNU gettext system, instead of using libintl. Spirit-po is a header-only C++11 library that you can use for
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |