• Resolved nancy56

    (@nancy56)


    Assuming am trying to send a post request for my application from wordpress. I know how to do that via wordpress function.

    Here is my question: lets assume I want translate
    a certain words in a variable to German. Does wordpress has a builting API that I can leverage or I should come up with my own php way via internationalization.

    `<?php

    $post_to_translate =”Hello am wordpress fans”;
    // then post translated data to database

    ?>`

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    There is no mechanism in native WP to translate data. Only to translate interface text in code. Even the multilingual plugins do not do translations, they only provide a framework in which you can show to users the data you’ve translated. Google does provide a Translate API for devs to use. I don’t know if there’s a WP plugin that uses it or not. Your search skills are likely as good as mine ??

    Thread Starter nancy56

    (@nancy56)

    Thanks alot

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using wordpress API to translate data’ is closed to new replies.