List Info

Thread: Translation of static content




Translation of static content
user name
2006-12-19 17:34:57
Hi,

i already posted this to Plone-Users mailing list, but
sadly, no help there. I hope this list is more suitable for
this question:

if ve static portlets created due to plone.org howto. now i
ve to add 
2nd language translation. however portlet logic does not
include that. 
So, some conditions have to be added. For example for the
2nd language:
  <div tal:condition="python:request.other.get
('LANGUAGE', 'de') == 'de'">

BUT:
how do i access the (for example german) title and body in
that specific 
language of an object?

i assume i ve to add something to this line:
<span
tal:content="here/title_or_id">Title</span&g
t;

but i dont know where TALES expressions are documented nor
which 
commands to add after the "here/" expression. Any
help would be greatly appreciated???

thanks,
lr

Plone is 2.1
LinguaPlone 0.8.5
LanguageTool 0.7



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plone-i18n mailing list
Plone-i18nlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Translation of static content
user name
2006-12-20 09:03:07
Hi Lars,
It is highly recommanded to use the translation service for
translating 
page elements generated by zope page templates.
Learn how to work with the i18n namespace in ZPTs and run
i18ndude for 
generating the translation files for your portlet.

Even if the document is for plone developers, 
http://plone.org/documentation/how-to/i18n-for-develop
ers/ is of great 
help in order to understand how to use the i18n namespace in
templates 
and how to use the translation service. It should be easy to
adapt to a 
3rd party product.

HTH,
David

Lars Reimann wrote:

>Hi,
>
>i already posted this to Plone-Users mailing list, but
sadly, no help there. I hope this list is more suitable for
this question:
>
>if ve static portlets created due to plone.org howto.
now i ve to add 
>2nd language translation. however portlet logic does not
include that. 
>So, some conditions have to be added. For example for
the 2nd language:
>  <div tal:condition="python:request.other.get
('LANGUAGE', 'de') == 'de'">
>
>BUT:
>how do i access the (for example german) title and body
in that specific 
>language of an object?
>
>i assume i ve to add something to this line:
><span
tal:content="here/title_or_id">Title</span&g
t;
>
>but i dont know where TALES expressions are documented
nor which 
>commands to add after the "here/" expression.
Any help would be greatly appreciated???
>
>thanks,
>lr
>
>Plone is 2.1
>LinguaPlone 0.8.5
>LanguageTool 0.7
>
>
>
>--------------------------------------------------------
-----------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the
chance to share your
>opinions on IT & business topics through brief
surveys - and earn cash
>http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>Plone-i18n mailing list
>Plone-i18nlists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/plone-i18n
>
>.
>
>  
>


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plone-i18n mailing list
Plone-i18nlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-i18n
[1-2]

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