From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9996 Path: news.gmane.org!not-for-mail From: Masanori Ogino Newsgroups: gmane.linux.lib.musl.general Subject: gettext and locale names Date: Wed, 4 May 2016 22:05:28 +0900 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1462367155 21639 80.91.229.3 (4 May 2016 13:05:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 May 2016 13:05:55 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10009-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 04 15:05:50 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1axwUu-0002T8-Qo for gllmg-musl@m.gmane.org; Wed, 04 May 2016 15:05:48 +0200 Original-Received: (qmail 13733 invoked by uid 550); 4 May 2016 13:05:46 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 13685 invoked from network); 4 May 2016 13:05:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to; bh=+8gAtwj/kge2ie9FkjI6g407BvEMjG/q4SVB/VLX8fU=; b=ueFr/29e2WBHEthXagHxcCdVFoSgGfstp2cqUoYmfXfKFkz9NvN9OMFkiLIer+uTQ8 zpahBAXLFNPYTa3ZiHBH2Wbt/TsgyvG3VJ8vLDGWCPJKoT5EuTsADliuluSJqI02ezsT 8AY9CkQHzuIgMVOxl1QRbR9PbB7pnqLaWBVhEKrq7gMiaWADYHC99msQfQKtyvzF+qtq UP6gWLxcaj/OyeGAzCXzpXyr2qzGW6Ymh6DQ091tOnhXAE2qFU178mUY4+4eDLQzGaHp MeEyrO69pPqC527rcLylbOt1ft4WSQhf4BOYOubniLmZKIsLaQeRGTG+9gBfauf+YJu/ Kptw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to; bh=+8gAtwj/kge2ie9FkjI6g407BvEMjG/q4SVB/VLX8fU=; b=K/FWRjBMVsopZDzB89aAMYdILq2fkOrk7//zC2U2DbP2ZSxAwFiN1B6Zx5alqxCjyH j9dMJlm+kHGZwD5Y78uu9p8qvX7gOnflmz52X+JQXTnkKxDZylbTKI6zCLv8DV1BrQK/ DEs0/tsQAOTQ99CYbsEoeC4D67EDwIyrtg/erIUa8T7Ev/ts/ix9MSmpJkpv49YMTdQR AuTHDoyGpNa9OZuwBLNe+wcSKDFu9qzTAy1Rxr0xlIeL3U6KYSo/Bt46YSd3nV8rzrO+ Nd5GHu5xuA1bkaTcaoJFzgvrrnpzOa7zsabwUOCyBpju6uiQcb0v+MNC63iDONXiJVn0 +7bA== X-Gm-Message-State: AOPr4FXkvfCMNSvKeqETfO95L2cLgwzw386fwv4wCIBCvxKXoXEaKH8RsBy83qDKbTHIEw8qTZp2BAUOqm0YnQ== X-Received: by 10.202.231.11 with SMTP id e11mr3513256oih.159.1462367128552; Wed, 04 May 2016 06:05:28 -0700 (PDT) Original-Sender: masanoriogino@gmail.com X-Google-Sender-Auth: PXxyfzqtRWzmRaRBpw9ULS38_0c Xref: news.gmane.org gmane.linux.lib.musl.general:9996 Archived-At: Hello, When I played with gettext API, I found that musl searches .mo files with a directory named as current *full* locale names, e.g. en_US.UTF-8. However, we often use shortened names too. Here is a list of those names from those of my machine in /usr/share/locale: de, en_GB, ru_UA.koi8u, sr@latin, etc. Due to this mismatch, we can't get translations with musl's gettext API for applications in wild. Thus, I'm considering to implement locale searching with shortening. Does it make sense? -- Masanori Ogino