Hi,
This refs http://code.google.com/p/getpaid/issues/detail?id=148
Working on PloneGetPaid I noticed some differences between
translations on Plone 2.5 and 3.0. The same version (trunk)
of
PloneGetPaid was used. I created a new Plone Site with my
browser set
to Dutch, so Dutch was the default and only language in the
3.0 site.
Some strings on a browser page (within the Plone Control
Panel)
appeared only in English on a Plone 3.0 site. In 2.5 it was
shown in
Dutch. The page was referred to in browser/settings.zcml.
This had
an i18n_domain of "plone". Changing that to
"plonegetpaid" helped:
3.0 had the Dutch titles after a zope restart. Does anyone
know why
the Dutch translations *did* show up already on 2.5? zcml
snippet of
the page is:
<browser:page
...
title="Site Profile"
/>
Related is maybe that the term "Site Profile" is
also mentioned in a
python file:
./browser/admin.py: form_name = _(u'Site Profile')
Can that be the reason why it already worked on 2.5?
Anyway, that particular translation is fine after that
change of the
domain. But some more differences show up. The string
"Allow
Anonymous Checkout" is translated in 2.5 but not in
3.0. It is in
interfaces.py:
from zope.i18nmessageid import MessageFactory
_ = MessageFactory('plonegetpaid')
...
... = schema.Bool( title=_(u"Allow Anonymous
Checkout"), default=False)
Does anyone know a reason why this is translated in 2.5 and
not in
3.0?
We are talking about Plone 3.0.4 btw.
Also, there is some code that is not getting translated in
both 2.5
and 3.0. Maybe there is not enough context here (and
slightly
off-topic for this particular thread), but the code is
this:
class TitledVocabulary(vocabulary.SimpleVocabulary):
def fromTitles(cls, items, *interfaces):
"""
terms = [cls.createTerm(value,value,title) for
(value,title) in items]
return cls(terms, *interfaces)
fromTitles = classmethod(fromTitles)
def CustomerNotificationChoices( context ):
return TitledVocabulary.fromTitles(
[
("no_notification", _(u"Do not send
customer email notification")),
("notification", _(u"Send customer
email notification"))
]
)
The "(Do not) send customer..." strings remain in
English instead of
my beloved Dutch language. Am I
missing anything obvious (or
non-obvious) here?
--
Maurits van Rees | http://maurits.vanrees.or
g/
Work | http://zestsoftware.nl/
"From an eekhoorn grows an oak." [semi-Dutch
proverb]
------------------------------------------------------------
-------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
Plone-i18n mailing list
Plone-i18n lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-i18n
a>
|