From 29447a27846cd064977a61ca3eed64f160aea518 Mon Sep 17 00:00:00 2001 From: McMatts Date: Wed, 2 Mar 2022 20:30:39 -0500 Subject: [PATCH] i18n admin strings --- .../components/customize/smtp-settings.hbs | 36 +++++++++---------- .../components/customize/space-admin.hbs | 26 +++++++------- .../components/customize/space-labels.hbs | 24 ++++++------- gui/public/i18n/en-US.json | 34 +++++++++++++++--- 4 files changed, 73 insertions(+), 47 deletions(-) diff --git a/gui/app/templates/components/customize/smtp-settings.hbs b/gui/app/templates/components/customize/smtp-settings.hbs index 6b21eeef..2fb53514 100644 --- a/gui/app/templates/components/customize/smtp-settings.hbs +++ b/gui/app/templates/components/customize/smtp-settings.hbs @@ -1,52 +1,52 @@
- + {{focus-input id="smtp-host" type="text" value=model.smtp.host class=(if SMTPHostEmptyError "form-control is-invalid" "form-control")}} - e.g. my.host.com + {{localize 'smtp_host_explain'}}
- + {{input id="smtp-port" type="text" value=model.smtp.port class=(if SMTPPortEmptyError "form-control is-invalid" "form-control")}} - e.g. 587 + {{localize 'smtp_port_explain'}}
- + {{input id="smtp-userid" type="text" value=model.smtp.userid class="form-control"}} - e.g. Login username for SMTP server + {{localize 'smtp_username_explain'}}
- + {{input id="smtp-password" type="password" value=model.smtp.password class="form-control"}} - e.g. Login password for SMTP server + {{localize 'smtp_password_explain'}}
- + {{input id="smtp-sender" type="email" value=model.smtp.sender class=(if SMTPSenderEmptyError "form-control is-invalid" "form-control")}} - e.g. user@some-domain.com + {{localize 'smtp_sender_email_explain'}}
- + {{input id="smtp-senderName" type="text" value=model.smtp.senderName class=(if senderNameError "form-control is-invalid" "form-control")}} - e.g. Documize + {{localize 'smtp_sender_name_explain'}}
- + {{input id="smtp-fqdn" type="text" value=model.smtp.fqdn class="form-control"}} - (optional) SMTP can require valid domain name, e.g. docs.example.org + {{localize 'smtp_fqdn_explain'}}
- + {{x-toggle value=model.smtp.anonymous size="medium" theme="light" onToggle=(action (mut model.smtp.anonymous))}}
- + {{x-toggle value=model.smtp.base64creds size="medium" theme="light" onToggle=(action (mut model.smtp.base64creds))}}
- + {{x-toggle value=model.smtp.usessl size="medium" theme="light" onToggle=(action (mut model.smtp.usessl))}}
{{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Send label=buttonText onClick=(action "saveSMTP")}}
-
\ No newline at end of file + diff --git a/gui/app/templates/components/customize/space-admin.hbs b/gui/app/templates/components/customize/space-admin.hbs index 1120417b..db30faec 100644 --- a/gui/app/templates/components/customize/space-admin.hbs +++ b/gui/app/templates/components/customize/space-admin.hbs @@ -1,5 +1,5 @@ {{#if spaces}} - {{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Export label="Export All Content" onClick=(action "onExport")}} + {{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Export label=(localize 'space_admin_export') onClick=(action "onExport")}}
@@ -10,22 +10,22 @@ {{#link-to "folder.index" space.id space.slug}}
{{#if (eq space.spaceType constants.SpaceType.Public)}} - + {{/if}} {{#if (eq space.spaceType constants.SpaceType.Protected)}} - + {{/if}} {{#if (eq space.spaceType constants.SpaceType.Private)}} - + {{/if}} {{space.name}}
-
Some description that is to be wired up to the backend
+
{{space.desc}}
{{/link-to}} {{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}} - {{ui/ui-toolbar-icon icon=constants.Icon.AddUser color=constants.Color.Green tooltip="Add myself as owner" onClick=(action "onOwner" space.id)}} - {{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip="Delete space" onClick=(action "onShow" space.id)}} + {{ui/ui-toolbar-icon icon=constants.Icon.AddUser color=constants.Color.Green tooltip=(localize 'space_admin_make_owner') onClick=(action "onOwner" space.id)}} + {{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip=(localize 'space_admin_delete') onClick=(action "onShow" space.id)}} {{/ui/ui-toolbar}}
@@ -36,14 +36,14 @@
{{#ui/ui-toolbar dark=false light=true raised=false large=false bordered=false}} - {{ui/ui-toolbar-icon icon=constants.Icon.Edit color=constants.Color.Green tooltip="Update label" onClick=(action "onShowUpdateModal" label)}} - {{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip="Delete label" onClick=(action "onShowDeleteModal" label)}} + {{ui/ui-toolbar-icon icon=constants.Icon.Edit color=constants.Color.Green tooltip=(localize 'update') onClick=(action "onShowUpdateModal" label)}} + {{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip=(localize 'delete') onClick=(action "onShowDeleteModal" label)}} {{/ui/ui-toolbar}}
@@ -30,14 +30,14 @@