Support » Plugin: qTranslate X » How to duplicate (verb) posts

  • Hi, nice simple implementation, thank you.

    In some other monolithic translation plugins I’ve used before you can take a post and duplicate it (make a copy) into another language. This is a great feature since a lot of meta information need not be redone, and then you can just edit the parts that need translation.

    If I’m missing this, please point it out to me, if not it would be a great feature to add to your plugin.

    Thanks,
    jim

    https://wordpress.org/plugins/qtranslate-x/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Gunu

    (@grafcom)

    @jimlongo

    In some other monolithic translation plugins I’ve used before you can take a post and duplicate it (make a copy) into another language.

    can you give an example?

    An example of a plugin that does this is WPML.

    The problem of course is they have way too many options, but simply described what I’m suggesting is as follows.

    Let’s say you’ve created a post in your primary language (English) http://mysite.com/en/foo/, and you have French enabled as an additional language.

    In your English post there will be a button that allows you to make a duplicate copy of that post as http://mysite.com/fr/foo/

    Now you can edit the French page. This saves a lot of time in creating the alternate language version of the post.

    Thanks.

    Plugin Author Gunu

    (@grafcom)

    OK, but copy and paste is not that much extra work right?

    I think it is if you have many meta boxes as you might in a custom post type.

    Or maybe I’m just lazy, but I found myself missing this feature.

    Thanks.

    Plugin Author Gunu

    (@grafcom)

    @jimlongo

    I think it is if you have many meta boxes as you might in a custom post type.

    here you have a point…. 🙂

    Plugin Author John Clause

    (@johnclause)

    I updated page https://qtranslatexteam.wordpress.com/desirable/ with this fetaure request. It indeed makes a lot of sense.

    How do you envision it? Where we would put a button? New metabox – probably too heavy? Ctrl-click on other Language Switching Button (LSB)? Do we always copy all multilingual fields on a page? What if some fields are not empty? A lot of details like these needs to be thought out and designed.

    BTW, @jimlongo, this is a community project, do you wish to implement it? We can help you to find relevant places in the code, it would be a very nice contribution.

    Control-click, or maybe a + symbol link in each LSB.
    I think you should copy all multilingual fields, empty or not.
    If not empty then just copy the existing content, the user can then change what’s required.

    As for contributing, let me give it some thought and see if I can devote the time.

    Thanks.

    Plugin Author John Clause

    (@johnclause)

    a + symbol in each LSB

    What is it?

    As for contributing, let me give it some thought and see if I can devote the time

    That would be really awesome. If you decide to do this open issue at GitHub and I will point you to a place in the code to begin with.

    The first thing in any case is to figure out how to detect Ctrl-click reliably in all browsers, I do not know this on the top of my head. Then we will inject an action in function onTabSwitch (./admin/js/common.js) or at the place where this function is invoked, if Ctrl+click is detected. I can write the copy action itself, as this would be the most difficult part for you to figure out, I guess.

    a + symbol in each LSB

    What is it?

    I was thinking a link with an onclick that triggers the duplicate action.

    http://rdiv.com/screenshots/DuplicateAsNewLanguage.png

    Plugin Author John Clause

    (@johnclause)

    >a + symbol in each LSB

    Ah, ok. Well, that would probably take too much extra space on the screen? So far, Ctrl-click seems the best choice for me. We can set “alt” on buttons to show help prompt like “Use ctrl-click on the button to copy all the content from its language to the active edit-language.” or something like this?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to duplicate (verb) posts’ is closed to new replies.