WordPress.org

Forums

WP Tiles
[resolved] 1.0 beta (6 posts)

  1. Edwin Brinkhuis
    Member
    Posted 10 months ago #

    Question: is it possible to use the translated strings for 'previous' and ńext' links in multiple pages?

    PS. Great work!

    https://wordpress.org/plugins/wp-tiles/

  2. Mike Martel
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Edwin!

    Thanks :)

    The string for next and previous are translatable, but I haven't added a new .pot file to the beta yet (because I don't want people to waste time translating the plugin while the texts are still changing here and there). I'll do that shortly, so translations can be added easily. Using a program like PoEdit you can do it already, but it requires some know-how of localization in WordPress.

    Alternatively, you can override the pagination function in your theme. If the function wp_tiles_prev_next_nav() exists, WP Tiles will use that one. You can copy over the whole function wp_tiles_prev_next_nav() from wp-tiles-pluggables.php into your (child) theme's functions.php and replace ← Previous and Next → with your translation.

    Cheers,
    Mike

  3. Edwin Brinkhuis
    Member
    Posted 10 months ago #

    Thanks!
    Can you use the already existing strings in the WordPres paging system?

  4. Mike Martel
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Edwin,

    You can by using the following strings for the pagination function as described above:

    __('« Previous') and __('Next »')

    These should be covered by most WP translations.

    Cheers,
    Mike

  5. Edwin Brinkhuis
    Member
    Posted 9 months ago #

    Thanks, I'll do that.
    Will this be in the next version too?

    Cheers

  6. Mike Martel
    Member
    Plugin Author

    Posted 9 months ago #

    Yes! :)

Reply

You must log in to post.

About this Plugin

  • WP Tiles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic