Re: [Noffle-devel] internationalization of noffle pseudo articles
Brought to you by:
bears
From: <joh...@gm...> - 2003-03-25 14:22:44
|
On Mon, Mar 24, 2003 at 11:53:26PM -0000, Jim Hague wrote: > On 24-Mar-2003 joh...@gm... wrote: > > I think I could assist in internationalization of the > > noffle-pseude-articles (those messages getting return in pseudo.c). > > With this patch it would be possible to have a french, german and > > english version of e.g. the "article marked for download". > > > > There are some decisions I would like to get examined before I start to code. > > > > +I would suggest to have a file in /etc/noffle/noffle.articles.{ccTLD}, > > {ccTLD} being the country-Top-Level-Domain for the country generally > > associated with that language, e.g. de for german, fr for france ... > > > I think it would be easier to have one file per message, perhaps filed under a > language-specific directory, e.g. /etc/noffle/templates.en_GB/general_info. > Specify the language in the config file, or pick it up from the environment > (LANG) if it is not specified in the config. Then see if a file exists in > this order (for LANG=en_GB): templates.en_GB/filename, templates.en/filename, > templates/filename. Keep the current hard-coded defaults in case none are > found. But than we have to ensure that the user has a directory in /etc/, not just a file. We would have to change CONFIGFILE to CONFIGDIR and of course make some minor corrections now and then. So long... Johannes Madel |