Skip to content

Commit

Permalink
Merge pull request #1678 from bolt/fix/harcoded-action-label
Browse files Browse the repository at this point in the history
Merge move concatenated 'website' string to translation file into master
  • Loading branch information
I-Valchev authored Aug 4, 2020
2 parents 80f4bc6 + 2f8019a commit e31e713
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Entity/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function __call(string $key = '', array $arguments = [])
// If value is field, return getTwigValue so that {{ value }}
// is parsed as html, rather than __toString() which is escaped
$value = $value[$key];

return $value instanceof self ? $value->getTwigValue() : $value;
}

Expand Down
2 changes: 1 addition & 1 deletion templates/_base/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{# Setting the labels and their localisations that are used in the sidebar-menu. #}
{% set labels = {
'about.bolt_documentation': 'about.bolt_documentation'|trans,
'action.view_site': 'action.view'|trans ~ ' website',
'action.view_site': 'action.view'|trans,
'action.create_new': 'action.create_new'|trans,
'general.greeting': 'general.greeting'|trans({'%name%': user_display_name}),
'action.logout': 'action.logout'|trans,
Expand Down
2 changes: 1 addition & 1 deletion translations/messages.en.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@
<unit id="TtmWqX3" name="action.view">
<segment>
<source>action.view</source>
<target>View</target>
<target>View website</target>
</segment>
</unit>
<unit id="I2ykiIZ" name="caption.folders">
Expand Down

0 comments on commit e31e713

Please sign in to comment.