Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: transations in status message
* Make sure the translation command for "Offline" can be parsed.
  Otherwise it will not be extracted as a translation entry.
* Use `lastSave` as the variable name in the tooltip.
  That is what all the translations use right now.

Fixes #3750.

Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Feb 6, 2023
commit d055707a6c60477d4e65518d91c4a35b6c5747e0
10 changes: 4 additions & 6 deletions src/components/Editor/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,17 @@ export default {
computed: {
lastSavedStatus() {
if (this.hasConnectionIssue) {
return t('text',
this.$isMobile
? 'Offline'
: 'Offline, changes will be saved when online'
)
return this.$isMobile
? t('text', 'Offline')
: t('text', 'Offline, changes will be saved when online')
}
return this.dirtyStateIndicator ? t('text', 'Saving …') : t('text', 'Saved')
},
dirtyStateIndicator() {
return this.dirty || this.hasUnsavedChanges
},
lastSavedStatusTooltip() {
let message = t('text', 'Last saved {lastSaved}', { lastSaved: this.lastSavedString })
let message = t('text', 'Last saved {lastSave}', { lastSave: this.lastSavedString })
if (this.hasSyncCollission) {
message = t('text', 'The document has been changed outside of the editor. The changes cannot be applied.')
}
Expand Down