Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
<div class="gh-head-members">
{{#unless @member}}
{{#unless @site.members_invite_only}}
<a class="gh-head-link" href="#/portal/signin" data-portal="signin">Sign in</a>
<a class="gh-head-button" href="#/portal/signup" data-portal="signup">Subscribe</a>
<a class="gh-head-link" href="#/portal/signin" data-portal="signin">{{t "Sign in"}}</a>
<a class="gh-head-button" href="#/portal/signup" data-portal="signup">{{t "Subscribe"}}</a>
{{else}}
<a class="gh-head-button" href="#/portal/signin" data-portal="signin">Sign in</a>
<a class="gh-head-button" href="#/portal/signin" data-portal="signin">{{t "Sign in"}}</a>
{{/unless}}
{{else}}
<a class="gh-head-button" href="#/portal/account" data-portal="account">Account</a>
<a class="gh-head-button" href="#/portal/account" data-portal="account">{{t "Account"}}</a>
{{/unless}}
</div>
{{/unless}}
Expand All @@ -84,7 +84,7 @@
<nav class="site-footer-nav">
{{navigation type="secondary"}}
</nav>
<div class="gh-powered-by"><a href="https://ghost.org/" target="_blank" rel="noopener">Powered by Ghost</a></div>
<div class="gh-powered-by"><a href="https://ghost.org/" target="_blank" rel="noopener">{{t "Powered by Ghost"}}</a></div>
</div>
</footer>

Expand Down
2 changes: 1 addition & 1 deletion error-404.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Keep this template as lightweight as you can!
<section class="error-message">
<h1 class="error-code">{{statusCode}}</h1>
<p class="error-description">{{message}}</p>
<a class="error-link" href="{{@site.url}}">Go to the front page →</a>
<a class="error-link" href="{{@site.url}}">{{t "Go to the front page →"}}</a>
</section>
</div>
</section>
Expand Down
4 changes: 2 additions & 2 deletions error.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ Keep this template as lightweight as you can!
<section class="error-message">
<h1 class="error-code">{{statusCode}}</h1>
<p class="error-description">{{message}}</p>
<a class="error-link" href="{{@site.url}}">Go to the front page →</a>
<a class="error-link" href="{{@site.url}}">{{t "Go to the front page →"}}</a>
</section>

{{#if errorDetails}}
<section class="error-stack">
<h3>Theme errors</h3>
<h3>{{t "Theme errors"}}</h3>
<ul class="error-stack-list">
{{#foreach errorDetails}}
<li>
Expand Down
8 changes: 4 additions & 4 deletions partials/post-card.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ which templates loop over to generate a list of posts. --}}
<div class="post-card-access">
{{> "icons/lock"}}
{{#has visibility="members"}}
Members only
{{t "Members only"}}
{{else}}
Paid-members only
{{t "Paid-members only"}}
{{/has}}
</div>
{{/has}}
Expand All @@ -44,7 +44,7 @@ which templates loop over to generate a list of posts. --}}
<span class="post-card-primary-tag">{{name}}</span>
{{/primary_tag}}
{{#if featured}}
<span class="post-card-featured">{{> "icons/fire"}} Featured</span>
<span class="post-card-featured">{{> "icons/fire"}} {{t "Featured"}}</span>
{{/if}}
</div>
<h2 class="post-card-title">
Expand All @@ -66,7 +66,7 @@ which templates loop over to generate a list of posts. --}}
<footer class="post-card-meta">
<time class="post-card-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMM YYYY"}}</time>
{{#if reading_time}}
<span class="post-card-meta-length">{{reading_time}}</span>
<span class="post-card-meta-length">{{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</span>
{{/if}}
{{#if @site.comments_enabled}}
{{comment_count}}
Expand Down
8 changes: 4 additions & 4 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ into the {body} tag of the default.hbs template --}}
</span>
{{/primary_tag}}
{{#if featured}}
<span class="post-card-featured">{{> "icons/fire"}} Featured</span>
<span class="post-card-featured">{{> "icons/fire"}} {{t "Featured"}}</span>
{{/if}}
</div>

Expand Down Expand Up @@ -51,7 +51,7 @@ into the {body} tag of the default.hbs template --}}
<div class="byline-meta-content">
<time class="byline-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMM YYYY"}}</time>
{{#if reading_time}}
<span class="byline-reading-time"><span class="bull">&bull;</span> {{reading_time}}</span>
<span class="byline-reading-time"><span class="bull">&bull;</span> {{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</span>
{{/if}}
</div>
</div>
Expand Down Expand Up @@ -104,8 +104,8 @@ into the {body} tag of the default.hbs template --}}
<div class="inner">
{{#if @custom.email_signup_text}}<h2 class="footer-cta-title">{{@custom.email_signup_text}}</h2>{{/if}}
<a class="footer-cta-button" href="#/portal" data-portal>
<div class="footer-cta-input">Enter your email</div>
<span>Subscribe</span>
<div class="footer-cta-input">{{t "Enter your email"}}</div>
<span>{{t "Subscribe"}}</span>
</a>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion tag.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{{#if description}}
{{description}}
{{else}}
A collection of {{plural ../pagination.total empty='zero posts' singular='% post' plural='% posts'}}
{{plural ../pagination.total empty=(t "A collection of 0 posts") singular=(t "A collection of 1 post") plural=(t "A collection of {numberOfPosts} posts" numberOfPosts=../pagination.total)}}
{{/if}}
</div>
</div>
Expand Down