dp_intl
8.8 / 10 BenchmarkGettext‑compatible C++ i18n library that eliminates locale side‑effects
Gettext‑compatible C++ i18n library that eliminates locale side‑effects
| Pricing Model | Open_source |
|---|---|
| Starting Price | Free |
| Free Trial | None |
| Official Pricing Tiers | View Complete Pricing Plans → |
| Ideal Audience & Best For | C++ Developers, Localization Engineers, Embedded Systems Engineers |
| API & Integrations | REST API & Webhooks Ready |
| Community Upvotes | ▲ 39 votes by verified community members |
dp_intl is a lightweight, header‑only C++ library that implements the Gettext API while removing the dependency on the C runtime locale system. It solves the problem of locale‑driven bugs in numeric formatting and pluralization by explicitly determining the preferred language from the system interface settings, thereby preserving LC_NUMERIC and other locale categories.
Core workflows involve loading compiled `.mo` files through a virtual stream interface that can wrap any file‑like object, including archives or packaged resources. The library exposes the same `gettext`, `ngettext`, and `bindtextdomain` functions as libintl, but internally uses a 64‑bit unsigned integer for plural forms and allows developers to specify custom file layouts and naming conventions. Build‑time options and CMake FetchContent integration make it trivial to embed dp_intl into existing C++ projects.
Targeted at C++ developers building cross‑platform applications—from desktop to embedded systems—dp_intl delivers measurable ROI by eliminating locale‑related bugs that can cost hours of debugging. Teams of 5–20 developers can integrate the library in minutes, saving up to 30% of internationalization effort compared to traditional Gettext setups.
dp_intl is a Gettext‑compatible C++ internationalization library that removes the dependency on the C runtime locale system. It determines the preferred language from the system interface settings, uses a 64‑bit integer for plural forms, and loads `.mo` files through a virtual stream that can wrap any file‑like object, allowing flexible packaging and deployment.
dp_intl is open source and free to use under the MIT license. There is no paid tier or trial period—simply download the source from GitHub and integrate it into your project.
dp_intl is ideal for C++ developers building cross‑platform applications—desktop, mobile, embedded, or server—who need robust, locale‑independent internationalization without the overhead of the traditional Gettext runtime.
dp_intl is a pure C++ library that integrates via CMake (including FetchContent). It works on Windows, macOS, Linux, and embedded platforms that support C++17 or later, and can load catalogs from archives, packages, or custom streams.