From c940fc7f4f2a8fffefef65eb31651c6c631d4978 Mon Sep 17 00:00:00 2001 From: HROMANO Date: Fri, 19 Sep 2025 11:27:14 +0200 Subject: [PATCH] gettext 25.9.2 (#1606) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add gettext crate Signed-off-by: Hervé ROMANO * Create gettext_runtime-external.toml * Update and rename gettext-25.9.2.toml to gettext-25.9.3.toml * Wrong directory Signed-off-by: Hervé ROMANO --------- Signed-off-by: Hervé ROMANO Co-authored-by: Hervé ROMANO --- index/ge/gettext/gettext-25.9.3.toml | 54 +++++++++++++++++++ .../gettext_runtime-external.toml | 10 ++++ 2 files changed, 64 insertions(+) create mode 100644 index/ge/gettext/gettext-25.9.3.toml create mode 100644 index/ge/gettext_runtime/gettext_runtime-external.toml diff --git a/index/ge/gettext/gettext-25.9.3.toml b/index/ge/gettext/gettext-25.9.3.toml new file mode 100644 index 00000000..4797216b --- /dev/null +++ b/index/ge/gettext/gettext-25.9.3.toml @@ -0,0 +1,54 @@ +name = "gettext" +description = "A wrapper library for gettext" +long-description = """ +A simple but hopefully complete Ada wrapper around +[gettext](https://www.gnu.org/software/gettext/). It should run on linux and +windows. Don't know for other OSes. + +# How to use + +Before calling the `gettext` family translation functions: + +- You **must** set the locale using `Gettexts.Locale.Set_Locale` (even a call + with no arguments is enough but required). +- You should set the directory and the domain name with + `Gettexts.Set_Domain_Directory` and `Gettexts.Set_Domain_Name`. +- You should set the codeset with `Gettexts.Set_Domain_Codeset`. + +# Function names + +You can choose between: + +- Standard names used in C language: `gettext`, `ngettext`, `pgettext`, `dgettext`, etc. +- More readable Ada names: `Get_Text`, `Get_Plural_Text`, `Get_Text_With_Context`, etc. + +# Limits + +There's no support for Ada in +[xgettext](https://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html). +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 `-- '`. +""" +version = "25.9.3" + +authors = ["H. ROMANO"] +maintainers = ["H. ROMANO "] +maintainers-logins = ["HROMANO"] +licenses = "MIT OR Apache-2.0 WITH LLVM-exception" +website = "https://github.com/HROMANO/gettext" +tags = ["i18n", "gettext"] + +[[depends-on]] +[depends-on."case(os)".windows] +gettext_runtime = "*" + +[available."case(os)"] +linux = true +windows = true +'...' = false + +[origin] +commit = "0300727bf0eca520ed66f032fd962949c6fd3ecd" +url = "git+https://github.com/HROMANO/gettext" + diff --git a/index/ge/gettext_runtime/gettext_runtime-external.toml b/index/ge/gettext_runtime/gettext_runtime-external.toml new file mode 100644 index 00000000..0adad8e4 --- /dev/null +++ b/index/ge/gettext_runtime/gettext_runtime-external.toml @@ -0,0 +1,10 @@ +description = "System gettext-runtime on windows" +name = "gettext_runtime" +licenses = "LGPL-2.1-or-later" +maintainers = ["shuihuzhuan@free.fr"] +maintainers-logins = ["H. ROMANO"] + +[[external]] +kind = "system" +[external.origin."case(distribution)"] +msys2 = ["mingw-w64-x86_64-gettext-runtime"]