Skip to content

Commit

Permalink
Use the same translatable label format as other parts of the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Jun 19, 2019
1 parent 1c1205b commit e34ee2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Explorer/ExplorerItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ const ExplorerItem = ({ item, onClick }) => {
href={`${ADMIN_URLS.PAGES}${id}/edit/`}
className="c-explorer__item__action c-explorer__item__action--small"
>
<Icon name="edit" title={STRINGS.EDIT_PAGE.replace('{0}', `'${title}'`)} />
<Icon name="edit" title={STRINGS.EDIT_PAGE.replace('{title}', title)} />
</Button>
{hasChildren ? (
<Button
className="c-explorer__item__action"
onClick={onClick}
href={`${ADMIN_URLS.PAGES}${id}/`}
>
<Icon name="arrow-right" title={STRINGS.VIEW_CHILD_PAGES_OF_PAGE.replace('{0}', `'${title}'`)} />
<Icon name="arrow-right" title={STRINGS.VIEW_CHILD_PAGES_OF_PAGE.replace('{title}', title)} />
</Button>
) : null}
</div>
Expand Down
4 changes: 2 additions & 2 deletions client/tests/stubs.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ global.wagtailConfig = {
BROKEN_LINK: 'Broken link',
MISSING_DOCUMENT: 'Missing document',
CLOSE: 'Close',
EDIT_PAGE: 'Edit {0}',
VIEW_CHILD_PAGES_OF_PAGE: 'View child pages of {0}',
EDIT_PAGE: 'Edit \'{title}\'',
VIEW_CHILD_PAGES_OF_PAGE: 'View child pages of \'{title}\'',
},
};

Expand Down
4 changes: 2 additions & 2 deletions wagtail/admin/templates/wagtailadmin/admin_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
BROKEN_LINK: "{% trans 'Broken link' %}",
MISSING_DOCUMENT: "{% trans 'Missing document' %}",
CLOSE: "{% trans 'Close' %}",
EDIT_PAGE: "{% trans 'Edit {0}' %}",
VIEW_CHILD_PAGES_OF_PAGE: "{% trans 'View child pages of {0}' %}",
EDIT_PAGE: "{% trans 'Edit \'{title}\'' %}",
VIEW_CHILD_PAGES_OF_PAGE: "{% trans 'View child pages of \'{title}\'' %}",

MONTHS: [
"{% trans 'January' %}",
Expand Down

0 comments on commit e34ee2e

Please sign in to comment.