Merge pull request #23 from D3473R/master

Add en, de and de-informal locales
This commit is contained in:
Eduardo Gómez 2019-08-17 18:32:34 +02:00 committed by GitHub
commit ba2199cc1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 125 additions and 29 deletions

View file

@ -51,7 +51,7 @@ into the {body} of the default.hbs template --}}
{{/has}} {{/has}}
<ul class="m-hero-stats"> <ul class="m-hero-stats">
<li> <li>
{{plural ../pagination.total empty="No posts" singular="% post" plural="% posts"}} {{plural ../pagination.total empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}}
</li> </li>
{{#if location}} {{#if location}}
<li>&bull;</li> <li>&bull;</li>

View file

@ -12,10 +12,10 @@ into the {body} of the default.hbs template --}}
<main class="l-fullscreen"> <main class="l-fullscreen">
<section class="l-fullscreen__content" data-aos="fade-up" data-aos-delay="300"> <section class="l-fullscreen__content" data-aos="fade-up" data-aos-delay="300">
<h1 class="m-404-title">404</h1> <h1 class="m-404-title">404</h1>
<p class="m-404-subtitle">Page not found</p> <p class="m-404-subtitle">{{t "Page not found"}}</p>
<p class="m-404-text"> <p class="m-404-text">
Unfortunately the page you were looking for could not be found. {{t "Unfortunately the page you were looking for could not be found."}}
</p> </p>
<a href="{{@site.url}}" class="m-button outlined">Go to the home page</a> <a href="{{@site.url}}" class="m-button outlined">{{t "Go to the home page"}}</a>
</section> </section>
</main> </main>

View file

