[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Testing help for first translation
From: |
Anadon |
Subject: |
Testing help for first translation |
Date: |
Thu, 4 May 2023 00:25:49 -0400 |
Hello all,
I am trying to see if my first translation is working. I am invoking
using `LANG=UK LC_ALL=UK LOCALEDIR=./po/ ./build/src/primes`, and have
the following in main:
```
int main(int argc, char **argv) {
const char* PACKAGE = "primes/0.4.0/";
const char* LOCALEDIR = secure_getenv("LOCALEDIR");
if(LOCALEDIR == nullptr){
LOCALEDIR = "/share/locale";
}
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
```
and the following files referenced:
```
$ ls po/primes/0.4.0/
en.po primes.pot uk.po
```
What newbie mistake am I not seeing?
- Testing help for first translation,
Anadon <=
- Re: Testing help for first translation, Bruno Haible, 2023/05/04
- Re: Testing help for first translation, Anadon, 2023/05/05
- Re: Testing help for first translation, Bruno Haible, 2023/05/05
- Re: Testing help for first translation, Anadon, 2023/05/05
- Re: Testing help for first translation, Bruno Haible, 2023/05/05
- Re: Testing help for first translation, Anadon, 2023/05/05
- Re: Testing help for first translation, Anadon, 2023/05/05
- Re: installing localizations on Ubuntu, Bruno Haible, 2023/05/05
- Re: installing localizations on Ubuntu, Anadon, 2023/05/05
- Re: installing localizations on Ubuntu, Anadon, 2023/05/05