diff options
author | Joas Schilling <coding@schilljs.com> | 2017-04-28 10:47:36 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-04-28 10:49:09 +0300 |
commit | c9b412c218d683a697e357704dc249a0f80385e5 (patch) | |
tree | f59b414c3231ec4693d015cc9ae798e06beb2100 /js | |
parent | 6bb43867e360dbde55544efba76f52b740cbbff4 (diff) |
Translate the correct part of the string
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/impersonate_logout.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/js/impersonate_logout.js b/js/impersonate_logout.js index 66d4e8b..eb11463 100644 --- a/js/impersonate_logout.js +++ b/js/impersonate_logout.js @@ -2,14 +2,9 @@ $(document).ready(function () { $("#logout").attr("href","#"); - var text = t( - 'core', - '<a href="{docUrl}">{displayText}</a>', - { - docUrl: OC.generateUrl('apps/files'), - displayText: "Logged in as " + OC.getCurrentUser().uid - } - ); + var text = '<a href="' + OC.generateUrl('apps/files') + '">' + + t('core', 'Logged in as {uid}', {uid: OC.getCurrentUser().uid}) + + '</a>'; OC.Notification.showHtml( text, |