From 08f21346c1e74585acf86bf1419f4727282c0f0e Mon Sep 17 00:00:00 2001 From: McMatts Date: Tue, 1 Mar 2022 22:40:51 -0500 Subject: [PATCH] [WIP] i18n constant strings --- gui/app/constants/constants.js | 40 ------------------- gui/app/pods/auth/login/template.hbs | 2 +- gui/app/pods/folder/index/template.hbs | 2 +- gui/app/pods/folders/template.hbs | 2 +- gui/app/pods/theming/template.hbs | 22 +++++----- .../components/customize/auth-settings.hbs | 2 +- .../components/customize/backup-restore.hbs | 2 +- .../components/customize/general-settings.hbs | 2 +- .../customize/integration-settings.hbs | 4 +- .../components/customize/license-key.hbs | 2 +- .../components/customize/space-admin.hbs | 2 +- .../components/customize/space-labels.hbs | 2 +- .../components/customize/user-admin.hbs | 2 +- .../components/customize/user-groups.hbs | 14 +++---- .../components/customize/user-list.hbs | 14 +++---- .../components/document/content-linker.hbs | 4 +- .../components/document/document-toolbar.hbs | 8 ++-- .../components/document/page-heading.hbs | 8 ++-- .../document/section-attachment.hbs | 2 +- .../components/document/settings-category.hbs | 2 +- .../components/document/settings-general.hbs | 2 +- .../components/document/settings-tag.hbs | 2 +- .../document/sidebar-attachment.hbs | 2 +- .../components/document/view-revision.hbs | 4 +- .../components/folder/documents-list.hbs | 2 +- .../components/folder/settings-category.hbs | 8 ++-- .../components/folder/settings-delete.hbs | 2 +- .../components/folder/settings-general.hbs | 2 +- .../folder/settings-permissions.hbs | 8 ++-- .../components/folder/space-toolbar.hbs | 2 +- .../components/layout/master-navigation.hbs | 2 +- .../components/onboard/share-folder.hbs | 4 +- .../components/search/search-results.hbs | 2 +- .../components/search/search-view.hbs | 2 +- .../components/section/jira/type-editor.hbs | 2 +- .../section/tabular/type-editor.hbs | 2 +- .../components/user/forgot-password.hbs | 2 +- .../components/user/password-reset.hbs | 2 +- .../components/user/user-profile.hbs | 2 +- gui/public/i18n/en-US.json | 37 ++++++++++++++++- 40 files changed, 112 insertions(+), 117 deletions(-) diff --git a/gui/app/constants/constants.js b/gui/app/constants/constants.js index 4640593a..17298509 100644 --- a/gui/app/constants/constants.js +++ b/gui/app/constants/constants.js @@ -306,46 +306,6 @@ let constants = EmberObject.extend({ Yellow: 'yellow', Gray: 'gray' }, - - Label: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects - Close: 'Close', - Copy: 'Copy', - Delete: 'Delete', - Duplicate: 'Duplicate', - Edit: 'Edit', - Export: 'Export', - File: 'File', - Import: 'Import', - Insert: 'Insert', - Invite: 'Invite', - Join: 'Join', - Leave: 'Leave', - Login: 'Login', - Move: 'Move', - Next: 'Next', - OK: 'OK', - Preview: 'Preview', - Print: 'Print', - Publish: 'Publish', - Reject: 'Reject', - Remove: 'Remove', - Reply: 'Reply', - Reset: 'Reset', - Restore: 'Restore', - Request: 'Request', - Save: 'Save', - Search: 'Search', - Send: 'Send', - Share: 'Share', - SignIn: 'Sign In', - Sort: 'Sort', - Space: 'Space', - Spaces: 'Spaces', - Unassigned: 'Unassigned', - Update: 'Update', - Upload: 'Upload', - Version: 'Version' - } }); export default { constants }; diff --git a/gui/app/pods/auth/login/template.hbs b/gui/app/pods/auth/login/template.hbs index 6f42d6a8..860148fc 100644 --- a/gui/app/pods/auth/login/template.hbs +++ b/gui/app/pods/auth/login/template.hbs @@ -27,7 +27,7 @@ {{input type="password" value=password id="authPassword" class="form-control" autocomplete="current-password"}} {{/if}} - {{ui/ui-button color=constants.Color.Green light=true label=constants.Label.SignIn onClick=(action "login")}} + {{ui/ui-button color=constants.Color.Green light=true label=(localize 'signin') onClick=(action "login")}}
Invalid credentials
diff --git a/gui/app/pods/folder/index/template.hbs b/gui/app/pods/folder/index/template.hbs index 526b84db..198ec2ac 100644 --- a/gui/app/pods/folder/index/template.hbs +++ b/gui/app/pods/folder/index/template.hbs @@ -3,7 +3,7 @@
{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}} {{ui/ui-toolbar-button themed=true uppercase=true - icon=constants.Icon.ArrowLeft label=constants.Label.Spaces onClick=(action "onBack")}} + icon=constants.Icon.ArrowLeft label=(localize 'spaces') onClick=(action "onBack")}} {{/ui/ui-toolbar}}
diff --git a/gui/app/pods/folders/template.hbs b/gui/app/pods/folders/template.hbs index 923f1696..8169caf6 100644 --- a/gui/app/pods/folders/template.hbs +++ b/gui/app/pods/folders/template.hbs @@ -7,7 +7,7 @@ {{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}} {{#if session.isEditor}} {{ui/ui-toolbar-button icon=constants.Icon.Plus color=constants.Color.Green - label=constants.Label.Space onClick=(action "onShowModal")}} + label=(localize 'space') onClick=(action "onShowModal")}} {{ui/ui-toolbar-divider}} {{/if}} {{#if session.isAdmin}} diff --git a/gui/app/pods/theming/template.hbs b/gui/app/pods/theming/template.hbs index a386a9b6..0050476b 100644 --- a/gui/app/pods/theming/template.hbs +++ b/gui/app/pods/theming/template.hbs @@ -6,39 +6,39 @@

Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day, going forward, a new normal that has evolved from generation X is on the runway heading towards a streamlined cloud solution. User generated content in real-time will have multiple touchpoints for offshoring.

{{/layout/master-sidebar}} {{#layout/master-content}} - {{ui/ui-button themed=true label=constants.Label.Save onClick=(action "onButtonClick" 1)}} + {{ui/ui-button themed=true label=(localize 'save') onClick=(action "onButtonClick" 1)}} {{ui/ui-button-gap}} - {{ui/ui-button themed=true light=true label=constants.Label.Update onClick=(action "onButtonClick" 2)}} + {{ui/ui-button themed=true light=true label=(localize 'update') onClick=(action "onButtonClick" 2)}} {{ui/ui-button-gap}}

- {{ui/ui-button color=constants.Color.Green label=constants.Label.Save onClick=(action "onSuccess")}} + {{ui/ui-button color=constants.Color.Green label=(localize 'save') onClick=(action "onSuccess")}} {{ui/ui-button-gap}} - {{ui/ui-button color=constants.Color.Yellow label=constants.Label.Update onClick=(action "onInfo")}} + {{ui/ui-button color=constants.Color.Yellow label=(localize 'update') onClick=(action "onInfo")}} {{ui/ui-button-gap}} {{ui/ui-button color=constants.Color.Gray label=(localize 'cancel') onClick=(action "onWarn")}} {{ui/ui-button-gap}} - {{ui/ui-button color=constants.Color.Red label=constants.Label.Delete onClick=(action "onError")}} + {{ui/ui-button color=constants.Color.Red label=(localize 'delete') onClick=(action "onError")}} {{ui/ui-button-gap}}

- {{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Save onClick=(action "onSuccess")}} + {{ui/ui-button color=constants.Color.Green light=true label=(localize 'save') onClick=(action "onSuccess")}} {{ui/ui-button-gap}} - {{ui/ui-button color=constants.Color.Yellow light=true label=constants.Label.Update onClick=(action "onInfo")}} + {{ui/ui-button color=constants.Color.Yellow light=true label=(localize 'update') onClick=(action "onInfo")}} {{ui/ui-button-gap}} {{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') onClick=(action "onWarn")}} {{ui/ui-button-gap}} - {{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Delete onClick=(action "onError")}} + {{ui/ui-button color=constants.Color.Red light=true label=(localize 'delete') onClick=(action "onError")}} {{ui/ui-button-gap}}

- {{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Plus label=constants.Label.Save onClick=(action "onSuccess")}} + {{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Plus label=(localize 'save') onClick=(action "onSuccess")}} {{ui/ui-button-gap}} - {{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Settings label=constants.Label.Update onClick=(action "onInfo")}} + {{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Settings label=(localize 'update') onClick=(action "onInfo")}} {{ui/ui-button-gap}} {{ui/ui-button color=constants.Color.Gray light=true icon=constants.Icon.Print label=(localize 'cancel') onClick=(action "onWarn")}} {{ui/ui-button-gap}} - {{ui/ui-button color=constants.Color.Red light=true icon=constants.Icon.Delete label=constants.Label.Delete onClick=(action "onError")}} + {{ui/ui-button color=constants.Color.Red light=true icon=constants.Icon.Delete label=(localize 'delete') onClick=(action "onError")}} {{ui/ui-button-gap}}

diff --git a/gui/app/templates/components/customize/auth-settings.hbs b/gui/app/templates/components/customize/auth-settings.hbs index c6cecf98..6454397f 100644 --- a/gui/app/templates/components/customize/auth-settings.hbs +++ b/gui/app/templates/components/customize/auth-settings.hbs @@ -186,7 +186,7 @@ e.g. http://Documize URL/auth/cas
{{/if}} - {{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Locked label=constants.Label.Activate onClick=(action "onSave")}} + {{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Locked label=(localize 'activate') onClick=(action "onSave")}} {{#if (gt keycloakFailure.length 0)}} diff --git a/gui/app/templates/components/customize/backup-restore.hbs b/gui/app/templates/components/customize/backup-restore.hbs index 9ae7001c..f8caf4a0 100644 --- a/gui/app/templates/components/customize/backup-restore.hbs +++ b/gui/app/templates/components/customize/backup-restore.hbs @@ -85,7 +85,7 @@ diff --git a/gui/app/templates/components/customize/general-settings.hbs b/gui/app/templates/components/customize/general-settings.hbs index b8144045..734579ef 100644 --- a/gui/app/templates/components/customize/general-settings.hbs +++ b/gui/app/templates/components/customize/general-settings.hbs @@ -60,5 +60,5 @@ How many tags can be assigned to a document (between 3 and 10 tags) - {{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Settings label=constants.Label.Save onClick=(action "save")}} + {{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Settings label=(localize 'save') onClick=(action "save")}} diff --git a/gui/app/templates/components/customize/integration-settings.hbs b/gui/app/templates/components/customize/integration-settings.hbs index be917a2d..c9604a2d 100644 --- a/gui/app/templates/components/customize/integration-settings.hbs +++ b/gui/app/templates/components/customize/integration-settings.hbs @@ -28,6 +28,6 @@ {{/if}} - {{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Integrations label=constants.Label.Save onClick=(action "onSave")}} + {{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Integrations label=(localize 'save') onClick=(action "onSave")}} - \ No newline at end of file + diff --git a/gui/app/templates/components/customize/license-key.hbs b/gui/app/templates/components/customize/license-key.hbs index ced30f05..33a7bbc8 100644 --- a/gui/app/templates/components/customize/license-key.hbs +++ b/gui/app/templates/components/customize/license-key.hbs @@ -143,7 +143,7 @@

If you haven"t already, please run a backup to download all your data.

diff --git a/gui/app/templates/components/customize/space-admin.hbs b/gui/app/templates/components/customize/space-admin.hbs index 3ae9659b..1120417b 100644 --- a/gui/app/templates/components/customize/space-admin.hbs +++ b/gui/app/templates/components/customize/space-admin.hbs @@ -50,7 +50,7 @@ diff --git a/gui/app/templates/components/customize/space-labels.hbs b/gui/app/templates/components/customize/space-labels.hbs index c5f50cfd..d9352d42 100644 --- a/gui/app/templates/components/customize/space-labels.hbs +++ b/gui/app/templates/components/customize/space-labels.hbs @@ -67,7 +67,7 @@ diff --git a/gui/app/templates/components/customize/user-admin.hbs b/gui/app/templates/components/customize/user-admin.hbs index 6e8bd10c..0fe365be 100644 --- a/gui/app/templates/components/customize/user-admin.hbs +++ b/gui/app/templates/components/customize/user-admin.hbs @@ -35,7 +35,7 @@ diff --git a/gui/app/templates/components/customize/user-groups.hbs b/gui/app/templates/components/customize/user-groups.hbs index 51296358..af7bc696 100644 --- a/gui/app/templates/components/customize/user-groups.hbs +++ b/gui/app/templates/components/customize/user-groups.hbs @@ -18,7 +18,7 @@ @@ -63,9 +63,9 @@ @@ -89,9 +89,9 @@ @@ -116,7 +116,7 @@ @@ -164,7 +164,7 @@ diff --git a/gui/app/templates/components/customize/user-list.hbs b/gui/app/templates/components/customize/user-list.hbs index 8988c2bb..4875127d 100644 --- a/gui/app/templates/components/customize/user-list.hbs +++ b/gui/app/templates/components/customize/user-list.hbs @@ -202,9 +202,9 @@ @@ -218,9 +218,9 @@

Are you sure you want to delete selected users?

@@ -251,9 +251,9 @@
{{#if group.isMember}} - {{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Leave onClick=(action "onLeaveGroup" group.id)}} + {{ui/ui-button color=constants.Color.Red light=true label=(localize 'leave') onClick=(action "onLeaveGroup" group.id)}} {{else}} - {{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Join onClick=(action "onJoinGroup" group.id)}} + {{ui/ui-button color=constants.Color.Green light=true label=(localize 'join') onClick=(action "onJoinGroup" group.id)}} {{/if}}
@@ -263,7 +263,7 @@ {{/each}} diff --git a/gui/app/templates/components/document/content-linker.hbs b/gui/app/templates/components/document/content-linker.hbs index f6a617b5..a7b04cd2 100644 --- a/gui/app/templates/components/document/content-linker.hbs +++ b/gui/app/templates/components/document/content-linker.hbs @@ -101,9 +101,9 @@ {{/if}} diff --git a/gui/app/templates/components/document/document-toolbar.hbs b/gui/app/templates/components/document/document-toolbar.hbs index d614d839..36e433d0 100644 --- a/gui/app/templates/components/document/document-toolbar.hbs +++ b/gui/app/templates/components/document/document-toolbar.hbs @@ -89,7 +89,7 @@ @@ -110,7 +110,7 @@ @@ -126,7 +126,7 @@ @@ -148,7 +148,7 @@ diff --git a/gui/app/templates/components/document/page-heading.hbs b/gui/app/templates/components/document/page-heading.hbs index 06d75c58..a7e4cfaf 100644 --- a/gui/app/templates/components/document/page-heading.hbs +++ b/gui/app/templates/components/document/page-heading.hbs @@ -84,7 +84,7 @@ @@ -111,7 +111,7 @@ @@ -137,7 +137,7 @@ @@ -164,7 +164,7 @@ diff --git a/gui/app/templates/components/document/section-attachment.hbs b/gui/app/templates/components/document/section-attachment.hbs index 33e66285..e6a45e2e 100644 --- a/gui/app/templates/components/document/section-attachment.hbs +++ b/gui/app/templates/components/document/section-attachment.hbs @@ -20,7 +20,7 @@ {{ui/ui-button light=false - label=constants.Label.Delete + label=(localize 'delete') color=constants.Color.Red onClick=(action "onDelete" file)}} diff --git a/gui/app/templates/components/document/settings-category.hbs b/gui/app/templates/components/document/settings-category.hbs index a4a9ce8d..187f185e 100644 --- a/gui/app/templates/components/document/settings-category.hbs +++ b/gui/app/templates/components/document/settings-category.hbs @@ -11,7 +11,7 @@ {{ui/ui-button color=constants.Color.Green icon=constants.Icon.Category - label=constants.Label.Save + label=(localize 'save') light=true onClick=(action "onSave")}} {{else}} diff --git a/gui/app/templates/components/document/settings-general.hbs b/gui/app/templates/components/document/settings-general.hbs index 38220c67..8741b1c4 100644 --- a/gui/app/templates/components/document/settings-general.hbs +++ b/gui/app/templates/components/document/settings-general.hbs @@ -19,7 +19,7 @@ {{ui/ui-button color=constants.Color.Green icon=constants.Icon.Settings - label=constants.Label.Save + label=(localize 'save') light=true onClick=(action "onSave")}} diff --git a/gui/app/templates/components/document/settings-tag.hbs b/gui/app/templates/components/document/settings-tag.hbs index cbc7c376..b5a5cf9f 100644 --- a/gui/app/templates/components/document/settings-tag.hbs +++ b/gui/app/templates/components/document/settings-tag.hbs @@ -20,6 +20,6 @@ {{ui/ui-button color=constants.Color.Green icon=constants.Icon.Tag - label=constants.Label.Save + label=(localize 'save') light=true onClick=(action "onSave")}} diff --git a/gui/app/templates/components/document/sidebar-attachment.hbs b/gui/app/templates/components/document/sidebar-attachment.hbs index 4421c295..5142f7b7 100644 --- a/gui/app/templates/components/document/sidebar-attachment.hbs +++ b/gui/app/templates/components/document/sidebar-attachment.hbs @@ -18,7 +18,7 @@ {{ui/ui-button light=false - label=constants.Label.Delete + label=(localize 'delete') color=constants.Color.Red onClick=(action "onDelete" file)}} diff --git a/gui/app/templates/components/document/view-revision.hbs b/gui/app/templates/components/document/view-revision.hbs index a357010e..bf8aa249 100644 --- a/gui/app/templates/components/document/view-revision.hbs +++ b/gui/app/templates/components/document/view-revision.hbs @@ -15,7 +15,7 @@ {{#if canRollback}} - {{ui/ui-button color=constants.Color.Red icon=constants.Icon.TimeBack light=true label=constants.Label.Restore onClick=(action "onShowModal")}} + {{ui/ui-button color=constants.Color.Red icon=constants.Icon.TimeBack light=true label=(localize 'restore') onClick=(action "onShowModal")}} {{/if}} diff --git a/gui/app/templates/components/folder/documents-list.hbs b/gui/app/templates/components/folder/documents-list.hbs index ab901312..31f8e59b 100644 --- a/gui/app/templates/components/folder/documents-list.hbs +++ b/gui/app/templates/components/folder/documents-list.hbs @@ -49,7 +49,7 @@ {{ui/ui-button light=true color=constants.Color.Yellow - label=constants.Label.Sort + label=(localize 'sort') onClick=(action "onSortBy" attacher)}} {{/attach-popover}} diff --git a/gui/app/templates/components/folder/settings-category.hbs b/gui/app/templates/components/folder/settings-category.hbs index a7198422..c31562a6 100644 --- a/gui/app/templates/components/folder/settings-category.hbs +++ b/gui/app/templates/components/folder/settings-category.hbs @@ -65,9 +65,9 @@ @@ -81,9 +81,9 @@

Are you sure you want to delete this category?

diff --git a/gui/app/templates/components/folder/settings-delete.hbs b/gui/app/templates/components/folder/settings-delete.hbs index 07f6e23a..83675430 100644 --- a/gui/app/templates/components/folder/settings-delete.hbs +++ b/gui/app/templates/components/folder/settings-delete.hbs @@ -14,6 +14,6 @@ {{ui/ui-button color=constants.Color.Red icon=constants.Icon.Delete - label=constants.Label.Delete + label=(localize 'delete') light=true onClick=(action "onDelete")}} diff --git a/gui/app/templates/components/folder/settings-general.hbs b/gui/app/templates/components/folder/settings-general.hbs index 3b8aec22..56b61bfa 100644 --- a/gui/app/templates/components/folder/settings-general.hbs +++ b/gui/app/templates/components/folder/settings-general.hbs @@ -65,6 +65,6 @@ {{ui/ui-button color=constants.Color.Green icon=constants.Icon.Settings - label=constants.Label.Save + label=(localize 'save') light=true onClick=(action "onSave")}} diff --git a/gui/app/templates/components/folder/settings-permissions.hbs b/gui/app/templates/components/folder/settings-permissions.hbs index e3132cce..a99b0ac7 100644 --- a/gui/app/templates/components/folder/settings-permissions.hbs +++ b/gui/app/templates/components/folder/settings-permissions.hbs @@ -144,7 +144,7 @@ {{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Locked - label=constants.Label.Save onClick=(action "onSave")}} + label=(localize 'save') onClick=(action "onSave")}} @@ -199,9 +199,9 @@ diff --git a/gui/app/templates/components/folder/space-toolbar.hbs b/gui/app/templates/components/folder/space-toolbar.hbs index ed5d752d..db42eefe 100644 --- a/gui/app/templates/components/folder/space-toolbar.hbs +++ b/gui/app/templates/components/folder/space-toolbar.hbs @@ -134,7 +134,7 @@ diff --git a/gui/app/templates/components/layout/master-navigation.hbs b/gui/app/templates/components/layout/master-navigation.hbs index 5f04c5c5..db78e842 100644 --- a/gui/app/templates/components/layout/master-navigation.hbs +++ b/gui/app/templates/components/layout/master-navigation.hbs @@ -99,7 +99,7 @@ {{else}} {{#link-to "auth.login" class="option"}} - {{constants.Label.Login}} + {{localize 'login'}} {{/link-to}} {{/if}} diff --git a/gui/app/templates/components/onboard/share-folder.hbs b/gui/app/templates/components/onboard/share-folder.hbs index cb3bc0d3..c027fdf4 100644 --- a/gui/app/templates/components/onboard/share-folder.hbs +++ b/gui/app/templates/components/onboard/share-folder.hbs @@ -9,7 +9,7 @@ - {{ui/ui-button id="stage-1-next" color=constants.Color.Green light=true icon=constants.Icon.ArrowRight label=constants.Label.Next}} + {{ui/ui-button id="stage-1-next" color=constants.Color.Green light=true icon=constants.Icon.ArrowRight label=(localize 'next')}}
@@ -25,7 +25,7 @@ Re-type your chosen password
- {{ui/ui-button id="stage-2-next" color=constants.Color.Green light=true icon=constants.Icon.ArrowRight label=constants.Label.SignIn}} + {{ui/ui-button id="stage-2-next" color=constants.Color.Green light=true icon=constants.Icon.ArrowRight label=(localize 'signin')}}
diff --git a/gui/app/templates/components/search/search-results.hbs b/gui/app/templates/components/search/search-results.hbs index 075dc774..e01a94ed 100644 --- a/gui/app/templates/components/search/search-results.hbs +++ b/gui/app/templates/components/search/search-results.hbs @@ -41,7 +41,7 @@ {{ui/ui-button light=true color=constants.Color.Yellow - label=constants.Label.Sort + label=(localize 'sort') onClick=(action "onSortBy" attacher)}}
{{/attach-popover}} diff --git a/gui/app/templates/components/search/search-view.hbs b/gui/app/templates/components/search/search-view.hbs index b2a1a34d..d376aa2b 100644 --- a/gui/app/templates/components/search/search-view.hbs +++ b/gui/app/templates/components/search/search-view.hbs @@ -4,7 +4,7 @@ {{focus-input type="text" value=keywords class="form-control mr-3 search-box" placeholder="keywords, tags"}}
- {{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Search onClick=(action "onSearch")}} + {{ui/ui-button color=constants.Color.Green light=true label=(localize 'search') onClick=(action "onSearch")}}
{{#if validSearch}} diff --git a/gui/app/templates/components/section/jira/type-editor.hbs b/gui/app/templates/components/section/jira/type-editor.hbs index 3a2b8e5f..f6a32649 100644 --- a/gui/app/templates/components/section/jira/type-editor.hbs +++ b/gui/app/templates/components/section/jira/type-editor.hbs @@ -20,7 +20,7 @@ {{focus-input id="jira-jql" type="text" value=config.jql class="form-control" placeholder="e.g. (status = resolved AND project = SysAdmin) OR assignee = bobsmith"}} - {{ui/ui-button color=constants.Color.Yellow light=true label=constants.Label.Preview submit=true onClick=(action "onPreview")}} + {{ui/ui-button color=constants.Color.Yellow light=true label=(localize 'preview') submit=true onClick=(action "onPreview")}} > diff --git a/gui/app/templates/components/section/tabular/type-editor.hbs b/gui/app/templates/components/section/tabular/type-editor.hbs index 98db075f..76611019 100644 --- a/gui/app/templates/components/section/tabular/type-editor.hbs +++ b/gui/app/templates/components/section/tabular/type-editor.hbs @@ -43,7 +43,7 @@ diff --git a/gui/app/templates/components/user/forgot-password.hbs b/gui/app/templates/components/user/forgot-password.hbs index 652fc2bf..d95314da 100644 --- a/gui/app/templates/components/user/forgot-password.hbs +++ b/gui/app/templates/components/user/forgot-password.hbs @@ -9,7 +9,7 @@

Email not found

{{/if}} - {{ui/ui-button color=constants.Color.Yellow light=true label=constants.Label.Reset onClick=(action "forgot")}} + {{ui/ui-button color=constants.Color.Yellow light=true label=(localize 'reset') onClick=(action "forgot")}} {{/if}} diff --git a/gui/app/templates/components/user/password-reset.hbs b/gui/app/templates/components/user/password-reset.hbs index 47e81895..921348a5 100644 --- a/gui/app/templates/components/user/password-reset.hbs +++ b/gui/app/templates/components/user/password-reset.hbs @@ -11,7 +11,7 @@ Please type your new password again
- {{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Reset onClick=(action "reset")}} + {{ui/ui-button color=constants.Color.Green light=true label=(localize 'reset') onClick=(action "reset")}} Passwords must match
diff --git a/gui/app/templates/components/user/user-profile.hbs b/gui/app/templates/components/user/user-profile.hbs index 98ba80cc..a919b8ce 100644 --- a/gui/app/templates/components/user/user-profile.hbs +++ b/gui/app/templates/components/user/user-profile.hbs @@ -21,5 +21,5 @@ {{input id="confirmPassword" type="password" value=password.confirmation class=(if hasConfirmPasswordError "form-control is-invalid" "form-control")}} {{/if}} - {{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Save onClick=(action "save")}} + {{ui/ui-button color=constants.Color.Green light=true label=(localize 'save') onClick=(action "save")}} diff --git a/gui/public/i18n/en-US.json b/gui/public/i18n/en-US.json index 2596434f..f239979c 100644 --- a/gui/public/i18n/en-US.json +++ b/gui/public/i18n/en-US.json @@ -5,7 +5,40 @@ "approve": "Approve", "authenticate": "Authenticate", "cancel": "Cancel", - + "close": "Close", + "copy": "Copy", + "delete": "Delete", + "duplicate": "Duplicate", + "edit": "Edit", + "import": "Import", + "export": "Export", + "file": "File", + "insert": "Insert", + "invite": "Invite", + "join": "Join", + "leave": "Leave", + "login": "Login", + "move": "Move", + "next": "Next", + "ok": "OK", + "preview": "Preview", + "publish": "Publish", + "print": "Print", + "reject": "Reject", + "remove": "Remove", + "reply": "Reply", + "reset": "Reset", + "restore": "Restore", + "request": "Request", + "save": "Save", + "search": "Search", + "send": "Send", + "share": "Share", + "signin": "Sign In", + "sort": "Sort", + "unassigned": "Unassigned", + "update": "Update", + "version": "Version", "name": "Name", "description": "Description", @@ -23,6 +56,8 @@ "label": "Label", "labels_none": "No labels", + "space": "Space", + "spaces": "Spaces", "space_new": "New Space", "space_name": "Space name", "space_description": "Space description",