Forums

[resolved] [Plugin: Stray Random Quotes] Translation not loaded (3 posts)

  1. Adamsen
    Member
    Posted 7 months ago #

    I have a Danish translation - stray-quotes-da_DK.mo - that is not loading. The suffix da_DK is the correct one to use; it works ok with other plugins. (The poedit template that I used for the localization works with other localizations.)

    I have tried to rename the mo file to da_DK.mo, but it did not help.

    I have checked both on a blog running on a subdomain and one running on the main domain.

    Any suggestions?

  2. Adamsen
    Member
    Posted 7 months ago #

    Here is the (or a) solution

    Change line 17

    from:

    if (DIR == 'plugins') $dir = '';

    to:

    $dir = (DIR == 'plugins' ? '' : DIR . '/');

    Kudos my son Filip.

  3. Adamsen
    Member
    Posted 7 months ago #

Reply

You must log in to post.

About this Topic