Skip to content

KOLANICH-libs/libmo.cpp

libmo.cpp Unlicensed work

GitHub Actions Libraries.io Status

We have moved to https://codeberg.org/KOLANICH-libs/libmo.cpp, grab new versions there.

Under the disguise of "better security" Micro$oft-owned GitHub has discriminated users of 1FA passwords while having commercial interest in success and wide adoption of FIDO 1FA specifications and Windows Hello implementation which it promotes as a replacement for passwords. It will result in dire consequencies and is competely inacceptable, read why.

If you don't want to participate in harming yourself, it is recommended to follow the lead and migrate somewhere away of GitHub and Micro$oft. Here is the list of alternatives and rationales to do it. If they delete the discussion, there are certain well-known places where you can get a copy of it. Read why you should also leave GitHub.


A library to parse gettext/libintl mo format.

Why?

  • NIH-syndrome :)
  • libintl doesn't expose the "middle-level" API to fetch a certain value from a mo file by a given a key. Only "high-level" API for translating apps, that does too much things itself (enforces policy), is exposed.
  • catgets is a low-level lib looking up messages by their ids, not by their keys.

I needed to just have a key-value database and has chosen mo files for it. It seems that existing libs don't support this workflow.

How

We use an own Kaitai Struct-based parser of mo files.