Hello Konstantin, Thank you for your reply. My configuration is Tomcat 4.0.1, Cocoon 2.0.1 with its default parsers.
Roman Konstantin Piroumian wrote: > Hi > > > Hello, > > > > Can someone help me to understand why i18n transformer divides key? > > This is the behavior of SAX parser. But I thought that I've fixed that. Are > you using the latest version (either from 2.0.3 branch or HEAD)? > > This happens because SAX parser sometimes divides text into smaller chunks. > I18nTransformer was changed to buffer the text to prevent incomplete keys. > I'll check it, though, I've never seen this even with very long keys. Please > tell me what is your configuration? What is your parser? > > -- > Konstantin > > > Input XML contains the following line: > > <i18n:text>LNG_LUB_Consultation_Fournisseurs</i18n:text> > > > > In messages files appropriate translation is present: > > <message key="LNG_LUB_Consultation_Fournisseurs">Consultation > > Fournisseurs</message> > > > > However in a browser I get "untranslated-text" and in sitemap.log I see > > that the transformer divides the key (other keys are translated though): > > > > DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: > > I18nTransformer: Starting i18n element: text > > DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: > > I18nTransformer: Start i18n element: text > > DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: > > I18nTransformer: i18n message text = 'LNG_LUB_Cons' > > DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > returning from cache: /catalogue/message[@key='LNG_LUB_Cons'] > > DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > cache_not_found contains: /catalogue/message[@key='LNG_LUB_Cons'] > > DEBUG (2002-04-26) 11:08.38:260 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > returning from cache: /catalogue/message[@key='LNG_LUB_Cons'] > > DEBUG (2002-04-26) 11:08.38:260 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > cache_not_found contains: /catalogue/message[@key='LNG_LUB_Cons'] > > DEBUG (2002-04-26) 11:08.38:280 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > caching not_found: /catalogue/message[@key='LNG_LUB_Cons'] > > DEBUG (2002-04-26) 11:08.38:280 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > caching not_found: /catalogue/message[@key='LNG_LUB_Cons'] > > DEBUG (2002-04-26) 11:08.38:280 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: > > I18nTransformer: i18n message text = 'ultation_Fournisseurs' > > DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > returning from cache: /catalogue/message[@key='ultation_Fournisseurs'] > > DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > cache_not_found contains: > > /catalogue/message[@key='ultation_Fournisseurs'] > > DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > returning from cache: /catalogue/message[@key='ultation_Fournisseurs'] > > DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > cache_not_found contains: > > /catalogue/message[@key='ultation_Fournisseurs'] > > DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > caching not_found: /catalogue/message[@key='ultation_Fournisseurs'] > > DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: > > caching not_found: /catalogue/message[@key='ultation_Fournisseurs'] > > DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: > > I18nTransformer: End i18n element: text > > DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] > > (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: > > I18nTransformer: End text element, translated_text: untranslated-text > > > > > > Thank you for your response. > > Roman > > > > > > --------------------------------------------------------------------- > > Please check that your question has not already been answered in the > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>