Skip to content

Commit

Permalink
fixes in desplaying news and in transaltions
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechGrancow committed Feb 2, 2024
1 parent e7c0cc5 commit 2a5e216
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
3 changes: 1 addition & 2 deletions locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2649,11 +2649,10 @@
"atYourSchool": "an deiner Schule ",
"created": "erstellt",
"by": "von ",
"closingBracket": ")",
"inTheClass": "in der Klasse",
"inTheCourse": "im Kurs",
"inTheTeam": "im Team",
"last": "(zuletzt",
"last": "zuletzt",
"newsNeedContent": "News benötigen Inhalt!",
"newsNeedTitle": "News benötigen einen Titel!",
"processed": "bearbeitet",
Expand Down
3 changes: 1 addition & 2 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2648,12 +2648,11 @@
"atSchool": "at school",
"atYourSchool": "at your school ",
"by": "by ",
"closingBracket": ")",
"created": "created",
"inTheClass": "in the class",
"inTheCourse": "in the course",
"inTheTeam": "in the team",
"last": "(last",
"last": "last",
"newsNeedContent": "News need content!",
"newsNeedTitle": "News need a title!",
"processed": "edited",
Expand Down
3 changes: 1 addition & 2 deletions locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -2649,11 +2649,10 @@
"atYourSchool": "en tu escuela",
"created": "creado",
"by": "por ",
"closingBracket": ")",
"inTheClass": "en la clase",
"inTheCourse": "en el curso",
"inTheTeam": "en el equipo",
"last": "(últimamente",
"last": "últimamente",
"newsNeedContent": "¡Las noticias necesitan contenido!",
"newsNeedTitle": "¡Las noticias necesitan un título!",
"processed": "editado",
Expand Down
3 changes: 1 addition & 2 deletions locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1678,11 +1678,10 @@
"atYourSchool": "у вашій школі ",
"created": "створено",
"by": "",
"closingBracket": ")",
"inTheClass": "в класі",
"inTheCourse": "в курсі",
"inTheTeam": "в команді",
"last": "(останній раз було",
"last": "останній раз було",
"processed": "відредаговано",
"released": "Випущено",
"unpublished": "Не опубліковано",
Expand Down
13 changes: 6 additions & 7 deletions views/news/article.hbs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{{#extend "news/news"}}
{{#content "page"}}
<p>
<small class="text-muted">{{$t "news.text.created" }}</small>
{{#unless isRSS}}
<small class="text-muted">
{{#if news.updater}}
{{$t "news.text.last" }} {{$t "news.text.processed" }} {{$t "news.text.by" }}{{news.updater.firstName}} {{news.updater.lastName}} {{timeFromNow news.updatedAt}} |
{{/if}}
{{#if news.creator}}
{{$t "news.text.by" }}{{news.creator.firstName}} {{news.creator.lastName}}
{{$t "news.text.created" }} {{$t "news.text.by" }}{{news.creator.firstName}} {{news.creator.lastName}}
{{/if}}
{{timeFromNow news.displayAt}}
{{#if news.updater}}
{{$t "news.text.last" }} {{$t "news.text.processed" }} {{$t "news.text.by" }}{{news.updater.firstName}} {{news.updater.lastName}}{{$t "news.text.closingBracket" }}
{{/if}}
{{#if news.target.name}}
{{#ifCond news.targetModel '===' 'teams'}}
{{$t "news.text.inTheTeam" }}
Expand All @@ -25,8 +24,8 @@
<a href="/{{../news.targetModel}}/{{../news.target.id}}">{{../news.target.name}}</a>
{{/ifCond}}
{{/if}}
{{#ifCond @root.currentUser.schoolId '===' news.school.id}} {{$t "news.text.atYourSchool" }}{{else}}
{{$t "news.text.atSchool" }} {{../news.school.name}}
</br>
{{#ifCond @root.currentUser.schoolId '!==' news.school.id}} {{$t "news.text.atSchool" }} {{../news.school.name}}
{{/ifCond}}
</small>
{{/unless}}
Expand Down

0 comments on commit 2a5e216

Please sign in to comment.