cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Cervera Areny" <informa...@sedifa.com>
Subject i18n ignores locale parameter
Date Fri, 05 Sep 2003 08:14:16 GMT
Hi,
  I'm using cocoon 2.0.3 and I use the following transformer in a pipeline:

<map:transform type="i18n">
  <map:parameter name="catalogue-name" value="login"/>
  <map:parameter name="locale" value="es"/>
</map:transform>

The problem is that though I tell i18n to use the 'es' messages it still
uses the system default locale, in my case 'ca'. If I change the messages
in login_es.xml to login_ca.xml the translation works. The only problem
seems to be that i18n ignores the locale parameter.

Any ideas on what could be the cause? (I have both 'es' and 'ca' locales
installed, though I don't know if it is necessary)

Thanks in advance!

Here is the servlet.log output:

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:362  
[core.sou] (/proves/login-form) Thread-40/AbstractEnvironment: Resolving
'docs/login.xml' in context 'file:/var/lib/tomcat/webapps/proves/'

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:363  
[core.sou] (/proves/login-form) Thread-40/AbstractEnvironment: Resolved to
'file:/var/lib/tomcat/webapps/proves/docs/login.xml'

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:363  
[sitemap.] (/proves/login-form) Thread-40/I18nTransformer:
I18nTransformer: catalog location:traduccions

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:363  
[core.sou] (/proves/login-form) Thread-40/AbstractEnvironment: Resolving
'traduccions' in context 'file:/var/lib/tomcat/webapps/proves/'

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:364  
[core.sou] (/proves/login-form) Thread-40/AbstractEnvironment: Resolved to
'file:/var/lib/tomcat/webapps/proves/traduccions/'

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:364  
[sitemap.] (/proves/login-form) Thread-40/I18nTransformer:
I18nTransformer: catalog
directory:file:/var/lib/tomcat/webapps/proves/traduccions/

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:364  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory:
XMLResourceBundleFactory configured with: cacheAtStartup = false,
directory = 'file:/var/lib/tomcat/webapps/proves/traduccions/'

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:364  
[sitemap.] (/proves/login-form) Thread-40/I18nTransformer:
I18nTransformer: configured

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:365  
[sitemap.] (/proves/login-form) Thread-40/I18nTransformer:
I18nTransformer: using locale ca

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:365  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory:
_getBundle: login, locale ca

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:365  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory:
Resolving bundle name to file name: login, locale ca -->
file:/var/lib/tomcat/webapps/proves/traduccions//login_ca.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:366  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: Not
found in cache:
file:/var/lib/tomcat/webapps/proves/traduccions//login_ca.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:366  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: Not
found in not_found_cache:
file:/var/lib/tomcat/webapps/proves/traduccions//login_ca.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:366  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: not
found in cache, loading:
file:/var/lib/tomcat/webapps/proves/traduccions//login_ca.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:366  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: Not
found in cache:
file:/var/lib/tomcat/webapps/proves/traduccions//login_ca.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:367  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: Not
found in not_found_cache:
file:/var/lib/tomcat/webapps/proves/traduccions//login_ca.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:367  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory:
synchronized: not found in cache, loading:
file:/var/lib/tomcat/webapps/proves/traduccions//login_ca.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:367  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: Trying
to load bundle: login, locale ca, filename
file:/var/lib/tomcat/webapps/proves/traduccions//login_ca.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:367  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory:
_getBundle: login, locale

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:368  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory:
Resolving bundle name to file name: login, locale  -->
file:/var/lib/tomcat/webapps/proves/traduccions//login.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:368  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: Not
found in cache: file:/var/lib/tomcat/webapps/proves/traduccions//login.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:368  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: Not
found in not_found_cache:
file:/var/lib/tomcat/webapps/proves/traduccions//login.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:368  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: not
found in cache, loading:
file:/var/lib/tomcat/webapps/proves/traduccions//login.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:369  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: Not
found in cache: file:/var/lib/tomcat/webapps/proves/traduccions//login.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:369  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: Not
found in not_found_cache:
file:/var/lib/tomcat/webapps/proves/traduccions//login.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:369  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory:
synchronized: not found in cache, loading:
file:/var/lib/tomcat/webapps/proves/traduccions//login.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:369  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory: Trying
to load bundle: login, locale , filename
file:/var/lib/tomcat/webapps/proves/traduccions//login.xml

2003-09-05 09:54:54 - /proves: INFO    (2003-09-05) 09:54.54:369  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: Constructing
XMLResourceBundle: login, locale:

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:379  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory:
Updating cache: file:/var/lib/tomcat/webapps/proves/traduccions//login.xml

2003-09-05 09:54:54 - /proves: INFO    (2003-09-05) 09:54.54:379  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: Constructing
XMLResourceBundle: login, locale: ca

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:386  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundleFactory:
Updating cache:
file:/var/lib/tomcat/webapps/proves/traduccions//login_ca.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:386  
[sitemap.] (/proves/login-form) Thread-40/I18nTransformer:
I18nTransformer: selected dictionary
org.apache.cocoon.i18n.XMLResourceBundle@1d3b3a

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:386  
[sitemap.] (/proves/login-form) Thread-40/FileGenerator: processing file
docs/login.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:387  
[sitemap.] (/proves/login-form) Thread-40/FileGenerator: file resolved to
file:/var/lib/tomcat/webapps/proves/docs/login.xml

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:387  
[core.man] (/proves/login-form) Thread-40/LogKitLogger: Retrieving a
org.apache.avalon.excalibur.xml.JaxpParser from the pool

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:391  
[sitemap.] (/proves/login-form) Thread-40/I18nTransformer:
I18nTransformer: Starting i18n element: text

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:392  
[sitemap.] (/proves/login-form) Thread-40/I18nTransformer:
I18nTransformer: Start i18n element: text

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:392  
[sitemap.] (/proves/login-form) Thread-40/I18nTransformer:
I18nTransformer: i18n message text = 'Acc?s privat a Sedifa'

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:392  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: login:
returning from cache: /catalogue/message[@key='Acc?s privat a Sedifa']

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:393  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: login:
cache_not_found contains: /catalogue/message[@key='Acc?s privat a Sedifa']

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:396  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: login:
caching: /catalogue/message[@key='Acc?s privat a Sedifa'] = Acc?s privat a
Sedifa

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:396  
[sitemap.] (/proves/login-form) Thread-40/I18nTransformer:
I18nTransformer: End i18n element: text

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:396  
[sitemap.] (/proves/login-form) Thread-40/I18nTransformer:
I18nTransformer: End text element, translated_text: Acc?s privat a Sedifa

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:397  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: login:
returning from cache: /catalogue/message[@key='Usuari:']

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:398  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: login:
cache_not_found contains: /catalogue/message[@key='Usuari:']

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:407  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: login:
caching: /catalogue/message[@key='Usuari:'] = Usuari:

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:407  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: login:
returning from cache: /catalogue/message[@key='Contrasenya:']

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:408  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: login:
cache_not_found contains: /catalogue/message[@key='Contrasenya:']

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:411  
[sitemap.] (/proves/login-form) Thread-40/XMLResourceBundle: login:
caching: /catalogue/message[@key='Contrasenya:'] = Contrasenya:

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:412  
[core.man] (/proves/login-form) Thread-40/LogKitLogger: Returning a
org.apache.avalon.excalibur.xml.JaxpParser to the pool

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:413  
[core.man] (/proves/login-form) Thread-40/NonCachingEventPipeline:
Recycling of NonCachingEventPipeline

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:413  
[core.man] (/proves/login-form) Thread-40/LogKitLogger: Returning a
org.apache.cocoon.generation.FileGenerator to the pool

2003-09-05 09:54:54 - /proves: DEBUG   (2003-09-05) 09:54.54:413  
[core.man] (/proves/login-form) Thread-40/LogKitLogger: Returning a
org.apache.cocoon.transformation.I18nTransformer to the pool

Albert Cervera Areny




Albert Cervera Areny
Dept. Informàtica Sedifa, S.L.

Av. Can Bordoll, 149
08202 - Sabadell (Barcelona)
Tel. 93 715 51 11


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message