• Resolved Anonymous User 18296540

    (@anonymized-18296540)


    Bug in the translation option in Expiry Date. Although the plugin should retrieve the date from WP, i.e. in the language of WP, it does not show it in a given language, but always in English. The backend is OK, i.e. the calendar is in, for example, German, French or Polish, but the frontend always has a date in English.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Anonymous User 18296540

    (@anonymized-18296540)

    PS
    System: languages/plugins/
    Author: plugins/jobboardwp/languages/
    Custom: languages/loco/plugins/

    The plugin does not read the translation in the default Loco location:

    Custom: languages/loco/plugins/

    Only in the other 2 locations, which means that the translation can be removed in the event of a new installation or update.

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @schuerich

    1) Since the 1.0.7 version there has been added 4th attribute for getting the expired date and localizing it. See details here https://www.ads-software.com/support/topic/some-dates-are-not-localized/

    2) The Loco plugin and its location is the custom 3rd-party solution for translations.
    System: “languages/plugins/” folder is safe for plugins/themes update and we use it for all custom translations.

    If you need to use Loco plugin translation and its custom translations folder please insert this callback to your child-theme’s functions.php file.

    add_filter( 'jb_language_file', 'jb_my_custom_translations_dir' );
    function jb_my_custom_translations_dir( $language_file ) {
        $language_locale = ( get_locale() != '' ) ? get_locale() : 'en_US';
        $language_locale = apply_filters( 'jb_language_locale', $language_locale );
    
        $language_domain = apply_filters( 'jb_language_textdomain', 'jobboardwp' );
        $language_file = WP_LANG_DIR . DIRECTORY_SEPARATOR . 'loco' . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . $language_domain . '-' . $language_locale . '.mo';
        return $language_file;
    }

    Let me know if that works,
    Best Regards!

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @schuerich

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translation BUG – Expiry Date’ is closed to new replies.