|
From: lara <lk...@er...> - 2007-09-21 10:57:24
|
rabhrabh wrote: > > > thnx lara for replying > in the portal_properties/site_properties, its utf-8. > plz tell me some other option which might i am missing or forgetting. > > this is traceback > http://paste.plone.org/16960 > > this is my .cptfile > http://paste.plone.org/16961 > > and this is my .po file > http://paste.plone.org/16962 > > > rabh > hi again, I had a look at your template and it can not work without a minimum of the plone-stuff: it needs some defines and headers as they are used/provided by the main_template, which is usually the base for custom (view-)templates. at least you will have to add the following lines before the <head>-tag: <metal:block use-macro="here/global_defines/macros/defines" /> <tal:cache tal:define="lang language; charset site_properties/default_charset|string:utf-8"> <metal:cache use-macro="here/global_cache_settings/macros/cacheheaders"> Get the global cache headers located in global_cache_settings. </metal:cache> </tal:cache> <head> your template should work then and if you use the main_template-macro for your template (like the standard plone-views, e.g. portal_skins/plone_content/document_view do), there should not be a problem at all: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" metal:use-macro="here/main_template/macros/master" i18n:domain="plone"> <body> <metal:main fill-slot="main"> welcome to the new world <br>this is the real world <br> <label i18n:translate="plone_bye">bye bye</label> </metal:main> </body> </html> -- View this message in context: http://www.nabble.com/how-to-do-internationalization-after-generating-.POT-files--tf4473172s6748.html#a12814686 Sent from the Internationalization mailing list archive at Nabble.com. |