|
Message-ID: <20160504213938.GV21636@brightrain.aerifal.cx> Date: Wed, 4 May 2016 17:39:38 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: gettext and locale names On Wed, May 04, 2016 at 10:05:28PM +0900, Masanori Ogino wrote: > 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@...in, 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? Yes, I think this makes sense. Before spending time on the code though it makes sense to discuss the proposed logic here. What level would the search/shortening happen at? __get_locale in locale_map.c? In dcngettext.c? Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.