Skip to content

Commit

Permalink
Merge pull request #4273 from nextcloud/backport/4272/stable7
Browse files Browse the repository at this point in the history
[stable7] NcDatetimePicker: Make sure all l10n strings are extracted
  • Loading branch information
susnux authored Jun 26, 2023
2 parents f0e7040 + 43721e2 commit 2bb599b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
18 changes: 18 additions & 0 deletions l10n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,24 @@ msgstr ""
msgid "People & Body"
msgstr ""

msgid "Pick a date"
msgstr ""

msgid "Pick a date and a time"
msgstr ""

msgid "Pick a month"
msgstr ""

msgid "Pick a time"
msgstr ""

msgid "Pick a week"
msgstr ""

msgid "Pick a year"
msgstr ""

msgid "Pick an emoji"
msgstr ""

Expand Down
14 changes: 8 additions & 6 deletions src/components/NcDatetimePicker/NcDatetimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ export default {
</template>

<script>
import { t } from '../../l10n.js'
import NcTimezonePicker from '../NcTimezonePicker/index.js'
import NcPopover from '../NcPopover/index.js'
import l10n from '../../mixins/l10n.js'
Expand Down Expand Up @@ -327,21 +329,21 @@ export default {
*/
defaultPlaceholder() {
if (this.type === 'time') {
return this.t('Pick a time')
return t('Pick a time')
}
if (this.type === 'month') {
return this.t('Pick a month')
return t('Pick a month')
}
if (this.type === 'year') {
return this.t('Pick a year')
return t('Pick a year')
}
if (this.type === 'week') {
return this.t('Pick a week')
return t('Pick a week')
}
if (this.type === 'date') {
return this.t('Pick a date')
return t('Pick a date')
}
return this.t('Pick a date and a time')
return t('Pick a date and a time')
},
/**
Expand Down

0 comments on commit 2bb599b

Please sign in to comment.