Re: Translating a Custom Content Type

Maurits van Rees <m.van.rees-1kr/[email protected]>
Newsgroups gmane.comp.web.zope.plone.internationalization
Organization Zest Software
Message-ID <[email protected]>
Op 13-07-10 12:20, Pavlos Papadakis schreef:
> Hello everybody!
>
> I have just created a new archetype based Content Type in Plone 3.3.5
> and i am using Windows 7. I also use Lingua Plone for the translation
> of the Content, but i also need to translate the labels of the fields
> for the form i created.
> The first thing i did was to use my cmd and to run the command bin
> \paster addcontent i18nlocale. In this step paster asked my for the
> ISO Language Code which i actually don't know for Greek (i tryed many
> i found on Google but always was an error returning).

It is 'el', for Ellenika. It is not what I would have guessed either. :-)

See for example the i18n/plone-el.po file within the plone.app.locales 
package.

> I am not sure
> that with this method i can translate my Content Type.
> Then i tried to follow the documentation on Plone.org about
> internationalization and localization but it was not descriptive
> enough to help me this way.
> So i want anyone who cans, to help my on this or to propose me any
> tutorial that is on the web.
>
> I am looking forward for any help on this!
> Thnx in advance.

This has some good info on how to edit zope page templates with i18n in 
mind:
http://plone.org/documentation/kb/i18n-for-developers

You will need the i18ndude package to fetch translatable strings from 
the page templates and python code and put them in a pot file, and 
update the po translation files of each language. Information about 
i18ndude is here:
http://plone.org/documentation/manual/developer-manual/internationalization-i18n-and-localization-l10n/translating-text-in-code/i18ndude/

And in general this chapter from the developer manual looks to be the 
best place to start:
http://plone.org/documentation/manual/developer-manual/internationalization-i18n-and-localization-l10n

-- 
Maurits van Rees
Programmer, Zest Software


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.