gettext 25.9.2 (#1606)

* Add gettext crate

Signed-off-by: Hervé ROMANO <shuihuzhuan@free.fr>

* 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 <shuihuzhuan@free.fr>

---------

Signed-off-by: Hervé ROMANO <shuihuzhuan@free.fr>
Co-authored-by: Hervé ROMANO <shuihuzhuan@free.fr>
This commit is contained in:
HROMANO
2025-09-19 11:27:14 +02:00
committed by GitHub
parent eb79e02d78
commit c940fc7f4f
2 changed files with 64 additions and 0 deletions
+54
View File
@@ -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 <shuihuzhuan@free.fr>"]
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"
@@ -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"]