List Info

Thread: Re: how to do internationalization after generating .POT files?




Re: how to do internationalization after generating .POT files?
country flaguser name
United States
2007-09-21 05:57:28


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/1
6960
> 
> this is my .cptfile
> http://paste.plone.org/1
6961
> 
> and this is my .po file
> http://paste.plone.org/1
6962
> 
> 
> 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/cacheheade
rs">
      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: h
ttp://www.nabble.com/how-to-do-internationalization-after-ge
nerating-.POT-files--tf4473172s6748.html#a12814686
Sent from the Internationalization mailing list archive at
Nabble.com.


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-i18n mailing list
Plone-i18nlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-i18n

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )