• Resolved amc11

    (@amc11)


    Hi,

    I have a quick question. How can I show a good old fashioned
    droplist for languages selection? Like Google has delivered before?
    I have a paid Google api, but I cant get this to work with translatepress.

    Thanks!

Viewing 15 replies - 1 through 15 (of 15 total)
  • Dragos

    (@dragosvrejiu)

    Hello,

    Thank you for getting in touch with us!

    Could you please explain what do you mean by droplist for languages selection?

    Also,do you encounter problems linking your Google translate API key to TranslatePress?

    Best regards,

    Thread Starter amc11

    (@amc11)

    Hi,

    More traditionally Google translation was presented with a dropdown of flags, where the user could change the lanugage. I really dont understand how this automatic translation works.

    When pushing the test button your plugin say all is OK. I dont know if there are any other problems because obviously I cannot test it/see other langugase on the frontend from only one country.

    • This reply was modified 6 years, 4 months ago by amc11.
    Dragos

    (@dragosvrejiu)

    Hello,

    The way the automatic translation feature works is a simple one. You can check this article to understand better: https://translatepress.com/automatically-translate-wordpress-site/

    We have documentation steps on how to set up the Google Translate API key and how to add quotas to never exceed a certain threshold:
    https://translatepress.com/docs/settings/generate-google-api-key/.
    Once the Google Translate API key is set into the plugin, it will translate each string on the pages accessed either by admin or visitors, without requiring any help from you.

    The same working and setting principles are also applied for DeepL API Key. Here you can check how to set one of it: https://translatepress.com/docs/addons/deepl-automatic-translation/?#generate-key.

    It will only translate content in one particular language on one particular page the first time someone views that page in that language.
    This means that there is no complete scanning and translating the entire site. It’s only done incrementally as the pages are accessed.

    The translations are stored in your site’s local database so that the next time a visitor accesses the same page, it doesn’t need to query the Google API again for the same strings.
    This saves execution time and most importantly saves costs.

    When browsing a page normally, the content is translated only in the language that is being displayed.
    When browsing in Translation Editor, it’s like browsing all the languages at the same time. Translations will be retrieved for all languages for the content being viewed in the Translation Editor.

    Translations are not based on a specific page. They are based on strings. The strings on the page are divided by HTML tags. So, for example, a paragraph inside a “p” tag is considered one individual string.

    This means that if a string is translated on a page (either by Google Translate, DeepL or human-reviewed), then the same string found on another page will already have a translation. For example, you only need to translate the Menu items once, and they will be translated across the website.

    You can edit any automatically translated string later, from the Translation Editor.

    TranslatePress does not create new posts for the translated versions of the original post. But the translated versions will have separate URLs.
    These translated URLs will contain the language but also a translated slug of the post if you plan to use the SEO Pack Add-on.

    Best regards,

    Thread Starter amc11

    (@amc11)

    Wow thanks what an amazing answer!

    So if im in for example Germany, the page will be translated into that lanugage by default. Or if im in Spain, Italy, Greece it does the same? How accurate is this really?

    Also, is there any way to test this? I would love a vacation….but without going there…

    Thanks!

    • This reply was modified 6 years, 4 months ago by amc11.
    • This reply was modified 6 years, 4 months ago by amc11.
    • This reply was modified 6 years, 4 months ago by amc11.
    Dragos

    (@dragosvrejiu)

    Hello again,

    Yes , if you have the Google API key, you can link it to the plugin and see how it works.

    For Google Translate integration, you don’t need the paid version of the plugin.

    Although,when using the free version of TranslatePress, you are limited to only one secondary language and you can’t translate the slugs.

    Best regards,

    Thread Starter amc11

    (@amc11)

    Hi, thanks!

    Yes we have implemented the Google API key, so everything seems to work fine.
    Is there any way I can test the automatic translation for languages that are not added to translate press? Or do I need to contact someone that visit our website from another country?

    Thanks!

    Dragos

    (@dragosvrejiu)

    Hello,

    You can not test the automatic translation for languages that are not added to TranslatePress.

    Visiting the website from another country won’t change anything; as you can only add one language to it , the visitor will be able to pick between the main language and the secondary one.

    The only way would be to delete the current added language then select another one and test the translation.

    But that is not really ideal, as it will use a lot of your characters.

    Best wishes,

    Thread Starter amc11

    (@amc11)

    We have 2 languages added, Swedish and English. So you mean that only 2 languages can be run for all lanugages including the ones fetched by Google Translate API?

    Dragos

    (@dragosvrejiu)

    Hi,

    Using the Google Translate API , you can translate as many languages as you have added in TranslatePress.

    If you have the Pro version, you can add as many languages as you want.

    With the free version, you can add only one language.(besides the default one)

    Best regards,

    Thread Starter amc11

    (@amc11)

    Ok good then I know!
    I guess we may go with the pro version then.

    What if we want to use a all avaliable languages like the traditional Google Translate droplist? Do we need to figure out all languages and flags etc?

    Dragos

    (@dragosvrejiu)

    We have most of the flags and languages incorporated in our plugin.

    The only thing you need to do is add the languages to your website using TranslatePress.

    Best of luck,

    Thread Starter amc11

    (@amc11)

    Thanks dude!

    Before we go for the pro version, we need to know if there is
    any chance to add a dropdown displaying all flags, without adding
    all the languages to Translatepress? (what I can remember it was
    a feauture before) We have hard-translated two languages now, Swedish
    and English. For the rest, I mean..I cannot in my head list all the countries
    in the world…how can then add all these?

    Dragos

    (@dragosvrejiu)

    Hello,

    You will have to add the languages manually into TranslatePress.

    The dropdown from the general settings shows all the available languages but you can also add custom languages:https://translatepress.com/docs/developers/add-custom-language/

    Best wishes,

    Thread Starter amc11

    (@amc11)

    Hi thanks!

    We do not want automatic translation. Is it possible to do the following
    either with or without pro version.

    Two flags with Swedish and English is presented to the upper right corner. These languages are changed by the admin in TranslatePress. In the translate option. Reson for this is that both Swedish and English need real accurate translation and spelling. For all rest of languages we want to add a icon right of the two flags, as a globe or some other icon. When pressed a dropmenu will appear with the rest of the flags. If a visitor picks one of these flags, the page translates to this language and the google translate bar (light blue one) in top shows.

    Is this possible to achieve with TranslatePress. Yes or No?

    Thanks!

    Dragos

    (@dragosvrejiu)

    Hello,

    I don’t know if I understood correctly what you are trying to achieve , so correct me if I’m wrong.

    When a language is chosen, you want the page to be translated in that language but only while the visitor is viewing your site?

    If this is the case, then TranslatePress does not suit your needs.

    You could use automatic translation to permanently translate your site into the chosen languages.

    Best regards,

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Google API Dropdown Option’ is closed to new replies.