Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.python > #2996

Re: gettext, récupérer la liste des traduction existantes

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.roellig-ltd.de!open-news-network.org!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail
From PiLS <pils@mixnym.net>
Newsgroups fr.comp.lang.python
Subject Re: gettext, récupérer la liste des traduction existantes
Date Wed, 6 Sep 2017 16:23:48 +0000 (UTC)
Organization Posted through ALPHANET (http://www.alphanet.ch/)
Lines 17
Sender pils@195.221.132.115
Message-ID <oop7ei$5b1$1@shakotay.alphanet.ch> (permalink)
References <59956164$0$3639$426a74cc@news.free.fr>
NNTP-Posting-Host 195.221.132.115
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-15
Content-Transfer-Encoding 8bit
X-Trace shakotay.alphanet.ch 1504715028 5473 195.221.132.115 (6 Sep 2017 16:23:48 GMT)
X-Complaints-To usenet@alphanet.ch
NNTP-Posting-Date Wed, 6 Sep 2017 16:23:48 +0000 (UTC)
User-Agent tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/4.9.35-v7+ (armv7l))
Xref csiph.com fr.comp.lang.python:2996

Show key headers only | View raw


Jack.R <jack.r@free.fr> wrote:
> Bonjour,
> 
> Je débute en Python et j'essaie d'internationaliser une application.
> Cela fonctionne.
> En fonction de la langue (variable LANGUAGE=en par exemple), l'application est bien affichée dans la bonne langue.
> 
> Je souhaiterais que l'utilisateur puisse changer de langue depuis l'interface (son ordinateur est en français mais il veut afficher l'application en anglais).
> Je n'arrive pas à trouver le moyen d'obtenir la liste des traductions existantes afin de pouvoir les afficher dans un menu de choix.
> gettext.find ne me retourne que la langue choisie via la locale.

locale.locale_alias devrait contenir toutes les locales connues du système 
(attention, elles ne sont pas forcément générées).


-- 
PiLS

Back to fr.comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

gettext, récupérer la liste des traduction existantes "Jack.R" <jack.r@free.fr> - 2017-08-17 09:27 +0000
  Re: gettext, récupérer la liste des traduction existantes PiLS <pils@mixnym.net> - 2017-09-06 16:23 +0000

csiph-web