• Resolved shashdha

    (@shashdha)


    Hello, thanks for the great plugin. I do wish to purchase the full version but before I do, could you please let me know how I could add a language that is not found in the language selection? As I mentioned in the topic, tigrinya language is not found. Also Farsi.

    Thanks a lot

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Cristian Antohe

    (@sareiodata)

    Hi,

    You can add a custom language if needed. Please follow the steps found here: https://translatepress.com/docs/developers/add-custom-language/

    Please note the example is for a RTL language. You’ll need to remove

    add_filter('gettext_with_context', 'trpc_somali_rtl', 10, 4);
    function trpc_somali_rtl($translated, $text, $context, $domain){
        global $TRP_LANGUAGE;
        if($text == 'ltr' && $context == "text direction" && $TRP_LANGUAGE == 'so_SO'){
            $translated = 'rtl';
        }
    
        return $translated;
    }

    if it’s a LTR language.

    Hi Cristian,
    I’ve also a similar question. The language is Amharic, it’s RTL. The alphabets are similar to Tigrinya.
    I’m not a php person. But if you it’s just a matter of substituting the language code, I think I can do that. If not, could you please provide a hands-on explanation?
    Also, where does this code go, including the flag code?

    Thank you,
    Misrak

    Hi Cristian,
    I’ve also a similar question. The language is Amharic, it’s LTR. The alphabets are similar to Tigrinya.
    I’m not a php person. But if you it’s just a matter of substituting the language code, I think I can do that. If not, could you please provide a hands-on explanation?
    Also, where does this code go, including the flag code?

    Thank you,
    Misrak

    • This reply was modified 4 years, 10 months ago by misrakwp.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tigrinya language not found’ is closed to new replies.