Skip to content

Commit

Permalink
[Node] Breadcrumb translation
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Apr 6, 2015
1 parent a6c6cee commit b423fde
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/Clastic/NodeBundle/Controller/NodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function buildForm($data)
protected function resolveDataTitle($data)
{
if (!$data->getId()) {
return 'New';
return $this->get('translator')->trans('node.form.new', array(), 'clastic');
}

return $data->getNode()->getTitle();
Expand Down
34 changes: 18 additions & 16 deletions src/Clastic/NodeBundle/Resources/translations/clastic.en.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
node.form.tab:
general:
label: Generals
field:
title: Title
publication:
label: Publication
field:
available: Available
published_from: From
published_till: Till
author_information:
label: Author information
field:
author: Author
created: Created
node.form:
new: New
tab:
general:
label: Generals
field:
title: Title
publication:
label: Publication
field:
available: Available
published_from: From
published_till: Till
author_information:
label: Author information
field:
author: Author
created: Created
40 changes: 21 additions & 19 deletions src/Clastic/NodeBundle/Resources/translations/clastic.nl.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
node.form.tab:
general:
label: Algemeen
field:
title: Titel
publication:
label: Publicatie
field:
available: Beschikbaar
published_from: Van
published_till: Tot
author_information:
label: Auteursinformatie
field:
author: Auteur
created: Gemaakt op
action:
field:
save: Opslaan
node.form:
new: Nieuw
tab:
general:
label: Algemeen
field:
title: Titel
publication:
label: Publicatie
field:
available: Beschikbaar
published_from: Van
published_till: Tot
author_information:
label: Auteursinformatie
field:
author: Auteur
created: Gemaakt op
action:
field:
save: Opslaan

0 comments on commit b423fde

Please sign in to comment.