1
0
Fork
You've already forked libmo.cpp
0
A library for looking up strings in gettext mo files.
C++ 93.2%
CMake 6.8%
Find a file
2023年10月14日 02:14:33 +03:00
cmake Initial commit 2023年10月14日 02:14:33 +03:00
include/libmo Initial commit 2023年10月14日 02:14:33 +03:00
kaitai @4295f7ac54 Initial commit 2023年10月14日 02:14:33 +03:00
lib Initial commit 2023年10月14日 02:14:33 +03:00
.clang-format Initial commit 2023年10月14日 02:14:33 +03:00
.editorconfig Initial commit 2023年10月14日 02:14:33 +03:00
.gitignore Initial commit 2023年10月14日 02:14:33 +03:00
.gitmodules Initial commit 2023年10月14日 02:14:33 +03:00
CMakeLists.txt Initial commit 2023年10月14日 02:14:33 +03:00
LICENSE Initial commit 2023年10月14日 02:14:33 +03:00
ReadMe.md Initial commit 2023年10月14日 02:14:33 +03:00

libmo.cpp Unlicensed work

(削除) GitHub Actions (削除ここまで) Libraries.io Status

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.