-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add translation endpoint #345
Conversation
@erral is this pr ready for review? If so please remove the "in progress" tag. |
Yes, sorry, I was expecting some comments on #225 that's why I didn't remove the in-progress tag, but it's ready for review anyway. |
a7755f2
to
88e1bdd
Compare
CHANGES.rst
Outdated
@@ -18,7 +21,7 @@ New Features: | |||
|
|||
New Features: | |||
|
|||
- Add @history endpoint. | |||
7- Add @history endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems a typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. Fixed.
88e1bdd
to
29862ac
Compare
Authorization: Basic YWRtaW46c2VjcmV0 | ||
Content-Type: application/json | ||
|
||
{"language": "es"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erral cmon, you could at least use Basque or Catalan. ;)
@erral sorry to keep you waiting with this pr! @sneridagh would you mind having a look? You have far more experience with this. |
…nslations of a content object, and to link and unlink translations of a content object
29862ac
to
6b377bd
Compare
Some weeks ago I worked on this again. I limited the scope of Moreover, the existing ecosystem of different versions of p.a.m for Plone 4 (1.x and 2.x), require different test setups which I was unable to configure properly. I think that, in an addon like plone.restapi, it's better to provide only support for something that it's directly supported on plain Plone. Moreover I needed some multilingual content support for one of our clients in Plone 4 and LinguaPlone, and extracted this endpoint to 2 dedicated add-ons that just support Plone 4 with LinguaPlone and Plone 4 with p.a.m: https://github.com/collective/collective.restapi.linguaplone With this 2 addons and the support for Plone 5 in this pull request, I think that the multilingual-content support should be complete. |
docs/source/translations.rst
Outdated
.. note:: | ||
This is only available on Plone 5. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erral a short introduction about Plone's multilingual capabilities would be nice. Keep in mind that the docs should work for JS devs who do not know the internals of Plone. One or two sentences are sufficient.
@sneridagh would you mind having a quick look at this? |
See #225 (comment) for rational behind this.