Commit 25ed6681 authored by Jakob Moser's avatar Jakob Moser
Browse files

Internationalize landing and pagination

parent 7c65ef32
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
<div class="pagination">
    <div class="older-posts"><?php next_posts_link("« Ältere Posts"); ?></div>
    <div class="newer-posts"><?php previous_posts_link("Neuere Posts »"); ?></div>
    <div class="older-posts"><?php next_posts_link('« '.__('Older posts', 'fscoli-next')); ?></div>
    <div class="newer-posts"><?php previous_posts_link(__('Newer posts', 'fscoli-next').' »'); ?></div>
</div>
+4 −12
Original line number Diff line number Diff line
@@ -30,11 +30,7 @@ get_header();
                    if ( !post_password_required($recent_posts[0]["ID"]) ) {
                        echo substr(wp_strip_all_tags($recent_posts[0]["post_content"]), 0, 250).'...';
                    } else {
                        if (get_bloginfo('language') === 'de-DE') {
                            echo "<p>Den Inhalt des Posts k&ouml;nnt ihr euch nach Eingabe des Passworts durchlesen :)</p>";
                        } else {
                            echo "<p>You can only see the content of this post after entering your password. :)</p>";
                        }
                        echo "<p>".__("You can only see the content of this post after entering your password. :)", "fscoli-next")."</p>";
                    }
                ?>
            </div>
@@ -48,13 +44,9 @@ get_header();

            </ul>
            <div class="more">
                <a href="<?php echo home_url()."/blog/"; ?>"><?php
                    if (get_bloginfo('language') === 'de-DE') {
                        echo "Ältere Posts...";
                    } else {
                        echo "older posts...";
                    }
                ?></a>
                <a href="<?php echo home_url()."/blog/"; ?>">
                    <?php echo __("Older posts", "fscoli-next")."..."; ?>
                </a>
            </div>
        </aside>
    </section>