• Hi there,

    This plugin is great! but I found issues with WPML.

    1. Translation View is buried in the “…” making it hard for a global set up like us to see our translations in one view.

    2. Clicking “+ Add Translations” Creates a new page instead of opening WPML’s Translation Management.

    Nested Pages Href on the button: “post-new.php?lang=ar-sa&post_type=page&trid=2100&source_lang=en”

    VS

    Default View: “admin.php?page=wpml-translation-management%2Fmenu%2Ftranslations-queue.php&return_url=%2Fwp-admin%2Fedit.php%3Fpost_type%3Dpage&job_id=2423”

    3. Oasis Workflow allows us to make revisions of the page. I think this plugin have the potential to hide the revisions and add another button beside the Original Page to edit the revision. I would definitely pay $$$ for that. Currently it just add a new post under the original.

    I’m really considering installing this to our instance. I atleast need #2 fixed to do this.

    Thanks!

Viewing 1 replies (of 1 total)
  • Hi @patrickcruz,

    See if the following helps..

    Step 1 : https://wpml.org/forums/topic/hook-firing-after-a-translation-is-createdupdated/

    If you check the above link – the last comment will be the starting point
    “I did some digging into the WPML code. I found the following actions that appear to be the appropriate hooks:

    add_action(‘wpml_after_save_post’, ‘publisher_save_post’, 1000, 1);
    add_action(‘wpml_pro_translation_completed’, ‘publisher_save_post’, 1000, 1)”

    In here, we will be able to get the translated language post, for example. Also, at this point, we will be able to get the original post from the revised english post.

    a) From rev of the english post we need to get the id of original –
    – get_post_meta( $post_id, ‘_oasis_original’, true );

    b) And from original need to get the id of language post
    – Either use – https://wpml.org/wpml-hook/wpml_post_duplicates/
    – OR use – https://wpml.org/wpml-hook/wpml_object_id/

    Step 2: Now, add post meta to the translated post and to the revised language post
    – add _oasis_original to the translated post
    – add _oasis_current_revision to the original post.

    This way, you will be able to link the original language post with the revised language post.

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘WPML and Oasis Workflow Compatibility Issue’ is closed to new replies.