Okay
  Public Ticket #1673949
Translate problem
Closed

Comments

  • Thiago started the conversation

    Hello,

    I'm having trouble translating the template. I have not installed any translation plugin, I am trying to change the file manually. I want, for example, to change the phrase "Previous post", from single.php to my language, Portuguese. I changed lines 527 directly from the default.po file, and the translation was not done. I also changed the file nectar_salient_strings.pot, and nothing. I copied the default.mo and default.po files to the same folder and renamed it to pt-br.mo and pt-br.po, and there was no translation.

    Can you help me? Which file exactly do I change to translate the sentences I want? The language of Wordpress is already in Portuguese.

    Thank you again.

  •  8,996
    Tahir replied

    Hey Again,

    Please have a look at this Article :http://themenectar.com/docs/salient/translations/ .

    Best


    ThemeNectar Support Team 

  • Jakub replied

    Hi,

     I have the same problem with translating. But only with this two strings: "Previous Post" and "Next Post". 

    I'm using Loco Translate and all other strings can be translated. But these two I can not modify.

    Thanks for help.

  •  8,996
    Tahir replied

    @Jakub,

    Try using the New Responsive Typography Settings in here : http://prntscr.com/gnf951 .

    Best.


    ThemeNectar Support Team 

  • Jakub replied

    Hi Tahir,

     thanks for quick reply. But it didn't help. I don't have a problem with size of that text, but with translations. It seems that these two strings are out of the translatable strings.

    Thanks.

  •  8,996
    Tahir replied

    Hey Again,

    Try using this Plugin : https://wordpress.org/plugins/say-what/ . 

    You can find the list of string in "salient/lang/nectar_salient_strings.pot" file next to the "msgid" variable as below.

    msgid "Leave a Reply"
    msgid "Cancel Reply"
    

    In The "Text Domain" field write "salient" without quotes . If you are trying to change woocommerce words  add "woocommerce" in "Text domain" . The fields are case-sensitive meaning "next project" wont work and you will have to add "Next Project" .


    Thanks 


    ThemeNectar Support Team 

  • Jakub replied

    Thanks that worked!

    Plus I found the problem with Loco Translate. It didn't find your original pot file lang/nectar_salient_strings.pot and generated it's own lang/salient.pot ... so I had to change it manually.