bug-gettext
[Top][All Lists]
Advanced

[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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]