Skip to content
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

Translation Logic #2

Open
4 of 6 tasks
xipasduarte opened this issue Jul 27, 2021 · 0 comments
Open
4 of 6 tasks

Translation Logic #2

xipasduarte opened this issue Jul 27, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@xipasduarte
Copy link
Member

xipasduarte commented Jul 27, 2021

Create a post from another can happen with or without copying.

When we don't copy we just pass the target language with the action.

  • Redirect to edit with the query arg create=[lang]
  • Use the query arg to define the language in the entity's lang switcher and block it
  • On save remove the query args and add the ubb_lang meta (the meta shouldn't be created before.

When we're creating using the copy system it works similarly, but it requires a plugin to be present (Duplicate Post). In a sense, we don't actually support the feature, but use other plugins to allow it.

Tasks

This logic applies to all entities so we need to do this for:

  • Posts
    • Create new
    • Copy
  • Terms
    • Create new
    • Copy
@xipasduarte xipasduarte added the enhancement New feature or request label Jul 27, 2021
@xipasduarte xipasduarte changed the title Translation Logic (Posts) Translation Logic Aug 4, 2021
@xipasduarte xipasduarte self-assigned this Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants