<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Maurits,<br>
<br>
Thanks for the reply and suggestions. <br>
<br>
I tried i18n:translate="", it works fine.<br>
<br>
But if I change domain (e.g i18n:domain="mydomain") it doesn't work. Is
domain attribute is related to the domain specified in .po file, coz
the example .po file which comes with PlacelessTranslationService has
domain as 'PlacelessTranslationService' and if I used same it works
fine.<br>
<br>
Actually I used i18n:target after reading -
<a class="moz-txt-link-freetext" href="http://wiki.zope.org/zope3/ZPTInternationalizationExamples">http://wiki.zope.org/zope3/ZPTInternationalizationExamples</a>. I do
understand that these are zope3 examples, but just thought of giving
try. While searching further I found -
<a class="moz-txt-link-freetext" href="https://bugs.launchpad.net/zope2/+bug/142771">https://bugs.launchpad.net/zope2/+bug/142771</a> which gives hint that
i18n:target not supported at least for Zope 2.9.7-final, python 2.4.4,
win32<br>
<br>
I will try to check for incoming browser headers, but does zope
provides any inbuilt method to do so ?<br>
<br>
Thank you,<br>
Harshad.<br>
<br>
Maurits van Rees wrote:
<blockquote cite="mid:ftinf0$rmg$1@ger.gmane.org" type="cite">
<pre wrap="">harshad behere, on 2008-04-09:
</pre>
<blockquote type="cite">
<pre wrap="">Dear list members,
I am newbie/begineer in area of zope2 + i18n/L10n so please excuse me if
this topic has already been discussed on the list, in that case can some
one please point me to the past discussions/threads.
After reading some basics about i18n+zope2, I have tried following -
(zope version - Zope 2.9.7-final, python 2.4.4, win32
and Placeless Translation Service - 1.3.7)
Created simple page template -
<html>
<body>
<span i18n:domain="PlacelessTranslationService" i18n:translate="Reload
this catalog">
Reload this catalog
</span>
</body>
</html>
</pre>
</blockquote>
<pre wrap=""><!---->
I would expect either:
i18n:translate=""
so that the string behind it ends up in the .pot file (and you don't
repeat yourself needlessly; also think what would happen when you
change one string but forget to change the other).
Or:
i18n:translate="reload_this_catalog"
or some other unique message id.
But the above code should work.
Well, using PlacelessTranslationService as i18n:domain is strange.
You should use the name of your own product/package.
</pre>
<blockquote type="cite">
<pre wrap="">Modified language preferences for browsers - (Mozilla Firefox 2.0.0.4
and MS-IE 7.0.5730.11) to set German [de] as primary langage.
When I viewed above page in firfox got the corresponing german
translation (Diesen Katalog neu einlesen) as specified in related .po
file. But with MS-IE, no luck, gives same string - Reload this catalog
So is it browser specific/dependable ?
</pre>
</blockquote>
<pre wrap=""><!---->
It should not. Do you have a way to check which browser headers are
sent by IE and firefox and if they differ in the language preference?
</pre>
<blockquote type="cite">
<pre wrap="">Another thing I tried is adding attribute i18n:target="cs", but it seems
to have no effect, firefox gives german translation as per language
settings as MS-IE gives same string - Reload this catalog
Does it means that attribute target is not supported ? Is there any
list/documentation about supported i18n attributes ?
</pre>
</blockquote>
<pre wrap=""><!---->
I have never seen that attribute. From the top of my head, these i18n
attributes are used in zope: translate, domain, name and attributes.
</pre>
<blockquote type="cite">
<pre wrap="">Also I was not able to find references/examples for DTML, does DTML
supports i18n/L10n ?
</pre>
</blockquote>
<pre wrap=""><!---->
No. At least, I do not think so, and this grep in a buildout did not
return any relevant results:
grep i18n $(find . -name '*dtml')
</pre>
</blockquote>
<br>
</body>
</html>