Home › Forums › Weaver Show Posts & Show Sliders › Localization of Weaver Show Posts

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19459
    Josef
    Participant

    I would like to localize/translate some strings into my language. Where should I place the cs_CZ.mo file in the plugin’s folder?

    Thanks for a hint.

    #30309
    Weaver
    Keymaster

    I think they always go in the /languages folder.

    Let me know if that works or not – I may need to add a statement to the plugin php files.

    #30310
    Josef
    Participant

    I want to localize the text string ‘No posts found.’ which shows on front-end when there are no posts to show as to the filter.
    I added ‘/languages’ folder to the plugin (which is not present in downloaded plugin).
    I put ‘show-posts-cs_CZ.mo’ into it, the .po is this:

    # Translation in Czech
    # This file is distributed under the same license as the package.
    msgid ""
    msgstr ""
    "PO-Revision-Date: 2016-08-15 21:55+0200n"
    "MIME-Version: 1.0n"
    "Content-Type: text/plain; charset=UTF-8n"
    "Content-Transfer-Encoding: 8bitn"
    "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;n"
    "X-Generator: Poedit 1.8.7.1n"
    "Project-Id-Version: 4.4.xn"
    "POT-Creation-Date: n"
    "Last-Translator: Josef Prause <[email protected]>n"
    "Language-Team: n"
    "Language: cs_CZn"

    #:
    msgid "No posts found."
    msgstr "Žádné příspěvky."

    My answer is:     the string is not translated, i.e. the above doesn’t work.


    Note: at the plugin’s translation page there is a message:
     ‘This plugin is not properly prepared for localization. If you would like to translate this plugin, please contact the author.’

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.