Support » Plugin: Simple Author Box » How to install translation?

  • Resolved vollachr

    (@vollachr)


    Hi,

    I’ve translated the plugin to my own language (Hebrew) through wordpress.org website (The stable version) and exported the entire translation to .po/.mo files.

    My question is simply, how to name them and where to put them for the translation to work on my site?

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • @vollachr just add the plugin translation file at the root of the plugin directory with this structure simple-author-box-<locale>.po where <locale> should be replaced by he_IL for Hebrew reference

    Thread Starter vollachr

    (@vollachr)

    Are you certain about that?

    I’ve place both simple-author-box-he_IL.po & simple-author-box-he_IL.mo at the following folder:

    \wp-content\plugins\simple-author-box

    it didn’t seem to do anything though.

    I also tried putting the same files here:

    \wp-content\languages\plugins

    Still no luck

    @vollachr maybe the strings inside of that file are not right…

    Try install the Loco Translate plugin and check if those po and mo works… When I use that Plugin I can translate the strings and it create that file, with that structure there.

    Thread Starter vollachr

    (@vollachr)

    I just tried that, Loco Translate shows the translation files for Simple Author Box Hebrew as 100%, all green bar.

    So it seems to be correct, I even re-saved them using Loco Translated and it still won’t work, the plugin stays in full English.

    is there any other language other than english that works? can I maybe send you the files for testing?

    @vollachr try to replace the simple-author-box-he_IL.po & simple-author-box-he_IL.mo by freemius-he_IL.po & freemius-he_IL.mo and add it to wp-content/plugins/simple-author-box/freemius/languages folder

    Thread Starter vollachr

    (@vollachr)

    @manuelrocha88 well, didn’t work either, it was highly doubtful anyway since there are already freemius-he_IL files in there, don’t know what these freemius language files are used for but it isn’t to translate the actual plugin, it doesn’t have the same strings, it is completely different.

    Anyway, as I said, didn’t work as well.

    @vollachr got to Loco Translate plugin page and change the configuration to be like this: https://u.pcloud.link/publink/show?code=XZ5PUIkZbBDdvckMV6fl5MpJIy2bRXYP5Fny

    Important part is the Text Domain and File Prefix.

    Then You just need to put at the root plugin folder the files

    saboxplugin-he_IL.po
    saboxplugin-he_IL.mo

    Rename the initial file name… If the strings to be translated are good then it should be translated. If not, User Loco to do it…

    Thread Starter vollachr

    (@vollachr)

    @manuelrocha88 OK, changed what you said to change, renamed the existing .po & .mo files to match as well.

    After a few tries I managed to get it working, but only when the files are placed in this folder:

    \wp-content\languages\plugins

    Didn’t work with the files in the plugin folder nor with the Loco Translate safe path, i.e. \wp-content\languages\loco\plugins

    Anyway, bottom line it’s finally working, can’t figure out why it won’t work from the loco trasnlate safe path though.

    @vollachr great you managed it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to install translation?’ is closed to new replies.