Support » Plugin: Transposh WordPress Translation » is wp-json supported?

  • Resolved nc_nc

    (@nc_nc)


    Will the call to an index.php/wp-json/wp/v2/ page also be translated?

    And how would I go about fixing any translation if the blog/post is of a custom Post Type that is hidden?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi nc_nc (@nc_nc).
    Pay Ofer for support, he is super fast.
    It will the best money you ever paid for support!!!

    https://cabelos.co/wp-json/wp/v2/?lang=sv

    Br,
    Niels Peter Thomsen
    https://cabelos.co/

    Plugin Author Ofer Wald

    (@oferwald)

    You need to further explain what is actually broken, I assume that the call to wp-json won’t be translated until it gets some sort of hint that it needs to translate (yes, lang=xx should do the trick)

    I am not very familiar with the wp-json thing (read – I don’t know anything about that), so I will need some guidance regarding what it is, what it is used for, and where should one actually need translation on this.

    wp-json opens up WordPress to be used for api calls from within other websites. Like the very same data (link I provided above) is used here, inside this website coded in classic asp!

    Based on your answer, the data must be RAW/unaltered.

    On that note, where is Transposh storing the translation corrections? Would I have access to these?

    Myself I am new to WordPress; and also to wp-json. This post is what got me started to look into it. I needed to add a blog within asp code. It is really cool to be able to do this like that, but the translation aspect is not solved. I normally translate all the stuff by hand, but WordPress is not allowing me to do this simply. I did consider other plug-ins for that. I ended up using Piklist with Taxonomies to add some functionality to my setup. Now I can have filtered api calls, for instance a call like this https://www.filmfix.net/blog/index.php/wp-json/wp/v2/filmfixblog?ff_language=19 will filter out all the blogs in German.

    Plugin Author Ofer Wald

    (@oferwald)

    It does look interesting, however I am not really sure on how to proceed (if at all).

    Let’s assume we have the “get all posts” endpoint, should ALL the posts actually get listed there (eg, including all translations?)

    Should I create a language endpoint for each language? Translating things there on the fly? could be, and actually quite easy to achieve, however- who/what is the client here? who will use this, how will it be known that there are new possibilities there?

    Should the transposh admin-ajax calls be exposed? what will be the point of that?

    Too many questions, too little time to answer them all, I will mark this as resolved, not because it is truely resolved, rather because I don’t know how to resolve this in a generic fashion, I think that this topic should be broken down into much simpler tasks, and those tasks can be based on demands by real users that need something specific. If you have such an application, don’t be afraid to tell me what you need.

    Good luck

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘is wp-json supported?’ is closed to new replies.