Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi gfdesign,

    thanks for reaching out. Where did you put your translations?
    Which string are you missing?

    Thanks
    Thomas

    Thread Starter gfdesign

    (@gfdesign)

    Hey Thomas
    Thanks for replying and excuse me for my delay.
    Sorry, I guess the advanced-ads-es_ES.po file is fine but I am not sure how to use it correctly. What I did was to place it at mysite\wp-content\languages\plugins\advanced-ads-en_US.po (along with .mo) and make the translations here (in order to avoid the next updates overwrite my translations).

    Besides, I added to my funtions.php file the next code:

    function advanced_ads_load_plugin_textdomain() {
    	$domain = 'advanced-ads';
    	$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
    	if ( $loaded = load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' ) ) {
    		return $loaded;
    	} else {
    		load_plugin_textdomain( $domain, FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
    	}
    }
    add_action( 'init', 'advanced_ads_load_plugin_textdomain' );

    The problem is, only some strings are taken, not all.
    Do you know other way to translate your plugin without lose the already made translations when it updates?

    Regards from Argentina

    Plugin Author Thomas Maier

    (@webzunft)

    Hi gfdesign,

    please move your translation file to wp-content/languages/plugins/plugins This will survive updates.

    If you want, you can also send me your translation to include it into the main plugin.

    Thanks
    Thomas

    Thread Starter gfdesign

    (@gfdesign)

    Hi Thomas
    I’ve moved advanced-ads-es_ES.po and advanced-ads-es_ES.mo to mysite\wp-content\languages\plugins\plugins but I haven’t had luck. (Is something wrong in my code I use into my functions.php?)

    Some strings were translated correctly when I put these files at mysite\wp-content\languages\plugins\ (non at mysite\wp-content\languages\plugins\plugins as you said) plus the code I use in my functions.php but not of all of them.

    For example, these are some strings are translated correctly:
    – Find more display options in the manual.
    – Ad Type
    – Ad Parameters
    – Add a description
    – Layout / Output
    – Copy&Paste existing ad code
    – Check this if you don’t want the following elements to float around the ad. (adds a clearfix)

    But some strings that are ignored:
    – Plain Text and Code
    – Rich Content
    – Image Ad
    – AdSense ad
    – Simple text editor without any filters. You might use it to display unfiltered content, php code or javascript. Shortcodes and other WordPress content field magic does not work here.

    I don’t know why some of them works and others don’t.
    Do you?

    It will a pleasure send you the Spanish translated file once I have it ready.
    Thanks for replying.
    Best regards

    Plugin Author Thomas Maier

    (@webzunft)

    Hi gfdesign,

    you don’t need to use your custom code in general. The folder I sent should be automatically detecting translations.

    Anyway, for some reasons I also run into issues with translation files from time to time and might miss something here as well.
    If you want, you can send me your current file to [email protected] and I will check the strings you mentioned above.

    Btw, there is a Spanish translation already, but es_ES ad not es_US. You could probably copy many strings from it.

    Thanks

    Thread Starter gfdesign

    (@gfdesign)

    Hey Thomas
    I’ll send an email with my file.
    Thanks for your help and your fantastic plugin.
    Best regards

    Plugin Author Thomas Maier

    (@webzunft)

    Just wanted to let you know that I also found a technical issue with the original Spanish translation. In the next version you will find it corrected. It provides an almost complete Spanish version of Advanced Ads.

    Thomas

    Thread Starter gfdesign

    (@gfdesign)

    Sound great.
    I’ll look forward to it
    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Missing strings in the new .PO files in last updated’ is closed to new replies.