Re: [Xsltforms-support] "... Loading ..." questions
Brought to you by:
alain-couthures
|
From: COUTHURES A. <ala...@ag...> - 2009-11-09 19:52:09
|
Hello Javier, > Hello, > > I have noticed that "... Loading ..." message can be internationalized > with files "messages.properties" and "messages_<lang>.properties". > > But I see that in spanish one, "messages_es.properties" it has "status > = ... Loading ...", that is the english message. I think it should be > translated to spanish, > indicating for example "... Cargando ...". Thank you! I have changed this in the SVN repository. > I also noticed that in my case is always loaded the english version, > whereas other people is corrected loaded the spanish version with > "Cargando" (I have changed it locally). > > I think the reason is that to decide the languaje to use, is taking > into account the user-agent instead the accept-language header. > > In my case, that is choosing english version: > > User-Agent |Mozilla/5.0 (X11; U; Linux i686; *en-US*; rv:1.9.0.14) > Gecko/2009091913 Mandriva/1.9.0.14-0.1mdv2009.1|| (2009.1) > Firefox/3.0.14| > Accept |text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8| > Accept-Language |*es-es*,es;q=0.8,en-gb;q=0.6,en-us;q=0.4,en;q=0.2| > > > And in a case where is choosed the spanish one: > > User-Agent |Mozilla/5.0 (X11; U; Linux i686; *es-ES*; rv:1.9.0.10) > Gecko/2009042513 Ubuntu/8.04 (hardy) Firefox/3.0.10||| > Accept |text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8| > Accept-Language |*es-es*,es;q=0.8,en-us;q=0.5,en;q=0.3| > > > It would be great to get the correct one, although I can survive with > english localized version :) Unfortunately, it doesn't seem possible to access "Accept-Language" directly in Javascript. A server page might be used to interpret it instead of returning the requested file (URL rewriting can do the trick). > > And finally, I have detected that inside the xsltforms.xsl, in > templates "xforms:itemset" and "xhtml:html | html" there are two > "Loading" messages. Do these messages appear in any moment? Should I > change it to spanish version? (I want only to appear spanish messages). The "Loading" in "xhtml:html | html" is displayed just before the message found in the properties file. The "Loading" in "xforms:itemset" is used to initialize this itemset while downloading the corresponding values. This message is not yet customizable. You can, of course, change both, if you want. Best regards, -Alain |