[Plone-conference] Templer Sprint - i18n script
Davide Moro
davide.moro at redomino.com
Mon Oct 15 12:47:15 UTC 2012
Il 15/10/2012 13:42, Harald Friessnegger ha scritto:
> hi mark
>
> the script attached more or less does the same things but takes slightly different approaches
>
> * it does not need the language list ( LANGUAGES="en fi de").
> as you're crating the folder structure with templer anyway this makes the script less error-prone:
>
> creating a news language with templer and not adding it to the list here would result in new ids not beeing synced to this language's po file
Hi Harald,
thank you for your tips!
I think it's better to move this discussion outside the plone conference
list, so we can discuss together with private mails or in a more
appropriate list (developer list? I don't know). Probably we are a bit
off topic here.
Anyway I'm not sure if I understand your proposal. If I have understood
well the question, the new templer i18n locale local command should just
add Mikko's .sh script with the choosen languages. After that there is
no need to call templer i18nlocale, you should just modifying the
LANGUAGES var and re-run the script.
Does it should work fine for you or am I missing something?
>
> * as i personally have a policy, types and them package in our comany's projects there is support for collecting msgids of different packages
> into one central package.
>
> i think this use-case is very common for other developers too
It depends on what kind of package are you developing.
It may be ok just for framework or policy packages, but for normal
packages people commonly put translations into the package they are
developing.
Personally I'd prefer the second option because it is a more frequent
and generic use case.
>
> there might be more elegant solutions for this. plone has to do the same for plone.app.locales, so there might already be a more generic solution for this
Probably it's different because Plone is a framework with lots of
packages, it is another use case.
Thank you for your hints!
davide
--
Davide Moro
Technical Development Manager
http://linkedin.com/in/davidemoro82
Redomino Srl
http://redomino.com
HQ Largo Valgioie 14, Turin IT
Phone +39 0117499875
More information about the Plone-conference
mailing list