@ -18,7 +18,7 @@ into the {body} of the default.hbs template --}}
<p class="m-hero-description bigger">{{@site.description}}</p> <p class="m-hero-description bigger">{{@site.description}}</p>
{{/if}} {{/if}}
{{#if @labs.subscribers}} {{#if @labs.subscribers}}
<a href="{{@site.url}}/subscribe" class="m-button filled">Subscribe</a> <a href="{{@site.url}}/subscribe" class="m-button filled">{{t "Subscribe"}}</a>
{{/if}} {{/if}}
</div> </div>
</header> </header>
@ -57,14 +57,14 @@ into the {body} of the default.hbs template --}}
</div> </div>
<div class="m-featured-article__ribbon"> <div class="m-featured-article__ribbon">
<span class="icon-star"></span> <span class="icon-star"></span>
<span>Featured</span> <span>{{t "Featured"}}</span>
</div> </div>
<a href="{{url}}" class="m-featured-article__content"> <a href="{{url}}" class="m-featured-article__content">
<h1 class="m-featured-article__title">{{title}}</h1> <h1 class="m-featured-article__title">{{title}}</h1>
<div class="m-featured-article__timestamp"> <div class="m-featured-article__timestamp">
<span>{{date published_at timeago="true"}}</span> <span>{{date published_at timeago="true"}}</span>
<span>&bull;</span> <span>&bull;</span>
<span>{{reading_time}}</span> <span>{{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</span>
</div> </div>
</a> </a>
</article> </article>

32
locales/de-informal.json Normal file
View file

@ -0,0 +1,32 @@
{
"Page": "Seite",
"of": "von",
"Published with": "Veröffentlicht mit",
"Subscribe": "Abonnieren",
"Subscribe to": "Abonniere",
"Subscribed!": "Abonniert!",
"Subscribe to our newsletter": "Abonniere unseren Newsletter",
"You've successfully subscribed to": "Du hast",
"with the email address": "erfolgreich mit folgender E-Mail Adresse abonniert",
"Email cannot be blank.": "Die E-Mail darf nicht leer sein.",
"Get the latest posts delivered right to your inbox.": "Hole dir die neuesten Beiträge direkt in deinen Posteingang.",
"Stay up to date! Get all the latest & greatest posts delivered straight to your inbox.": "Bleibe auf dem Laufenden! Erhalte die neuesten und besten Beiträge direkt in deinen Posteingang.",
"Recommended for you": "Für dich empfohlen",
"Featured": "Featured",
"Page not found": "Seite nicht gefunden",
"Unfortunately the page you were looking for could not be found.": "Diese Seite wurde leider nicht gefunden.",
"Back to home": "Zurück zur Startseite",
"Go to the home page": "Zur Startseite",
"Recent articles": "Neuste Beiträge",
"No recent articles found :(": "Keine aktuellen Beiträge gefunden :(",
"1 min read": "1 min Lesezeit",
"% min read": "% min Lesezeit",
"No posts": "Keine Beiträge",
"No posts found": "Keine Beiträge gefunden",
"Apparently there are no posts at the moment, check again later.": "Anscheinend gibt es im Moment keine Beiträge, versuche es später noch einmal.",
"1 post": "Ein Beitrag",
"% posts": "% Beiträge",
"Tags": "Tags",
"with this tag": "mit diesem Tag",
"No tags found :(": "Keine Tags gefunden :("
}

32
locales/de.json Normal file
View file

@ -0,0 +1,32 @@
{
"Page": "Seite",
"of": "von",
"Published with": "Veröffentlicht mit",
"Subscribe": "Abonnieren",
"Subscribe to": "Abonnieren Sie",
"Subscribed!": "Abonniert!",
"Subscribe to our newsletter": "Abonnieren Sie unseren Newsletter",
"You've successfully subscribed to": "Sie haben",
"with the email address": "erfolgreich mit folgender E-Mail Adresse abonniert",
"Email cannot be blank.": "Die E-Mail darf nicht leer sein.",
"Get the latest posts delivered right to your inbox.": "Holen Sie sich die neuesten Beiträge direkt in Ihren Posteingang.",
"Stay up to date! Get all the latest & greatest posts delivered straight to your inbox.": "Bleiben Sie auf dem Laufenden! Erhalten Sie die neuesten und besten Beiträge direkt in Ihren Posteingang.",
"Recommended for you": "Für sie empfohlen",
"Featured": "Featured",
"Page not found": "Seite nicht gefunden",
"Unfortunately the page you were looking for could not be found.": "Diese Seite wurde leider nicht gefunden.",
"Back to home": "Zurück zur Startseite",
"Go to the home page": "Zur Startseite",
"Recent articles": "Neuste Beiträge",
"No recent articles found :(": "Keine aktuellen Beiträge gefunden :(",
"1 min read": "1 min Lesezeit",
"% min read": "% min Lesezeit",
"No posts": "Keine Beiträge",
"No posts found": "Keine Beiträge gefunden",
"Apparently there are no posts at the moment, check again later.": "Anscheinend gibt es im Moment keine Beiträge, versuchen Sie es später noch einmal.",
"1 post": "Ein Beitrag",
"% posts": "% Beiträge",
"Tags": "Tags",
"with this tag": "mit diesem Tag",
"No tags found :(": "Keine Tags gefunden :("
}

32
locales/en.json Normal file
View file

@ -0,0 +1,32 @@
{
"Page": "Page",
"of": "of",
"Published with": "Published with",
"Subscribe": "Subscribe",
"Subscribe to": "Subscribe to",
"Subscribed!": "Subscribed!",
"Subscribe to our newsletter": "Subscribe to our newsletter",
"You've successfully subscribed to": "You've successfully subscribed to",
"with the email address": "with the email address",
"Email cannot be blank.": "Email cannot be blank.",
"Get the latest posts delivered right to your inbox.": "Get the latest posts delivered right to your inbox.",
"Stay up to date! Get all the latest & greatest posts delivered straight to your inbox.": "Stay up to date! Get all the latest & greatest posts delivered straight to your inbox.",
"Recommended for you": "Recommended for you",
"Featured": "Featured",
"Page not found": "Page not found",
"Unfortunately the page you were looking for could not be found.": "Unfortunately the page you were looking for could not be found.",
"Back to home": "Back to home",
"Go to the home page": "Go to the home page",
"Recent articles": "Recent articles",
"No recent articles found :(": "No recent articles found :(",
"1 min read": "1 min read",
"% min read": "% min read",
"No posts": "No posts",
"No posts found": "No posts found",
"Apparently there are no posts at the moment, check again later.": "Apparently there are no posts at the moment, check again later.",
"1 post": "One post",
"% posts": "% posts",
"Tags": "Tags",
"with this tag": "with this tag",
"No tags found :(": "No tags found :("
}

View file

@ -42,7 +42,7 @@ into the {body} of the default.hbs template --}}
</a> </a>
<div class="m-article-card__author-stats"> <div class="m-article-card__author-stats">
<span> <span>
{{plural count.posts empty="No posts" singular="% post" plural="% posts"}} {{plural count.posts empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}}
</span> </span>
{{#has any="twitter, facebook, website"}} {{#has any="twitter, facebook, website"}}
<ul class="m-article-card__social"> <ul class="m-article-card__social">

View file

@ -7,7 +7,7 @@ This footer template is shared across all the pages.
<p class="m-footer-copyright"> <p class="m-footer-copyright">
<span>{{@site.title}} &copy; {{date format="YYYY"}}</span> <span>{{@site.title}} &copy; {{date format="YYYY"}}</span>
<span>&nbsp; &bull; &nbsp;</span> <span>&nbsp; &bull; &nbsp;</span>
<span>Published with <a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a></span> <span>{{t "Published with"}} <a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a></span>
</p> </p>
<nav class="m-footer-social"> <nav class="m-footer-social">
{{#if @site.facebook}} {{#if @site.facebook}}

View file

@ -38,7 +38,7 @@
<div class="m-article-card__timestamp"> <div class="m-article-card__timestamp">
<span>{{date published_at timeago="true"}}</span> <span>{{date published_at timeago="true"}}</span>
<span>&bull;</span> <span>&bull;</span>
<span>{{reading_time}}</span> <span>{{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</span>
</div> </div>
</a> </a>
</div> </div>
@ -48,9 +48,9 @@
{{/is}} {{/is}}
{{else}} {{else}}
<header class="m-heading no-margin"> <header class="m-heading no-margin">
<h3>No posts found</h3> <h3>{{t "No posts found"}}</h3>
<p> <p>
Apparently there are no posts at the moment, check again later. {{t "Apparently there are no posts at the moment, check again later."}}
</p> </p>
</header> </header>
{{/foreach}} {{/foreach}}

View file

@ -23,7 +23,7 @@ Also it includes the big submenu.
<div class="m-submenu js-submenu"> <div class="m-submenu js-submenu">
<div class="l-wrapper in-submenu"> <div class="l-wrapper in-submenu">
<section class="m-recent-articles"> <section class="m-recent-articles">
<h3 class="m-submenu-title in-recent-articles">Recent articles</h3> <h3 class="m-submenu-title in-recent-articles">{{t "Recent articles"}}</h3>
<div class="js-recent-articles"> <div class="js-recent-articles">
{{#get "posts" limit="4" order="published_at desc"}} {{#get "posts" limit="4" order="published_at desc"}}
{{#foreach posts}} {{#foreach posts}}
@ -37,13 +37,13 @@ Also it includes the big submenu.
</a> </a>
</div> </div>
{{else}} {{else}}
<div class="m-no-found in-recent-articles">No recent articles found :(</div> <div class="m-no-found in-recent-articles">{{t "No recent articles found :("}}</div>
{{/foreach}} {{/foreach}}
{{/get}} {{/get}}
</div> </div>
</section> </section>
<section class="m-tags"> <section class="m-tags">
<h3 class="m-submenu-title">Tags</h3> <h3 class="m-submenu-title">{{t "Tags"}}</h3>
{{#get "tags" limit="10"}} {{#get "tags" limit="10"}}
<ul> <ul>
{{#foreach tags}} {{#foreach tags}}
@ -51,7 +51,7 @@ Also it includes the big submenu.
<a href="{{url}}">{{name}}</a> <a href="{{url}}">{{name}}</a>
</li> </li>
{{else}} {{else}}
<li class="m-no-found">No tags found :(</li> <li class="m-no-found">{{t "No tags found :("}}</li>
{{/foreach}} {{/foreach}}
</ul> </ul>
{{/get}} {{/get}}

View file

@ -9,7 +9,7 @@ This pagination template is used to navigate through newer and older articles.
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
</a> </a>
{{/if}} {{/if}}
<span class="m-pagination__text">Page {{page}} of {{pages}}</span> <span class="m-pagination__text">{{t "Page"}} {{page}} {{t "of"}} {{pages}}</span>
{{#if next}} {{#if next}}
<a href="{{page_url next}}" class="m-icon-button filled in-pagination-right" aria-label="Older posts"> <a href="{{page_url next}}" class="m-icon-button filled in-pagination-right" aria-label="Older posts">
<span class="icon-arrow-right"></span> <span class="icon-arrow-right"></span>

View file

@ -10,11 +10,11 @@ You need to enable the subscription feature first.
<label for="{{input_id}}" class="sr-only">{{placeholder}}</label> <label for="{{input_id}}" class="sr-only">{{placeholder}}</label>
{{input_email id=input_id class=input_class placeholder=placeholder value=email autofocus=autofocus}} {{input_email id=input_id class=input_class placeholder=placeholder value=email autofocus=autofocus}}
</fieldset> </fieldset>
<button id="{{button_id}}" class="{{button_class}}" type="submit">Subscribe</button> <button id="{{button_id}}" class="{{button_class}}" type="submit">{{t "Subscribe"}}</button>
{{script}} {{script}}
{{#if error}} {{#if error}}
<p class="m-small-text in-subscribe-page">Email cannot be blank.</p> <p class="m-small-text in-subscribe-page">{{t "Email cannot be blank."}}</p>
{{/if}} {{/if}}
</form> </form>

View file

@ -64,9 +64,9 @@ into the {body} of the default.hbs template --}}
<div class="l-wrapper in-post"> <div class="l-wrapper in-post">
<div class="m-subscribe-section__content"> <div class="m-subscribe-section__content">
<div class="m-subscribe-section__text"> <div class="m-subscribe-section__text">
<h4 class="m-subscribe-section__title">Subscribe to our newsletter</h4> <h4 class="m-subscribe-section__title">{{t "Subscribe to our newsletter"}}</h4>
<p class="m-subscribe-section__description"> <p class="m-subscribe-section__description">
Get the latest posts delivered right to your inbox. {{t "Get the latest posts delivered right to your inbox."}}
</p> </p>
</div> </div>
<div class="m-subscribe-section__form"> <div class="m-subscribe-section__form">
@ -168,7 +168,7 @@ into the {body} of the default.hbs template --}}
{{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}" include="tags,authors" as |related|}} {{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}" include="tags,authors" as |related|}}
<section class="m-recommended"> <section class="m-recommended">
<div class="l-wrapper in-recommended"> <div class="l-wrapper in-recommended">
<h3 class="m-section-title in-recommended">Recommended for you</h3> <h3 class="m-section-title in-recommended">{{t "Recommended for you"}}</h3>
<div class="m-recommended-articles"> <div class="m-recommended-articles">
<div class="m-recommended-slider js-recommended-articles"> <div class="m-recommended-slider js-recommended-articles">
{{!-- The tag below iterates over all the related posts --}} {{!-- The tag below iterates over all the related posts --}}

View file

@ -9,7 +9,7 @@ into the {body} of the default.hbs template --}}
<div class="l-wrapper" data-aos="fade-down"> <div class="l-wrapper" data-aos="fade-down">
<a href="{{@site.url}}" class="m-back"> <a href="{{@site.url}}" class="m-back">
<span class="m-back__icon icon-arrow-left"></span> <span class="m-back__icon icon-arrow-left"></span>
<span>Back to home</span> <span>{{t "Back to home"}}</span>
</a> </a>
</div> </div>
@ -18,9 +18,9 @@ into the {body} of the default.hbs template --}}
{{^if success}} {{^if success}}
<div> <div>
<header class="m-heading in-subscribe-page"> <header class="m-heading in-subscribe-page">
<h1 class="m-heading__title">Subscribe to {{@site.title}}</h1> <h1 class="m-heading__title">{{t "Subscribe to"}} {{@site.title}}</h1>
<p class="m-heading__description in-subscribe-page"> <p class="m-heading__description in-subscribe-page">
Stay up to date! Get all the latest & greatest posts delivered straight to your inbox. {{t "Stay up to date! Get all the latest & greatest posts delivered straight to your inbox."}}
</p> </p>
</header> </header>
{{subscribe_form {{subscribe_form
@ -37,12 +37,12 @@ into the {body} of the default.hbs template --}}
{{else}} {{else}}
<div> <div>
<header class="m-heading in-subscribe-page"> <header class="m-heading in-subscribe-page">
<h1 class="m-heading__title">Subscribed!</h1> <h1 class="m-heading__title">{{t "Subscribed!"}}</h1>
<p class="m-heading__description in-subscribe-page"> <p class="m-heading__description in-subscribe-page">
You've successfully subscribed to <strong>{{@site.title}}</strong> with the email address <strong>{{email}}</strong> {{t "You've successfully subscribed to"}} <strong>{{@site.title}}</strong> {{t "with the email address"}} <strong>{{email}}</strong>
</p> </p>
</header> </header>
<a href="{{@site.url}}" class="m-button outlined">Back to home</a> <a href="{{@site.url}}" class="m-button outlined">{{t "Back to home"}}</a>
</div> </div>
{{/if}} {{/if}}
</section> </section>

View file

@ -16,7 +16,7 @@ into the {body} of the default.hbs template --}}
<div class="m-hero__content" data-aos="fade-down"> <div class="m-hero__content" data-aos="fade-down">
<h1 class="m-hero-title bigger">{{name}}</h1> <h1 class="m-hero-title bigger">{{name}}</h1>
<p class="m-heading__description"> <p class="m-heading__description">
{{plural ../pagination.total empty="No posts" singular="% post" plural="% posts"}} with this tag {{plural ../pagination.total empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}} {{t "with this tag"}}
</p> </p>
</div> </div>
</header> </header>