https://github.com/HROMANO/gettext
Author:MIT OR Apache-2.0 WITH LLVM-exception
Version:25.9.3
Alire CI: Dependencies:No dependency.
Dependents:No dependents.
Badge:
A simple but hopefully complete Ada wrapper around gettext. It should run on linux and windows. Don’t know for other OSes.
Before calling the gettext
family translation functions:
Gettexts.Locale.Set_Locale
(even a call
with no arguments is enough but required).Gettexts.Set_Domain_Directory
and Gettexts.Set_Domain_Name
.Gettexts.Set_Domain_Codeset
.You can choose between:
gettext
, ngettext
, pgettext
, dgettext
, etc.Get_Text
, Get_Plural_Text
, Get_Text_With_Context
, etc.There’s no support for Ada in
xgettext.
But if your code doesn’t have unbalanced tick marks (like in 'Class
), you
can still use it to produce and update .po
files (see update.sh
in example
directory). As a workaround, you can balance tick marks with comments -- '
.