From: Hanno S. <sch...@ba...> - 2005-07-25 09:29:11
|
Yannick Biet wrote: >> Using your own domain for your product is just right, but there are >> some messages that need to go into the plone domain. As you have >> noticed workflow transitions and zpt titles (rendered in the >> breadcrumbs) are of such a kind. So you actually have to create a >> second po file "MyProductName-plone.po" (or the like) with domain set >> to "plone". >> >> Regards, >> Hanno >> > Ok and if I have two zpt, how can I define two titles (aka. title1, > title 2) in MyProductName-plone.po in order to use these two MsgId as > the title of my zpt. > Ie, how can I create the link to title1 fro ZPT 1 and title for ZPT 2 as > currently I define the title in .metadata file ?? > > Do I have to set the title in metadata file as being the MsgId Plone > should handle ?? > > Yannick Yes ;) ZPT titles defined in metadata files are literal msgids (meaning their msgid is exactly the same as the text that should get translated). So you'll have to add something like: msgid "choose manager" msgstr "choix du manager" Note however that in the upcoming Plone 2.1 the ZPT title isn't shown anymore in the breadcrumbs, so I wouldn't spend to much time on these, as this was AFAIK the only location where the ZPT titles were used. Best Regards, Hanno |