mirror of
https://github.com/documize/community.git
synced 2025-07-20 13:49:42 +02:00
i18n section strings
This commit is contained in:
parent
f735ae1278
commit
ce9c635fb4
7 changed files with 39 additions and 22 deletions
|
@ -15,6 +15,8 @@ export default Component.extend({
|
||||||
data: "",
|
data: "",
|
||||||
|
|
||||||
didReceiveAttrs() {
|
didReceiveAttrs() {
|
||||||
|
this._super();
|
||||||
|
|
||||||
this.set("data", this.get("meta.rawBody"));
|
this.set("data", this.get("meta.rawBody"));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,8 @@ export default Component.extend(SectionMixin, {
|
||||||
},
|
},
|
||||||
|
|
||||||
didReceiveAttrs() {
|
didReceiveAttrs() {
|
||||||
|
this._super();
|
||||||
|
|
||||||
let config = {};
|
let config = {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -36,11 +36,13 @@ export default Component.extend({
|
||||||
this.set('pageBody', body);
|
this.set('pageBody', body);
|
||||||
},
|
},
|
||||||
|
|
||||||
didInsertElement() {
|
didInsertElement(...args) {
|
||||||
|
this._super(...args);
|
||||||
this.attachEditor();
|
this.attachEditor();
|
||||||
},
|
},
|
||||||
|
|
||||||
willDestroyElement() {
|
willDestroyElement(...args) {
|
||||||
|
this._super(...args);
|
||||||
let editor = this.get('codeEditor');
|
let editor = this.get('codeEditor');
|
||||||
|
|
||||||
if (this.get('editMode')) {
|
if (this.get('editMode')) {
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{{layout/logo-heading
|
{{layout/logo-heading
|
||||||
title="IFrame"
|
title=(localize 'section_iframe')
|
||||||
desc="Embed an IFrame"
|
desc=(localize 'section_iframe_explain')
|
||||||
icon=constants.Icon.Integrations}}
|
icon=constants.Icon.Integrations}}
|
||||||
|
|
||||||
{{#section/base-editor document=document folder=folder page=page isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
|
{{#section/base-editor document=document folder=folder page=page isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="iframe-embed-code">IFrame embed code</label>
|
<label for="iframe-embed-code">{{localize 'section_iframe_code'}}</label>
|
||||||
{{textarea value=data rows="10" id="iframe-embed-code" class="form-control mousetrap" placeholder="Enter code" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"}}
|
{{textarea value=data rows="10" id="iframe-embed-code" class="form-control mousetrap" placeholder=(localize 'code') autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"}}
|
||||||
<small class="form-text text-muted">Paste the iframe code snippet</small>
|
|
||||||
</div>
|
</div>
|
||||||
{{/section/base-editor}}
|
{{/section/base-editor}}
|
||||||
|
|
|
@ -1,32 +1,30 @@
|
||||||
{{layout/logo-heading
|
{{layout/logo-heading
|
||||||
title="Gemini"
|
title=(localize 'section_gemini')
|
||||||
desc="Gemini enterprise issue and ticketing software (https://www.countersoft.com)"
|
desc=(localize 'section_gemini_explain')
|
||||||
icon=constants.Icon.Integrations}}
|
icon=constants.Icon.Integrations}}
|
||||||
|
|
||||||
{{#section/base-editor document=document folder=folder page=page busy=waiting isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
|
{{#section/base-editor document=document folder=folder page=page busy=waiting isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
|
||||||
<div class="grid-container-5-5">
|
<div class="grid-container-5-5">
|
||||||
<div class="grid-cell-1">
|
<div class="grid-cell-1">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="gemini-url">Gemini URL</label>
|
<label for="gemini-url">{{localize 'section_gemini_url'}}</label>
|
||||||
{{focus-input id="gemini-url" type="text" value=config.url class="form-control"}}
|
{{focus-input id="gemini-url" type="text" value=config.url class="form-control"}}
|
||||||
<small class="form-text text-muted">e.g. http://helpdesk.countersoft.com</small>
|
<small class="form-text text-muted">{{localize 'section_gemini_url_explain'}}</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Username</label>
|
<label>{{localize 'username'}}</label>
|
||||||
{{input id="gemini-username" type="text" value=config.username class="form-control"}}
|
{{input id="gemini-username" type="text" value=config.username class="form-control"}}
|
||||||
<small class="form-text text-muted">Gemini Username</small>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="gemini-apikey">API Key</label>
|
<label for="gemini-apikey">{{localize 'section_gemini_key'}}</label>
|
||||||
{{input id="gemini-apikey" type="password" value=config.APIKey class="form-control"}}
|
{{input id="gemini-apikey" type="password" value=config.APIKey class="form-control"}}
|
||||||
<small class="form-text text-muted">Gemini user API key (from user profile)</small>
|
|
||||||
</div>
|
</div>
|
||||||
{{ui/ui-button color=constants.Color.Green light=true label=(localize 'authenticate') onClick=(action "auth")}}
|
{{ui/ui-button color=constants.Color.Green light=true label=(localize 'authenticate') onClick=(action "auth")}}
|
||||||
</div>
|
</div>
|
||||||
<div class="grid-cell-2">
|
<div class="grid-cell-2">
|
||||||
{{#if authenticated}}
|
{{#if authenticated}}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Select Gemini workspace</label>
|
<label>{{localize 'section_gemini_workspace'}}</label>
|
||||||
<ul class="section-gemini-workspaces">
|
<ul class="section-gemini-workspaces">
|
||||||
{{#each workspaces as |card|}}
|
{{#each workspaces as |card|}}
|
||||||
<li class="section-gemini-workspace" id="gemini-workspace-{{card.Id}}" title="{{card.Title}}">
|
<li class="section-gemini-workspace" id="gemini-workspace-{{card.Id}}" title="{{card.Title}}">
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
{{layout/logo-heading
|
{{layout/logo-heading
|
||||||
title="Jira Software"
|
title=(localize 'section_jira')
|
||||||
desc="Jira provides issue tracking and agile software"
|
desc=(localize 'section_jira_explain')
|
||||||
icon=constants.Icon.Integrations}}
|
icon=constants.Icon.Integrations}}
|
||||||
|
|
||||||
{{#section/base-editor document=document folder=folder page=page busy=waiting isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
|
{{#section/base-editor document=document folder=folder page=page busy=waiting isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
|
||||||
{{#if session.isAdmin}}
|
{{#if session.isAdmin}}
|
||||||
{{#link-to "customize.integrations"}}
|
{{#link-to "customize.integrations"}}
|
||||||
{{ui/ui-button color=constants.Color.Green light=true label="Configure Jira Connector"}}
|
{{ui/ui-button color=constants.Color.Green light=true label=(localize 'configure')}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
<Ui::UiSpacer @size="300" />
|
<Ui::UiSpacer @size="300" />
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#unless authenticated}}
|
{{#unless authenticated}}
|
||||||
<p class="color-green-600">Your Documize administrator needs to provide Jira connection details before usage.</p>
|
<p class="color-green-600">{{localize 'section_jira_admin'}}</p>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if authenticated}}
|
{{#if authenticated}}
|
||||||
|
@ -27,6 +27,6 @@
|
||||||
{{{issuesGrid}}}
|
{{{issuesGrid}}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<Ui::UiSpacer @size="300" />
|
<Ui::UiSpacer @size="300" />
|
||||||
<p class="color-gray-700">Jira connector not authenticated</p>
|
<p class="color-gray-700">{{localize 'section_jira_no_auth'}}</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/section/base-editor}}
|
{{/section/base-editor}}
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
"export": "Export",
|
"export": "Export",
|
||||||
"exported": "Exported",
|
"exported": "Exported",
|
||||||
"test": "Test",
|
"test": "Test",
|
||||||
|
"configure": "Configure",
|
||||||
"error": "Error",
|
"error": "Error",
|
||||||
"file": "File",
|
"file": "File",
|
||||||
"insert": "Insert",
|
"insert": "Insert",
|
||||||
|
@ -49,6 +50,7 @@
|
||||||
"share": "Share",
|
"share": "Share",
|
||||||
"discard": "Discard",
|
"discard": "Discard",
|
||||||
"continue": "Continue",
|
"continue": "Continue",
|
||||||
|
"code": "code",
|
||||||
"signin": "Sign In",
|
"signin": "Sign In",
|
||||||
"sort": "Sort",
|
"sort": "Sort",
|
||||||
"sort_ascending": "Ascending",
|
"sort_ascending": "Ascending",
|
||||||
|
@ -292,13 +294,25 @@
|
||||||
"section_publish": "Publish Re-usable Content Block",
|
"section_publish": "Publish Re-usable Content Block",
|
||||||
"section_publish_name_explain": "Provide a short title for the reusable content block",
|
"section_publish_name_explain": "Provide a short title for the reusable content block",
|
||||||
"section_publish_desc_explain": "Short description to help others understand the reusable content block",
|
"section_publish_desc_explain": "Short description to help others understand the reusable content block",
|
||||||
|
|
||||||
"section_airtable": "Airtable",
|
"section_airtable": "Airtable",
|
||||||
"section_airtable_explain": "Part spreadsheet, part database, and entirely flexible (https://airtable.com)",
|
"section_airtable_explain": "Part spreadsheet, part database, and entirely flexible (https://airtable.com)",
|
||||||
"section_airtable_code": "Airtable embed code",
|
"section_airtable_code": "Airtable embed code",
|
||||||
"section_code_tip": "Concise name that describes code snippet",
|
"section_code_tip": "Concise name that describes code snippet",
|
||||||
"section_drawio": "Draw.io",
|
"section_drawio": "Draw.io",
|
||||||
"section_drawio_explain": "For making flowcharts, process diagrams, org charts, UML, ER diagrams, network diagrams and much more (https://about.draw.io)",
|
"section_drawio_explain": "For making flowcharts, process diagrams, org charts, UML, ER diagrams, network diagrams and much more (https://about.draw.io)",
|
||||||
|
"section_iframe": "iFrame",
|
||||||
|
"section_iframe_explain": "Embed an iFrame",
|
||||||
|
"section_iframe_code": "iFrame embed code",
|
||||||
|
"section_gemini": "Gemini",
|
||||||
|
"section_gemini_explain": "Gemini enterprise issue tracking and help desk software (https://www.countersoft.com)",
|
||||||
|
"section_gemini_url": "Gemini URL",
|
||||||
|
"section_gemini_url_explain": "e.g. https://helpdesk.countersoft.com",
|
||||||
|
"section_gemini_key": "API Key (from user profile)",
|
||||||
|
"section_gemini_workspace": "Workspace",
|
||||||
|
"section_jira": "Jira Software",
|
||||||
|
"section_jira_explain": "Jira provides issue tracking and agile software",
|
||||||
|
"section_jira_admin": "Your Documize Community administrator needs to provide Jira connection details before usage.",
|
||||||
|
"section_jira_no_auth": "Jira connector not authenticated",
|
||||||
|
|
||||||
"login_cas": "Authenticating with CAS...",
|
"login_cas": "Authenticating with CAS...",
|
||||||
"login_cass_error": "CAS authentication failure",
|
"login_cass_error": "CAS authentication failure",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue