Changing default texts

3 messages Options
Embed this post
Permalink
johnmartelli () Changing default texts
Reply Threaded More More options
Print post
Permalink
Changing default texts

Hello,

I’ve been trying to change the default texts (in English and Italian) shipped with Plone for my custom skin but I’m having little success .

The only solution that seems to be available is the i18n using  files. I have set this up and it is working for a custom i18n domain. I have created the necessary locales directory and registered it with configure.zcml.  The only caveat is that I must manually compile the files with msgfmt but apart from that I can use them in my custom templates and everything works swell. But if I try to change the plone i18n domain I run into one of the following situations:

1) If I only put the texts I am interested in changing in the po/pot files in locales/it/ LC_MESSAGES, the texts I have not included are no longer localized.
2) If I put the entire plone-it.po (renaming it plone.po) file in locales/it/ LC_MESSAGES then the Italian works but I no longer get English!

I’m sure I’m making this a lot more complicated than it needs to be … I only need to change a couple of words!

TIA,

John Martelli

My Plone setup:

• Plone 3.3
• CMF 2.1.2
• Zope (Zope 2.10.8-final, python 2.4.5, linux2)
• Python 2.4.5 (#1, Oct 28 2009, 12:04:49) [GCC 4.3.2 [gcc-4_3-branch revision 141291]]
• PIL 1.1.6

Rigel Di Scala () Re: Changing default texts
Reply Threaded More More options
Print post
Permalink
johnmartelli ha scritto:
> I’m sure I’m making this a lot more complicated than it needs to be … I only
> need to change a couple of words!

Hi John,

you can easily override translations with collective.recipe.i18noverrides:

http://pypi.python.org/pypi/collective.recipe.i18noverrides

I've tested it and it works great.

Cheers,
Rigel.


--
Rigel Di Scala
[hidden email]
IPnext - your network evolution
Via S.G.B. De La Salle 4 - 20132 Milano IT
T. +39.022563154 - F. +39.022563899
http://www.ipnext.it

LinkedIn - http://www.linkedin.com/in/rigeldiscala


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
johnmartelli () Re: Changing default texts
Reply Threaded More More options
Print post
Permalink
Rigel Di Scala wrote:
johnmartelli ha scritto:
> I’m sure I’m making this a lot more complicated than it needs to be … I only
> need to change a couple of words!

Hi John,

you can easily override translations with collective.recipe.i18noverrides:

http://pypi.python.org/pypi/collective.recipe.i18noverrides

I've tested it and it works great.

Cheers,
Rigel.
Hi Rigel,

thanks for your quick reply. I looked at the i18noverrides and it looks like a steep learning curve for a newbie like me. I ended changing the stock plone-it.po file ...  I know it's not the best approach but I''m running out of time ;-)

Plone is a great product but changing the stock texts should be a lot easier.


John Martelli