• Resolved oekoplatt

    (@oekoplatt)


    Thank You for the plugin.
    I have two questions regarding numbered pagination:

    1. My users speak German and I would use in the numbered pagination the german translations of “Next” and “Previous”. In the file templates/feed/list/numbered-pagination.twig I found ‘% trans “Previous” %’ and ‘% trans “Next” %’ but Using poedit couldn’t find them. My solution is to change these words in the file, but of course I have to do it every time a update is published.
      So I ask you: What is the right solution?
    2. As I have more than one page (actually 10) I would somehow to mark the active page in order that the users have a better orientation.
      How to achive that?

    Than You in advance

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Miguel Muscat

    (@mekku)

    Hi @oekoplatt

    The free PoEdit cannot find those words by default. You’ll need the paid version.

    However, the last version of the plugin that we released a couple of weeks ago (v4.17.3) includes a translation file called default.po. This file has all the words in the plugin, but does not translate any of them.

    You can make a copy of this file in your wp-content/languages/plugins folder and call it wprss-de_DE.po. If you do not have those folders, you can create them yourself. Then open the file in PoEdit and start translating!

    To mark the active page, you can use CSS. Here’s an example that makes the active page bold:

    
    .alignleft:not(.nav-next) {
        font-weight: bold;
    }
    

    You can copy and paste this into the “Additional CSS” section of your site’s Customizer (from Appearance > Customize).

    • This reply was modified 4 years, 9 months ago by Miguel Muscat.
    Thread Starter oekoplatt

    (@oekoplatt)

    Hi Miguel,

    Thank You. I found “Previous” and “Next” in the default.po.

    The styling “.alignleft:not(.nav-next”) {…}” seems to be not the right solution, because it marks not only the active page but also “…” and “Next”.

    Thank You in advance

    Plugin Contributor Miguel Muscat

    (@mekku)

    Looks like you’re right. We’ll need to add a CSS class name to the active page in order to let you style is differently. We’ll add it in the next version.

    Thread Starter oekoplatt

    (@oekoplatt)

    OK, Thank You.
    Temporarly I found such a solution:

    .alignleft:not(.nav-next).alignleft:not(.nav-previous) {
    font-weight: 1000;
    text-decoration: underline; 
    }
    .alignleft a {
    font-weight: inherit;
    text-decoration: inherit; 
    }

    This prevents to mark “next”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘pagination: numbered style’ is closed to new replies.