• Hello all,im trying to change the placeholder in the calulator, i translated almost everything using the translate option in the plugin dashboard, but i cant find the placeholders translations, look the image attached, thanks in advance!!!

    For traslate

    • This topic was modified 7 years, 6 months ago by hkarlos30.
Viewing 2 replies - 1 through 2 (of 2 total)
  • There are two methods for translating the time period strings, like yearly, monthly, weekly, etc.

    1. There is a Spanish translation file included with the plugin. Setting your site’s language to Spanish should automatically use the Spanish translation file. Failing that, you can create your own .mo file for the language you want based on the included .po file.

    2. Add a filter callback function to run on the rmc_localization filter. This will allow you to modify all the remaining strings to your liking. Here’s some example code to get you started – copy and paste into your theme’s functions.php.

    function custom_rmc_localization( $strings ) {
    
        // Modify strings in the array
        $strings['yearly'] = 'anual';
        $strings['monthly'] = 'mensual';
    
        return $strings;
    }
    add_filter('rmc_localization', 'custom_rmc_localization');
    headgood17

    (@headgood17)

    I can translate “weekly, annually, quarterly, semi-annually” but I can’t find where to translate “Yearly”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to traslate placeholders?’ is closed to new replies.