1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

i18n page strings

This commit is contained in:
McMatts 2022-03-04 18:31:23 -05:00
parent 073ef81e80
commit 6d735e8579
8 changed files with 41 additions and 81 deletions

View file

@ -20,7 +20,9 @@ export default Component.extend({
slug: "",
processing: false,
didRender() {
didRender(...args) {
this._super(...args);
let self = this;
$("#stage-1-firstname").focus();
@ -97,8 +99,6 @@ export default Component.extend({
if ($("#stage-2-password-confirm").val() !== $("#stage-2-password").val()) {
$("#stage-2-password").addClass("is-invalid");
$("#stage-2-password-confirm").addClass("is-invalid");
// $(".mismatch").show();
// $(".password-status").attr("src", "/assets/img/onboard/lock-red.png");
return;
}
@ -115,7 +115,6 @@ export default Component.extend({
self.set('processing', true);
$(".stage-3").fadeIn();
// $("#spinner-1").show();
var payload = '{ "password": "' + $("#stage-2-password").val() + '", "serial": "' + self.serial + '", "firstname": "' + $("#stage-1-firstname").val() + '", "lastname": "' + $("#stage-1-lastname").val() + '" }';
var password = $("#stage-2-password").val();
@ -126,11 +125,6 @@ export default Component.extend({
self.get('session').authenticate('authenticator:documize', creds).then(() => {
window.location.href = '//' + window.location.host + '/s/' + self.folderId + "/" + self.slug;
});
// var credentials = encodingUtil.Base64.encode(netUtil.getSubdomain() + ":" + user.email + ":" + password);
// self.session.sso(credentials).then(function() {
// window.location.href = 's/' + self.folderId + "/" + self.slug;
// });
}, function() {
window.location.href = "/";
});

View file

@ -1,34 +0,0 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
import { inject as service } from '@ember/service';
import Modals from '../../mixins/modal';
import Component from '@ember/component';
export default Component.extend(Modals, {
localStorage: service(),
didInsertElement() {
this._super(...arguments);
let firstRun = this.get('localStorage').isFirstRun();
if (firstRun) {
this.modalOpen('#first-run-modal', {'show': true});
}
},
actions: {
onCloseModal() {
this.modalClose('#first-run-modal');
}
}
});

View file

@ -1 +1 @@
<i class="dicon {{constants.Icon.GoTop}}" {{action "onClick"}} title="Go top" />
<i class="dicon {{constants.Icon.GoTop}}" {{action "onClick"}} title={{localize 'go_top'}} />

View file

@ -3,25 +3,25 @@
{{#unless hideNavigation}}
<div class="options">
{{#link-to "folders" class=(if (eq selectedItem "spaces") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.Grid}} title="Spaces" tabindex="0" role="button" />
<i class={{concat "dicon " constants.Icon.Grid}} title={{localize 'spaces'}} tabindex="0" role="button" />
{{/link-to}}
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
{{#if session.viewDashboard}}
{{#link-to "action" class=(if (eq selectedItem "actions") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.ListBullet}} title="Actions" tabindex="0" role="button" />
<i class={{concat "dicon " constants.Icon.ListBullet}} title={{localize 'actions'}} tabindex="0" role="button" />
{{/link-to}}
{{#link-to "activity" class=(if (eq selectedItem "activity") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.Pulse}} title="Activity" tabindex="0" role="button" />
<i class={{concat "dicon " constants.Icon.Pulse}} title={{localize 'activity'}} tabindex="0" role="button" />
{{/link-to}}
{{/if}}
{{#if session.viewAnalytics}}
{{#link-to "analytics" class=(if (eq selectedItem "analytics") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.BarChart}} title="Reports" tabindex="0" role="button" />
<i class={{concat "dicon " constants.Icon.BarChart}} title={{localize 'reports'}} tabindex="0" role="button" />
{{/link-to}}
{{/if}}
{{/if}}
{{#link-to "search" class=(if (eq selectedItem "search") "option selected" "option")}}
<i class={{concat "dicon " constants.Icon.Search}} title="Search" role="search" tabindex="0" />
<i class={{concat "dicon " constants.Icon.Search}} title={{localize 'search'}} role="search" tabindex="0" />
{{/link-to}}
</div>
@ -29,29 +29,29 @@
{{#if session.isAdmin}}
{{#unless appMeta.valid}}
<div class="option invalid-plan" {{action "onBilling"}}>
<i class={{concat "dicon " constants.Icon.Announce}} title="Missing activation key" tabindex="0" role="button" />
<i class={{concat "dicon " constants.Icon.Announce}} title={{localize 'product_activation_key_missing'}} tabindex="0" role="button" />
</div>
{{/unless}}
{{#unless appMeta.configured}}
<div class="option invalid-plan" {{action "onConfigured"}}>
<i class={{concat "dicon " constants.Icon.Announce}} title="Missing mail server settings" tabindex="0" role="button" />
<i class={{concat "dicon " constants.Icon.Announce}} title={{localize 'smtp_missing'}} tabindex="0" role="button" />
</div>
{{/unless}}
{{/if}}
{{#if session.authenticated}}
{{#if hasPins}}
<div class="option" id="user-pins-button">
<i class={{concat "dicon " constants.Icon.BookmarkSolid}} aria-haspopup="menu" tabindex="0" role="button" title="Bookmarked content"></i>
<i class={{concat "dicon " constants.Icon.BookmarkSolid}} aria-haspopup="menu" tabindex="0" role="button" title={{localize 'bookmarks'}}></i>
{{#attach-popover class="ember-attacher-popper" hideOn="clickout click" showOn="click" isShown=false}}
<div class="menu">
{{#if hasSpacePins}}
<li class="item header">Spaces</li>
<li class="item header">{{localize 'spaces'}}</li>
{{#each spacePins as |pin|}}
<a class="item" href="#" {{action "jumpToPin" pin}} data-id= {{pin.id}} id="pin-{{pin.id}}" tabindex="0" role="button">{{pin.pin}}</a>
{{/each}}
{{/if}}
{{#if hasDocumentPins}}
<li class="item header">Content</li>
<li class="item header">{{localize 'content'}}</li>
{{#each documentPins as |pin|}}
<a class="item" href="#" {{action "jumpToPin" pin}} data-id= {{pin.id}} id="pin-{{pin.id}}" tabindex="0" role="button">{{pin.pin}}</a>
{{/each}}
@ -73,25 +73,25 @@
{{/if}}
{{#attach-popover class="ember-attacher-popper" hideOn="clickout click" showOn="click" isShown=false}}
<div class="menu">
{{#link-to "profile" class="item"}}Profile{{/link-to}}
{{#link-to "profile" class="item"}}{{localize 'profile'}}{{/link-to}}
{{#if session.isAdmin}}
<div class="divider"></div>
{{#link-to "customize.general" class="item"}}Settings{{/link-to}}
{{#link-to "customize.general" class="item"}}{{localize 'settings'}}{{/link-to}}
{{#unless appMeta.valid}}
{{#link-to "customize.billing" class="item bold red"}}Update Billing{{/link-to}}
{{#link-to "customize.billing" class="item bold red"}}{{localize 'account_update'}}{{/link-to}}
{{/unless}}
{{/if}}
{{#if session.isGlobalAdmin}}
{{#if appMeta.updateAvailable}}
{{#link-to "customize.product" class="item bold yellow"}}Update available{{/link-to}}
{{#link-to "customize.product" class="item bold yellow"}}{{localize 'product_update'}}{{/link-to}}
{{/if}}
{{/if}}
<div class="divider"></div>
<a class={{if hasWhatsNew "item bold red" "item"}} href="#" {{action "onNew"}}>What's New</a>
<a href="https://docs.documize.com" target="_blank" class="item">Help</a>
<a class={{if hasWhatsNew "item bold red" "item"}} href="#" {{action "onNew"}}>{{localize 'product_whats_new'}}</a>
<a href="https://docs.documize.com" target="_blank" class="item">{{localize 'help'}}</a>
{{#if enableLogout}}
<div class="divider"></div>
{{#link-to "auth.logout" class="item"}}Logout{{/link-to}}
{{#link-to "auth.logout" class="item"}}{{localize 'logout'}}{{/link-to}}
{{/if}}
</div>
{{/attach-popover}}

View file

@ -1,7 +1,7 @@
<div class="installer">
<img src="/assets/img/setup/logo.png" srcset="/assets/img/setup/logo@2x.png" alt="Documize Community Setup" style="width: 250px; height: 76px;">
<img src="/assets/img/setup/logo.png" srcset="/assets/img/setup/logo@2x.png" alt="{{localize 'setup_title'}}" style="width: 250px; height: 76px;">
<Ui::UiSpacer @size="300" />
<h1 class="color-theme-700">Setup</h1>
<h1 class="color-theme-700">{{localize 'setup_title'}}</h1>
<p class="color-gray-800">
Review the <a href="https://docs.documize.com/s/VzO9ZqMOCgABGyfW/installation-guides/d/V16L08ucxwABhZF6/installation-guide" target="_blank">installation instructions</a>
and recommended <a href="https://docs.documize.com/s/VzO9ZqMOCgABGyfW/installation-guides/d/V2KuM8ICcQABagM5/database-tuning" target="_blank">database tuning guide</a>

View file

@ -1,13 +0,0 @@
<div id="first-run-modal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">Getting Started</div>
<div class="modal-body">
<p>dfdfdf</p>
</div>
<div class="modal-footer">
{{ui/ui-button color=constants.Color.Yellow light=true label="Got it!" dismiss=true}}
</div>
</div>
</div>
</div>

View file

@ -1,12 +1,11 @@
<div class="view-spaces">
<div class="text-right">
{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}}
{{ui/ui-toolbar-icon icon=constants.Icon.Blocks color=constants.Color.Gray tooltip="Complete"
{{ui/ui-toolbar-icon icon=constants.Icon.Blocks color=constants.Color.Gray tooltip=(localize 'space_density_complete')
selected=(eq viewDensity "1") onClick=(action "onSwitchView" "1")}}
{{ui/ui-toolbar-icon icon=constants.Icon.All color=constants.Color.Gray tooltip="Comfort"
{{ui/ui-toolbar-icon icon=constants.Icon.All color=constants.Color.Gray tooltip=(localize 'space_density_comfort')
selected=(eq viewDensity "2") onClick=(action "onSwitchView" "2")}}
{{ui/ui-toolbar-label label="—" color=constants.Color.Gray tooltip="Compact"
{{ui/ui-toolbar-label label="—" color=constants.Color.Gray tooltip=(localize 'space_density_compact')
selected=(eq viewDensity "3") onClick=(action "onSwitchView" "3")}}
{{/ui/ui-toolbar}}
</div>
@ -57,5 +56,4 @@
</li>
{{/each}}
</ul>
</div>

View file

@ -83,6 +83,8 @@
"meta": "Meta",
"permissions": "Permissions",
"profile": "Profile",
"go_top": "Go top",
"help": "Help",
"public": "Public",
"protected": "Protected",
@ -102,6 +104,11 @@
"pinned": "Pinned",
"unpinned": "Unpinned",
"blocks": "Content Blocks",
"actions": "Actions",
"activity": "Activity",
"reports": "Reports",
"bookmarks": "Bookmarks",
"content": "Content",
"space_new": "New Space",
"space_name": "Space name",
@ -154,6 +161,9 @@
"search_example8": "Show results that contain either word",
"search_example9": "Show results that have \"google\", either \"apple\" or \"microsoft\" but not \"ibm\"",
"search_example10": "Show results that contain words that start with \"apple\", such as \"applesauce\" or \"applet\"",
"space_density_complete": "Complete",
"space_density_comfort": "Comfort",
"space_density_compact": "Compact",
"backup_explain1": "Documize Community is a multi-tenanted application enabling both 'tech.mycompany.com' and 'sales.mycompany.com' to run using the same executable/database. As a Documize Community Global Administrator, you will be performing a complete system-wide backup across all tenants. The Documize Community Tenant Administrator can login to perform a tenant-level backup (e.g. marketing.mycompany.com).",
"backup_explain2": "Documize Community is a multi-tenanted application enabling both 'tech.mycompany.com' and 'sales.mycompany.com' to run using the same executable/database. A Documize Community Global Administrator, you will be performing a complete system-wide backup across all tenants. As a Documize Community Tenant Administrator you can perform a tenant-level backup (e.g. marketing.mycompany.com).",
@ -225,6 +235,7 @@
"smtp_ssl": "Use SSL",
"smtp_save_test": "Save & Test",
"smtp_sent_test_email": "Sending test email to you",
"smtp_missing": "Missing mail server settings",
"space_admin_export": "Export All Content",
"space_admin_export_running": "Export running....",
"space_admin_make_owner": "Add myself as owner",
@ -351,6 +362,10 @@
"product_feedback": "Have a product idea, suggestion or some feedback?",
"product_news": "Product News",
"product_news_explain": "Latest product news and updates",
"product_update": "Update available",
"product_whats_new": "What's New",
"product_activation_key_missing": "Missing activation key",
"account_update": "Update Account",
"404": "Oops! That page couldn't be found.",
"404_explain": "Maybe the content you're looking for is no longer available?",
"close_account": "Please close my Documize account.",