Support » Plugin: Rich Text Excerpts » French translation updated, and a few other minor things fixed

  • Resolved JohanPirlouit

    (@johanpirlouit)


    Hi bjorsq,

    Thank you for this nice and really helpful plugin with templates that can deal with Excerpts (or that are modified to do it)!

    I found some issues regarding the translation file names: they must have the language code AND the country code, like this: rich-text-excerpts-fr_FR.po. If not, the translation doesn’t work (at least with WP 3.6)…

    So, I did this for the french language and I updated the tranlsations (even the .pot file, for a few more strings).

    I also made two minor changes into rich-text-excerpts.php, at lines:

    #255 to #260: I changed

    add_settings_section(
    	'post-type-options',
    	'Post Types',
    	array( __CLASS__, 'options_section_text' ),
    	'rte'
    );

    to

    add_settings_section(
    	'post-type-options',
    	__('Post Types', 'rich-text-excerpts'),
    	array( __CLASS__, 'options_section_text' ),
    	'rte'
    );

    #339: I changed
    printf('<p class="rte-post-types-inputs"><input class="rte-post-types" type="checkbox" name="rich_text_excerpts_options[supported_post_types][]" id="supported_post_types-%s" value="%s"%s /> <label for="supported_post_types-%s">%s</label></p>', $post_type, $post_type, $chckd, $post_type, $post_type);
    to
    printf('<p class="rte-post-types-inputs"><input class="rte-post-types" type="checkbox" name="rich_text_excerpts_options[supported_post_types][]" id="supported_post_types-%s" value="%s"%s /> <label for="supported_post_types-%s">%s</label></p>', $post_type, $post_type, $chckd, $post_type, __(ucfirst($post_type)));

    I also integrates some CSS rules as told in this topic > http://wordpress.org/support/topic/better-look-with-a-few-extra-lines-of-code

    All are in this ZIP file > http://www.nicolasullern.net/_Upload/rich-text-excerpts_1.2.1_Modded.zip

    A preview of the Settings page in french (with also a custom content type in the Content list) > http://img843.imageshack.us/img843/4472/xvo7.png

    Regards,
    Johan

    http://wordpress.org/plugins/rich-text-excerpts/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter JohanPirlouit

    (@johanpirlouit)

    [off]
    Well, well, well….. I don’t know why the two last code sections didn’t appear correctly….. The CODE tags are here but the PRE tags are missing. Maybe a bug in this forum?

    I’m sorry for that :-/
    [/off]

    Plugin Author bjorsq

    (@bjorsq)

    This is all really helpful – when I get time I’ll pt all these into the next release – I do need to update the translations as well (the pot file is out of date). If you do use Github, please issue a pull request for these mods.

    https://github.com/bjorsq/rich-text-excerpts/

    Plugin Author bjorsq

    (@bjorsq)

    Hi Johan, I’ve put all these modifications into the latest version – they didn’t make it into 1.3 because I had a lot of other stuff changing for that version first. The only difference I can tell is the way the post type names are retrieved on the options page. You were using ucfirst($post_type) here, but I’ve decided instead to use the label for the post type which should be configured (and pre-translated) by the author who creates the post type. Thanks again for all your help with various bugs and especially the French translation, your contribution is much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘French translation updated, and a few other minor things fixed’ is closed to new replies.