-
-
Notifications
You must be signed in to change notification settings - Fork 200
Merge translations into plone.app.locales #983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is also plone.app.multilingual |
and maybe plone.app.multilingual and plone.app.versioningbehavior |
I found plone.app.contenttypes and plone.app.lockingbehavior not translated. |
|
plone.app.contenttypes translations are in the plone domain in plone.app.locales. |
Is it better to change "plone.app.contenttypes" domain at the file plone.app.contenttypes/plone/app/contenttypes/behaviors/configure.zcml to "plone"? |
|
+1 for using not that many i18n-domains. |
+1 |
yes please change to i18n_domain="plone" in configure.zcml if it's still i18n_domain="plone.app.contenttypes" |
Okay! I changed i18n_domain and should I change plone.app.lockingbehavior too ? |
yes please. |
On a fully checked out buildout.coredev (see branch all-sources) there were quite a few more packages that were defining their own translation domain. I added all of them on the first message, edit and fix at will :-) |
In product plone.app.referenceablebehavior I will to change the zcml and put it into the plone domain and translate it there. And I will delete locales folder and edit configure.zcml removing reference for folder. |
And I will merge french translation. |
Since 3.4.5 i18ndude supports chameleon, so there should be no need to "modify your local zope.tal". This lines should also go: |
Thanks @ale-rt I didn't see the new version, I updated the instructions in the i18n.cfg file. |
@gforcada Thanks for beginning this work. I'm glad I'm not the only one anymore to know how to update Plone translations. bin/i18ndude admix ${P_A_LOCALES}/$locale/LC_MESSAGES/plone.po ${TARGET_PACKAGE}/$locale/LC_MESSAGES/${PO_FILE} > ${P_A_LOCALES}/$locale/LC_MESSAGES/${PO_FILE}.po should be: bin/i18ndude admix ${P_A_LOCALES}/$locale/LC_MESSAGES/plone.po ${TARGET_PACKAGE}/$locale/LC_MESSAGES/${PO_FILE} > ${P_A_LOCALES}/$locale/LC_MESSAGES/plone.po.tmp
mv ${P_A_LOCALES}/$locale/LC_MESSAGES/plone.po.tmp ${P_A_LOCALES}/$locale/LC_MESSAGES/plone.po I edited the first comment with this solution. |
@vincentfretin the |
We should do a i18ndude find-untranslated on all packages too. I did it only for Products.CMFPlone at the ploneconf sprints and fixed several issues. |
…widget.contenttree translations to plone.app.locales 4.3.x (refs plone/Products.CMFPlone#983)
…tetime, plone.formwidget.contenttree which now use the plone domain. (refs plone/Products.CMFPlone#983)
Branch: refs/heads/master Date: 2016-02-09T13:49:45+01:00 Author: Vincent Fretin (vincentfretin) <vincent.fretin@gmail.com> Commit: plone/plone.formwidget.datetime@1d28980 add changelog entry and specify dependency of plone.app.locales >= 4.3.9 (refs plone/Products.CMFPlone#983) Files changed: M CHANGES.rst M setup.py
@mauritsvanrees It should be good now. |
@vincentfretin Very good. Thank you! |
@vincentfretin I'm not clear about the background of this change, but your commit in
For example, the http://dist.plone.org/release/4.3-latest/versions.cfg pins
(Let me know if you'd like me to open up a separate issue for this somewhere - I'll then move my comment accordingly). |
@lukasgraf The explicit dependency is intentional so you don't end up with the datetime widget only in English. I want the buildout to fail :) Several solutions here:
|
plone.formwidget.datetime 1.3 is incompatible with Plone <= 4.3.7 plone/Products.CMFPlone#983 (comment)
…how to update the translations (refs #121)
Moving plone.app.multilingual translations into plone.app.locales: plone.app.multilingual master is used both for Plone 5.0.x and 5.1.x, so I included the translations in both 5.x and master branches of plone.app.locales. plone/plone.app.multilingual#306 collective/plone.app.locales#200 |
LGTM @erral If nobody disagree, you can merge all those PR. |
The pull-requests for p.a.multilingual are failing in an unrelated way: https://jenkins.plone.org/job/pull-request-5.0/415/#showFailuresLink Should I merge or try to reproduce and fix before merging? |
Sorry, it's not unrelated. I have a missing msgid to move |
OK, p.a.multilingual tests are expected to fail until all pull requests are merged, because they depend on a translation coming from plone.app.locales. So I'm merging them. |
Moving plone.dexterity translations: These are PRs to include plone.dexterity's translations into plone.app.locales. These are for Plone 5.1.x:
I messed up with the translations, so I retired the former PRs and issued new ones. plone/plone.dexterity#82 These are the PR for Plone 5.0.x:
|
PR for Products.CMFDiffTool: |
PR for plone.app.caching plone/buildout.coredev#439 |
@erral Thanks for your work. You should start merging all those PR before you have any conflicts. |
Thanks for your guide too, it was very useful to get things done. |
I also created a PR to include those files in 5.2 branch of coredev: plone/buildout.coredev#440 |
Yes indeed, it should be in sync with 5.1 branch, thanks. |
All done?!! Cool thanks to everyone for working on this! Shall the issue be closed then? |
On the list above there is stille an open thing: plone.z3cform, but it's still an open issue whether it should be moved to plone organisation or not. |
Well, then we can close it and add on that ticket that as soon as we move it, if we ever do, translations should also get merged into plone.app.locales. |
We have some packages that started their lives as non-core addons, but didn't merge their translations into plone.app.locales when they were added to core.
See:
[edit by @jensens] added 2 packages
[edit by @gforcada] added a bunch more
HOW TO
[remixed by @gforcada from https://github.com/plone/plone.app.event/issues/181#issuecomment-96406149 thanks @vincentfretin]
./bin/develop co $PACKAGE_NAME
)experimental/i18n.cfg
in buildout.coredev 5.1 to include the target package inplone
domain. See plone/buildout.coredev@802549dbin/buildout -c experimental/i18n.cfg
on buildout.coredev 5.1bin/i18n plone
to regenerate plone.pot and resync plone files. (If there is any removed messages, be sure to look if this is normal, it may be an issue you have to fix before continuing your work)bin/i18ndude admix
command to transfer translated messages from the target package to plone.po for each language. Something like this:i18n:registerTranslations
directive inconfigure.zcml
)experimental/i18n.cfg
updateplone.app.locales
!The text was updated successfully, but these errors were encountered: