mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09: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: "",
|
||||
|
||||
didReceiveAttrs() {
|
||||
this._super();
|
||||
|
||||
this.set("data", this.get("meta.rawBody"));
|
||||
},
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@ export default Component.extend(SectionMixin, {
|
|||
},
|
||||
|
||||
didReceiveAttrs() {
|
||||
this._super();
|
||||
|
||||
let config = {};
|
||||
|
||||
try {
|
||||
|
|
|
@ -36,11 +36,13 @@ export default Component.extend({
|
|||
this.set('pageBody', body);
|
||||
},
|
||||
|
||||
didInsertElement() {
|
||||
didInsertElement(...args) {
|
||||
this._super(...args);
|
||||
this.attachEditor();
|
||||
},
|
||||
|
||||
willDestroyElement() {
|
||||
willDestroyElement(...args) {
|
||||
this._super(...args);
|
||||
let editor = this.get('codeEditor');
|
||||
|
||||
if (this.get('editMode')) {
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
{{layout/logo-heading
|
||||
title="IFrame"
|
||||
desc="Embed an IFrame"
|
||||
title=(localize 'section_iframe')
|
||||
desc=(localize 'section_iframe_explain')
|
||||
icon=constants.Icon.Integrations}}
|
||||
|
||||
{{#section/base-editor document=document folder=folder page=page isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
|
||||
<div class="form-group">
|
||||
<label for="iframe-embed-code">IFrame embed 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"}}
|
||||
<small class="form-text text-muted">Paste the iframe code snippet</small>
|
||||
<label for="iframe-embed-code">{{localize 'section_iframe_code'}}</label>
|
||||
{{textarea value=data rows="10" id="iframe-embed-code" class="form-control mousetrap" placeholder=(localize 'code') autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"}}
|
||||
</div>
|
||||
{{/section/base-editor}}
|
||||
|
|
|
@ -1,32 +1,30 @@
|
|||
{{layout/logo-heading
|
||||
title="Gemini"
|
||||
desc="Gemini enterprise issue and ticketing software (https://www.countersoft.com)"
|
||||
title=(localize 'section_gemini')
|
||||
desc=(localize 'section_gemini_explain')
|
||||
icon=constants.Icon.Integrations}}
|
||||
|
||||
{{#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-cell-1">
|
||||
<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"}}
|
||||
<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 class="form-group">
|
||||
<label>Username</label>
|
||||
<label>{{localize 'username'}}</label>
|
||||
{{input id="gemini-username" type="text" value=config.username class="form-control"}}
|
||||
<small class="form-text text-muted">Gemini Username</small>
|
||||
</div>
|
||||
<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"}}
|
||||
<small class="form-text text-muted">Gemini user API key (from user profile)</small>
|
||||
</div>
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=(localize 'authenticate') onClick=(action "auth")}}
|
||||
</div>
|
||||
<div class="grid-cell-2">
|
||||
{{#if authenticated}}
|
||||
<div class="form-group">
|
||||
<label>Select Gemini workspace</label>
|
||||
<label>{{localize 'section_gemini_workspace'}}</label>
|
||||
<ul class="section-gemini-workspaces">
|
||||
{{#each workspaces as |card|}}
|
||||
<li class="section-gemini-workspace" id="gemini-workspace-{{card.Id}}" title="{{card.Title}}">
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
{{layout/logo-heading
|
||||
title="Jira Software"
|
||||
desc="Jira provides issue tracking and agile software"
|
||||
title=(localize 'section_jira')
|
||||
desc=(localize 'section_jira_explain')
|
||||
icon=constants.Icon.Integrations}}
|
||||
|
||||
{{#section/base-editor document=document folder=folder page=page busy=waiting isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
|
||||
{{#if session.isAdmin}}
|
||||
{{#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}}
|
||||
<Ui::UiSpacer @size="300" />
|
||||
{{else}}
|
||||
{{#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}}
|
||||
{{/if}}
|
||||
{{#if authenticated}}
|
||||
|
@ -27,6 +27,6 @@
|
|||
{{{issuesGrid}}}
|
||||
{{else}}
|
||||
<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}}
|
||||
{{/section/base-editor}}
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
"export": "Export",
|
||||
"exported": "Exported",
|
||||
"test": "Test",
|
||||
"configure": "Configure",
|
||||
"error": "Error",
|
||||
"file": "File",
|
||||
"insert": "Insert",
|
||||
|
@ -49,6 +50,7 @@
|
|||
"share": "Share",
|
||||
"discard": "Discard",
|
||||
"continue": "Continue",
|
||||
"code": "code",
|
||||
"signin": "Sign In",
|
||||
"sort": "Sort",
|
||||
"sort_ascending": "Ascending",
|
||||
|
@ -292,13 +294,25 @@
|
|||
"section_publish": "Publish Re-usable 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_airtable": "Airtable",
|
||||
"section_airtable_explain": "Part spreadsheet, part database, and entirely flexible (https://airtable.com)",
|
||||
"section_airtable_code": "Airtable embed code",
|
||||
"section_code_tip": "Concise name that describes code snippet",
|
||||
"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_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_cass_error": "CAS authentication failure",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue