• Resolved hebafarid

    (@hebafarid)


    I am using TranslatePress to make a bilingual site (Arabic and English). Is there is a way to make the language switcher be English when I am in the Arabic version and be Arabic when I am in the English version? I don’t want to always have the language switcher displaying the two languages no matter which language I am currently viewing my site in.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for your interest in our plugin!

    You can do this with some CSS. I`ll let you the documentation to do this: https://translatepress.com/docs/developers/show-opposite-language-in-language-switcher/

    If there`s anything else, please let us know!

    Kind Regards,

    Thread Starter hebafarid

    (@hebafarid)

    Hello @anghelemanuel99 ,
    I tried doing this. However, in the menu in appearance, when I try to change the CSS class of English for example to “tp_en” as in the document and click save menu. After that when I check again I found the CSS class became this “tp_en trp-language-switcher-container” why is that happening?

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello again,

    I`m sorry for the late reply.

    I just created your CSS for this to show opposite flags:

    .translatepress-en_GB .tp_en,
    .translatepress-ar .tp_ar
    { display: none !important }

    The en_GB is for English (Great Britain) but you will change it if you have en_US(United States)

    If there`s anything else, please let us know!

    Kind Regards,

    Thread Starter hebafarid

    (@hebafarid)

    Hello @anghelemanuel99,

    It worked. Thanks a lot

    • This reply was modified 4 years ago by hebafarid.
    Thread Starter hebafarid

    (@hebafarid)

    Hello @anghelemanuel99,
    I have another question. How can I change the flag that appears next to language name?

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello again,

    In the TranslatePress settings at Language Switcher.

    Have a nice day!

    Kind Regards,

    Thread Starter hebafarid

    (@hebafarid)

    @anghelemanuel99,

    I don’t mean that I want to make the flags visible or not. I want to change the flag of the same language. For example, I want to change the flag that appears with Arabic language. I want to make it another flag.

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    I`m sorry for this mistake.

    In order to switch the flag, you have to create a custom language and there you can upload your flag.

    Have a nice day!

    Kind Regards,

    Thread Starter hebafarid

    (@hebafarid)

    Hello @anghelemanuel99,
    I can’t change the flag of an existing language? Creating a custom language will make me start translating all over again.

    Thread Starter hebafarid

    (@hebafarid)

    Hello @anghelemanuel99,
    I have a question. I am using “TranslatePress” to have a bilingual site (Arabic and English) and it is awesome. However, The subject of the email sent to users is a little weird. How can I change it? Here is the subject:
    <translate-press data-trp-translate-id=”3018″ data-trp-node-group=”String List”>Please activate your account</translate-press>

    Thread Starter hebafarid

    (@hebafarid)

    hello @anghelemanuel99,
    I still didn’t receive a reply on my last problem. It is very important to me. So, if you could kindly reply on that?

    Thank you.

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello again,

    Can you explain more about what you really want to do and which email?

    You can send screenshots to help me more.

    Thank you.

    Kind Regards,

    Thread Starter hebafarid

    (@hebafarid)

    Hello @anghelemanuel99,
    When a new user register, he or she receives and activation email. The subject of the email is “Please activate your account” in case the new user was using the English version of the site. However I get this subject “<translate-press data-trp-translate-id=”3018″ data-trp-node-group=”String List”>Please activate your account</translate-press>” if the user used the Arabic version of the site. IF you noticed, it is the same subject, it just has this extra html tags and the subject is not translated.

    • This reply was modified 3 years, 11 months ago by hebafarid.
    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello again,

    Do you use a specific plugin for emails?

    Kind Regards,

    Thread Starter hebafarid

    (@hebafarid)

    hello @anghelemanuel99
    The emails are produced from “WP Resume Manager” plugin which is part of “WP Job Manager” plugin.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Language switcher in TranslatePress’ is closed to new replies.