chore: rename i18n key for datemath help

This commit is contained in:
kolaente 2022-02-20 21:13:42 +01:00
parent a6480cdb75
commit 4195953696
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
3 changed files with 57 additions and 57 deletions

View file

@ -1,18 +1,18 @@
<template> <template>
<card <card
class="has-no-shadow how-it-works-modal" class="has-no-shadow how-it-works-modal"
:title="$t('input.datepickerRange.math.title')"> :title="$t('input.datemathHelp.title')">
<p> <p>
{{ $t('input.datepickerRange.math.intro') }} {{ $t('input.datemathHelp.intro') }}
</p> </p>
<p> <p>
<i18n-t keypath="input.datepickerRange.math.expression"> <i18n-t keypath="input.datemathHelp.expression">
<code>now</code> <code>now</code>
<code>||</code> <code>||</code>
</i18n-t> </i18n-t>
</p> </p>
<p> <p>
<i18n-t keypath="input.datepickerRange.math.similar"> <i18n-t keypath="input.datemathHelp.similar">
<BaseButton <BaseButton
href="https://grafana.com/docs/grafana/latest/dashboards/time-range-controls/" href="https://grafana.com/docs/grafana/latest/dashboards/time-range-controls/"
target="_blank"> target="_blank">
@ -27,79 +27,79 @@
</p> </p>
<p>{{ $t('misc.forExample') }}</p> <p>{{ $t('misc.forExample') }}</p>
<ul> <ul>
<li><code>+1d</code>{{ $t('input.datepickerRange.math.add1Day') }}</li> <li><code>+1d</code>{{ $t('input.datemathHelp.add1Day') }}</li>
<li><code>-1d</code>{{ $t('input.datepickerRange.math.minus1Day') }}</li> <li><code>-1d</code>{{ $t('input.datemathHelp.minus1Day') }}</li>
<li><code>/d</code>{{ $t('input.datepickerRange.math.roundDay') }}</li> <li><code>/d</code>{{ $t('input.datemathHelp.roundDay') }}</li>
</ul> </ul>
<p>{{ $t('input.datepickerRange.math.supportedUnits') }}</p> <p>{{ $t('input.datemathHelp.supportedUnits') }}</p>
<table class="table"> <table class="table">
<tbody> <tbody>
<tr> <tr>
<td><code>s</code></td> <td><code>s</code></td>
<td>{{ $t('input.datepickerRange.math.units.seconds') }}</td> <td>{{ $t('input.datemathHelp.units.seconds') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>m</code></td> <td><code>m</code></td>
<td>{{ $t('input.datepickerRange.math.units.minutes') }}</td> <td>{{ $t('input.datemathHelp.units.minutes') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>h</code></td> <td><code>h</code></td>
<td>{{ $t('input.datepickerRange.math.units.hours') }}</td> <td>{{ $t('input.datemathHelp.units.hours') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>H</code></td> <td><code>H</code></td>
<td>{{ $t('input.datepickerRange.math.units.hours') }}</td> <td>{{ $t('input.datemathHelp.units.hours') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>d</code></td> <td><code>d</code></td>
<td>{{ $t('input.datepickerRange.math.units.days') }}</td> <td>{{ $t('input.datemathHelp.units.days') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>w</code></td> <td><code>w</code></td>
<td>{{ $t('input.datepickerRange.math.units.weeks') }}</td> <td>{{ $t('input.datemathHelp.units.weeks') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>M</code></td> <td><code>M</code></td>
<td>{{ $t('input.datepickerRange.math.units.months') }}</td> <td>{{ $t('input.datemathHelp.units.months') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>y</code></td> <td><code>y</code></td>
<td>{{ $t('input.datepickerRange.math.units.years') }}</td> <td>{{ $t('input.datemathHelp.units.years') }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<p>{{ $t('input.datepickerRange.math.someExamples') }}</p> <p>{{ $t('input.datemathHelp.someExamples') }}</p>
<table class="table"> <table class="table">
<tbody> <tbody>
<tr> <tr>
<td><code>now</code></td> <td><code>now</code></td>
<td>{{ $t('input.datepickerRange.math.examples.now') }}</td> <td>{{ $t('input.datemathHelp.examples.now') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>now+24h</code></td> <td><code>now+24h</code></td>
<td>{{ $t('input.datepickerRange.math.examples.in24h') }}</td> <td>{{ $t('input.datemathHelp.examples.in24h') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>now/d</code></td> <td><code>now/d</code></td>
<td>{{ $t('input.datepickerRange.math.examples.today') }}</td> <td>{{ $t('input.datemathHelp.examples.today') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>now/w</code></td> <td><code>now/w</code></td>
<td>{{ $t('input.datepickerRange.math.examples.beginningOfThisWeek') }}</td> <td>{{ $t('input.datemathHelp.examples.beginningOfThisWeek') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>now/w+1w</code></td> <td><code>now/w+1w</code></td>
<td>{{ $t('input.datepickerRange.math.examples.endOfThisWeek') }}</td> <td>{{ $t('input.datemathHelp.examples.endOfThisWeek') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>now+30d</code></td> <td><code>now+30d</code></td>
<td>{{ $t('input.datepickerRange.math.examples.in30Days') }}</td> <td>{{ $t('input.datemathHelp.examples.in30Days') }}</td>
</tr> </tr>
<tr> <tr>
<td><code>{{ exampleDate }}||+1M/d</code></td> <td><code>{{ exampleDate }}||+1M/d</code></td>
<td> <td>
<i18n-t keypath="input.datepickerRange.math.examples.datePlusMonth"> <i18n-t keypath="input.datemathHelp.examples.datePlusMonth">
<code>{{ exampleDate }}</code> <code>{{ exampleDate }}</code>
</i18n-t> </i18n-t>
</td> </td>

View file

@ -47,9 +47,9 @@
/> />
<p> <p>
{{ $t('input.datepickerRange.math.canuse') }} {{ $t('input.datemathHelp.canuse') }}
<BaseButton class="has-text-primary" @click="showHowItWorks = true"> <BaseButton class="has-text-primary" @click="showHowItWorks = true">
{{ $t('input.datepickerRange.math.learnhow') }} {{ $t('input.datemathHelp.learnhow') }}
</BaseButton> </BaseButton>
</p> </p>

View file

@ -530,37 +530,6 @@
"to": "To", "to": "To",
"from": "From", "from": "From",
"fromto": "{from} to {to}", "fromto": "{from} to {to}",
"math": {
"canuse": "You can use date math to filter for relative dates.",
"learnhow": "Check out how it works",
"title": "Date Math",
"intro": "Date Math allows you to specifiy relative dates which are resolved on the fly by Vikunja when applying the filter.",
"expression": "Each Date Math expression starts with an anchor date, which can either be {0}, or a date string ending with {1}. This anchor date can optionally be followed by one or more maths expressions.",
"similar": "These expressions are similar to the ones provided by {0} and {1}.",
"add1Day": "Add one day",
"minus1Day": "Subtract one day",
"roundDay": "Round down to the nearest day",
"supportedUnits": "Supported time units are:",
"someExamples": "Some examples of time expressions:",
"units": {
"seconds": "Seconds",
"minutes": "Minutes",
"hours": "Hours",
"days": "Days",
"weeks": "Weeks",
"months": "Months",
"years": "Years"
},
"examples": {
"now": "Right now",
"in24h": "In 24h",
"today": "Today at 00:00",
"beginningOfThisWeek": "The beginning of this week at 00:00",
"endOfThisWeek": "The end of this week",
"in30Days": "In 30 days",
"datePlusMonth": "{0} plus one month at 00:00 of that day"
}
},
"ranges": { "ranges": {
"today": "Today", "today": "Today",
@ -579,6 +548,37 @@
"thisYear": "This Year", "thisYear": "This Year",
"restOfThisYear": "The Rest of This Year" "restOfThisYear": "The Rest of This Year"
} }
},
"datemathHelp": {
"canuse": "You can use date math to filter for relative dates.",
"learnhow": "Check out how it works",
"title": "Date Math",
"intro": "Date Math allows you to specifiy relative dates which are resolved on the fly by Vikunja when applying the filter.",
"expression": "Each Date Math expression starts with an anchor date, which can either be {0}, or a date string ending with {1}. This anchor date can optionally be followed by one or more maths expressions.",
"similar": "These expressions are similar to the ones provided by {0} and {1}.",
"add1Day": "Add one day",
"minus1Day": "Subtract one day",
"roundDay": "Round down to the nearest day",
"supportedUnits": "Supported time units are:",
"someExamples": "Some examples of time expressions:",
"units": {
"seconds": "Seconds",
"minutes": "Minutes",
"hours": "Hours",
"days": "Days",
"weeks": "Weeks",
"months": "Months",
"years": "Years"
},
"examples": {
"now": "Right now",
"in24h": "In 24h",
"today": "Today at 00:00",
"beginningOfThisWeek": "The beginning of this week at 00:00",
"endOfThisWeek": "The end of this week",
"in30Days": "In 30 days",
"datePlusMonth": "{0} plus one month at 00:00 of that day"
}
} }
}, },
"task": { "task": {