Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Commit

Permalink
Add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahiemS committed Aug 18, 2018
1 parent 5948778 commit ef0c631
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/forum/dist/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ System.register('reflar/koseki/components/PrimaryTagView', ['flarum/Component',
m(
'span',
{ 'class': 'TagTile-topics' },
'Topics'
app.translator.trans('reflar-koseki.forum.topics_title')
)
),
m(
Expand All @@ -290,7 +290,7 @@ System.register('reflar/koseki/components/PrimaryTagView', ['flarum/Component',
m(
'span',
{ 'class': 'TagTile-posts' },
'Posts'
app.translator.trans('reflar-koseki.forum.posts_title')
)
),
m(
Expand Down
4 changes: 2 additions & 2 deletions js/forum/src/components/PrimaryTagView.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export default class PrimaryTagView extends Component {
<a href={app.route('tag', { tags: tag.slug() })}>{tag.name()}</a>
</div>
<div class="col-xs-2 col-lg-1">
<span class="TagTile-topics">Topics</span>
<span class="TagTile-topics">{app.translator.trans('reflar-koseki.forum.topics_title')}</span>
</div>
<div class="col-xs-2 col-lg-1">
<span class="TagTile-posts">Posts</span>
<span class="TagTile-posts">{app.translator.trans('reflar-koseki.forum.posts_title')}</span>
</div>
<div class="col-xs-2 col-lg-2 visible-lg">
<span class="TagTile-last">{app.translator.trans('reflar-koseki.forum.last_post')}</span>
Expand Down
5 changes: 2 additions & 3 deletions resources/less/categories.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
}
.TagTiles {
overflow: visible;
padding-left: 15px;
}
.TagTile-info {
font-size: 11px;
Expand Down Expand Up @@ -95,7 +94,7 @@
}
.TagChild-last {
vertical-align: middle;
padding-left: 20px;
padding-left: 15px;
margin-top: -10px;
}
.TagChild-lastmeta {
Expand All @@ -108,7 +107,7 @@
.TagChild-image {
height: 40px;
text-align: center;
font-size: 16px;
font-size: 20px;
}
.TagChild-info {
vertical-align: middle;
Expand Down
2 changes: 2 additions & 0 deletions resources/locale/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ reflar-koseki:
statistics: Statistics
topics: topic|topics
posts: post|posts
posts_title: Posts
topics_title: Topics

0 comments on commit ef0c631

Please sign in to comment.