Okay
  Public Ticket #163834
Localization problems (Codestyling)
Closed

Comments

  • Mari started the conversation
    Hi, I'mn trying to translate the Salient theme using Codestyling but it doesn't work. I'm familiar how the plugin works, I have used it on several sites prior without any problems. I have done everything as before (changed the wp.config.php file's WPLANG to fi_FI etc.) but it doesn't do the translations. The plugin seems to work as it should. Only thing I noticed is that the po.file Codestyling is translating ie. textdomain seems to be located in a weird place: File: wpbakery/js_composer/theme_locale/fi_FI.po. Where in all other themes I have used the po.file / textdomain is located and imported from the language folder (languages/fi_FI.po). Also the textdomain name is usually the name of the theme where now it is called "js_composer"? Could this be why the translations are not showing up? Any idea how to fix this? I couldn't find a way to change the source file location from Codestyling. I have the fi_FI.po file located in 3 places in my directory. Please see the attached screenshot for the locations of the fi_FI.po file and screenshot of the Codestyling window where you see the textdomain. The site should go live on Monday so I really would appreciate a prompt reply. Thank you for your help in advance! Best regards, Mari
  • Mari replied

    Well, now all of sudden (??) as I tried and tried Codestyling asked me to re-scan the files and there it was! The source file had changed to lang/fi_FI.po (see attachment)!? And now it seems to work! I'm not sure if you did something or not but thank you just in case :)

    BR,
    Mari

  • Artem replied

    I have the same problem

  •  1,086
    ThemeNectar replied

    Hey Artem - as Mari mentioned the .po was correctly displayed after rescaning the files. Have you tried this already?

    Cheers

  • Artem replied

    Yes, but the translation and not displayed.

    Found a solution: in the translation file (.po) in the line X-Poedit-Basepath replace .. / to .. / .. /

    After this translation is displayed

  •  8,940
    Tahir replied

    Hey Artem!

    Thank you for the posting the solution . We will be sure to take a look into this in future updates.

    Cheers


    ThemeNectar Support Team