Please Localize "Read More" in slider

(5 posts) (2 voices)

  1. Netipro
    Member

    Hello,

    The read more button is not localized when displayed in slider

    I found it here

    File :[THEME]/lib/functions/sliders.php
    Lines : 217 and 368

    if( ( !empty( $link_url ) ) && ( empty( $disable_read_more ) ) )
    	$out .= '<p><a href="' . $link_url . '"><span>Read More</span></a></p>';

    Yet I've been able to add these two functions in my own functions.php child theme
    - function mysite_scrolling( $slider_type, $slider )
    - function mysite_fading( $slider_type, $slider )

    But put these two functions in a child theme just to be able to localize the "read more" button is a little lot too much. No ?
    So if you could change these 2 functions to use gettext function and set these read more in the pot file it'd be really great :)

    Just a little change

    $out .= '<p><a href="' __( 'Read More', MYSITE_TEXTDOMAIN ) . '"><span>Read More</span></a></p>';

    and an update of the pot file

    Thanks by advance

    Pascal

    Posted 4 months ago #
  2. Elliott
    Support

    Hello Netipro,

    Yes there are a few areas where we need to update the .pot files. We are adding some new shortcodes so we'll most likely update them at the same time in the future.

    Posted 4 months ago #
  3. Netipro
    Member

    No pbm.

    It's just to let you know which ones is quickly updable without a lot of effort but with a lot of final user profit :)

    Thanks

    Posted 4 months ago #
  4. Netipro
    Member

    Also could you please

    1- localize the txt in this function
    ------> mysite_post_meta

    2a- Set target to what we wan't (for me should be _blank by default) for sociables in header
    ------> mysite_header_extras

    2b- The same apply for the post sociable bookmarks icons
    ------> mysite_sociable_bookmarks()

    Thanks

    Posted 4 months ago #
  5. Netipro
    Member

    Hello,

    I wonder if in the last versions some of those have been localized ?

    Thanks by advance

    Posted 1 week ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme