WordPress.org

Ready to get started?Download WordPress

Forums

DP Maintenance Mode Lite
DP Maintenance Mode Lite - Translation, localization (6 posts)

  1. estepix
    Member
    Posted 1 year ago #

    Hi there,

    I just translated the plugin into Spanish. If I leave the .mo file in the plugin language folder, like this:
    wp-content/plugins/dp-maintenance-mode-lite/languages/dpMaintenance-es_ES.mo

    The whole admin part gets translated appropriately, but not the front part. I'm having a difficult time trying to figure out where to place the file so both the admin and front are displayed fully translated.

    By the way if you would like to include the Spanish translation into your plugin, let me know and I'll send you the .po file so a few Spaniards can enjoy your great plugin!!!

    http://wordpress.org/extend/plugins/dp-maintenance-mode-lite/

  2. estepix
    Member
    Posted 1 year ago #

    Ok, I just spotted the problem, all translation functions in the admin part (settings.php) contain the text domain string 'dpMaintenance', i.e.:

    _e('Enter an URL or upload an image for the logo.','dpMaintenance');

    However none of the strings in the front do:

    <h3><?php _e("Days")?></h3>

    It would be great to include the text domain for all strings in the front part so the plugin could be fully localised. I'm afraid that for the time being I have no choice but to hack the plugin, I'm I right?

  3. dpereyra
    Member
    Plugin Author

    Posted 1 year ago #

    The frontend part is translated in the options panel of the plugin.

    Greetings

  4. estepix
    Member
    Posted 1 year ago #

    Sorry to disagree, but in the options panel you can only enter text for some of the strings, but you cannot translate strings like:

    Days, Hours, Minutes, Seconds
    NN% completed!

    Among others.

  5. Pavel Bilek
    Member
    Posted 1 year ago #

    Hi,
    Czech translation is available for download at http://www.chcistranky.eu

  6. dpereyra
    Member
    Plugin Author

    Posted 1 year ago #

    @estepix you are right, sorry.

    I will add the language var so it is easy to translate.

    Greetings

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic