> I'm not sure that 'locale' attribute is supported in Cocoon 2.0.3. > Probably > it was added after the 2.0.3 release, so I18n transformer will use the > LocaleAction internally. Try to request your page with a 'locale=es' > request > parameter, e.g.: index.html?locale=es. > > If you need to set locale value from the sitemap then you should upgrade > to > a newer version of i18n transformer. > > Please let me know if this is the case.
That was the case. If I use 2.0.4 it works properly. However I was using 2.0.2 (not 2.0.3) Thanks for your help! > > Regards > Konstantin > > From: "Albert Cervera Areny" <[EMAIL PROTECTED]> > >> 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 >> [EMAIL PROTECTED] >> >> 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/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'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: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
