]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Use translation on index page
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Jul 2023 14:34:19 +0000 (14:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Jul 2023 14:34:19 +0000 (14:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/blog/index.html

index 0f940063ed1714ffa0ac6d36cb3daaf83f15efc4..7cd2a93223341c18af5a669e6c4c67cb3e1f9fe3 100644 (file)
@@ -16,7 +16,7 @@
                                <nav class="breadcrumb is-medium" aria-label="breadcrumbs">
                                        <ul>
                                                <li>
-                                                       <a href="/">Home</a>
+                                                       <a href="/">{{ _("Home") }}</a>
                                                </li>
                                                <li class="is-active">
                                                        <a href="#" aria-current="page">{{ _("Blog") }}</a>
@@ -43,7 +43,7 @@
                                                <div class="notification">
                                                        <h4 class="title is-4">
                                                                <a href="/blog/{{ latest_post.slug }}">
-                                                                       Latest: {{ latest_post.title }}
+                                                                       {{ _("Latest: %s") % latest_post.title }}
                                                                </a>
                                                        </h4>
 
@@ -52,7 +52,7 @@
                                                        </div>
 
                                                        <p>
-                                                               <a href="/blog/{{ latest_post.slug }}">Read more</a>
+                                                               <a href="/blog/{{ latest_post.slug }}">{{ _("Read More") }}</a>
                                                        </p>
                                                </div>
                                        {% end %}