GNU bug report logs - #39080
How do language packs work?

Previous Next

Package: guix;

Reported by: Caleb Herbert <csh <at> bluehome.net>

Date: Sat, 11 Jan 2020 03:55:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Julien Lepiller <julien <at> lepiller.eu>
To: Caleb Herbert <csh <at> bluehome.net>
Cc: 39080 <at> debbugs.gnu.org
Subject: bug#39080: How do language packs work?
Date: Sat, 11 Jan 2020 14:54:34 +0100
Le Fri, 10 Jan 2020 22:58:35 -0600,
Caleb Herbert <csh <at> bluehome.net> a écrit :

> On 1/10/20 10:31 PM, Julien Lepiller wrote:
> > Thanks for your interest in localisation! I'm unfortunately unable
> > to find a language code for your language. That is necessary for
> > software to recognise it and speak it. I may not have searched
> > correctly, so maybe you can find the correct code?  
> 
> pdc
> 
> Examples:
> https://pdc.wikipedia.org/wiki/Haaptblatt
> https://www.jw.org/pdc/
> https://iso639-3.sil.org/code/pdc

Great! For some reason I couldn't find this information.

> 
> > Once you have that code, you can use it in the guix system in the
> > locale field of your os declaration. If you are on a foreign
> > distro, then check with them how to set a language (or set $LANG
> > temporarily).  
> 
> I highly doubt a locale file for pdc_US exists.  I'd like to make one,
> but the file for en_US and yi_US don't show the actual characters.  I
> just see "<U####>", which I can't read or produce.
> 
> > To help translate guix, please have a look at the translation
> > project: https://translation-project.org  

ah indeed, glibc doesn't seem to have a locale definition for pdc. We
can't really do anything about this ourselves, but you should
definitely talk to the glibc folks, they'll know what you need to
create and contribute locale data.

For the time being, you can generate a locale definition by using
another locale's definition. It's a bit cheating, but if your language
is close enough to American English, here's what you could do with the
guix system:

(locale "pdc_US.UTF-8")
(locale-definitions
  (cons (locale-definition
          (name "pdc_US.UTF-8") (source "en_US"))
        %default-locale-definitions))

It creates a copy of the American English definition and calls it pdc.
This will allow you to use that locale, although its definition is
probably not correct.

> 
> Thanks.





This bug report was last modified 2 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.