mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
i18n fixes
This commit is contained in:
parent
e56263564c
commit
6c8b10753d
11 changed files with 18 additions and 17 deletions
|
@ -65,6 +65,7 @@ export default Component.extend(Modals, Notifier, {
|
|||
// Handle upload clicks on button and anything inside that button.
|
||||
// But only if user can edit this document.
|
||||
if (!this.get('canEdit')) return;
|
||||
let uploaded = this.i18n.localize('uploaded');
|
||||
|
||||
let sel = ['#upload-document-files ', '#upload-document-files > i'];
|
||||
for (var i=0; i < 2; i++) {
|
||||
|
@ -87,7 +88,7 @@ export default Component.extend(Modals, Notifier, {
|
|||
});
|
||||
|
||||
this.on("queuecomplete", function () {
|
||||
self.notifySuccess(this.i18n.localize('uploaded'));
|
||||
self.notifySuccess(uploaded);
|
||||
self.getAttachments();
|
||||
});
|
||||
|
||||
|
|
|
@ -24,6 +24,10 @@ export default Component.extend({
|
|||
selected: false,
|
||||
ariaRole: "button",
|
||||
tabindex: 0,
|
||||
attributeBindings: ['title'],
|
||||
title: computed('tooltip', function() {
|
||||
return this.tooltip;
|
||||
}),
|
||||
|
||||
calcClass: computed('selected', function() {
|
||||
let c = '';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div id={{concat "content-linker-modal-" page.id}} class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">{{localize 'link-insert'}}</div>
|
||||
<div class="modal-header">{{localize 'link_insert'}}</div>
|
||||
<div class="modal-body">
|
||||
<ul class="tabnav-control text-center">
|
||||
{{#if hasSections}}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{{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=(localize 'space_density_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-icon icon=constants.Icon.Sort color=constants.Color.Gray tooltip=(localize 'sort')}}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
selected=(eq viewDensity "1") onClick=(action "onSwitchView" "1")}}
|
||||
{{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=(localize 'space_density_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>
|
||||
|
|
|
@ -1,4 +1 @@
|
|||
{{label}}
|
||||
{{#if tooltip}}
|
||||
{{#attach-tooltip showDelay=750}}{{tooltip}}{{/attach-tooltip}}
|
||||
{{/if}}
|
Loading…
Add table
Add a link
Reference in a new issue