Removing shortened date i18n strings.

This commit is contained in:
softsimon 2021-07-18 01:02:02 +03:00
parent 7234734056
commit 21db5a4102
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
5 changed files with 62 additions and 190 deletions

View File

@ -69,16 +69,8 @@ export class TimeSinceComponent implements OnInit, OnChanges, OnDestroy {
case 'week': return $localize`:@@time-since:${dateStrings.i18nWeek}:DATE: ago`; break;
case 'day': return $localize`:@@time-since:${dateStrings.i18nDay}:DATE: ago`; break;
case 'hour': return $localize`:@@time-since:${dateStrings.i18nHour}:DATE: ago`; break;
case 'minute':
if (document.body.clientWidth < 768) {
return $localize`:@@time-since:${dateStrings.i18nMin}:DATE: ago`;
}
return $localize`:@@time-since:${dateStrings.i18nMinute}:DATE: ago`;
case 'second':
if (document.body.clientWidth < 768) {
return $localize`:@@time-since:${dateStrings.i18nSec}:DATE: ago`;
}
return $localize`:@@time-since:${dateStrings.i18nSecond}:DATE: ago`;
case 'minute': return $localize`:@@time-since:${dateStrings.i18nMinute}:DATE: ago`;
case 'second': return $localize`:@@time-since:${dateStrings.i18nSecond}:DATE: ago`;
}
} else {
switch (i) { // plural (2 days)
@ -87,16 +79,8 @@ export class TimeSinceComponent implements OnInit, OnChanges, OnDestroy {
case 'week': return $localize`:@@time-since:${dateStrings.i18nWeeks}:DATE: ago`; break;
case 'day': return $localize`:@@time-since:${dateStrings.i18nDays}:DATE: ago`; break;
case 'hour': return $localize`:@@time-since:${dateStrings.i18nHours}:DATE: ago`; break;
case 'minute':
if (document.body.clientWidth < 768) {
return $localize`:@@time-since:${dateStrings.i18nMins}:DATE: ago`;
}
return $localize`:@@time-since:${dateStrings.i18nMinutes}:DATE: ago`;
case 'second':
if (document.body.clientWidth < 768) {
return $localize`:@@time-since:${dateStrings.i18nSecs}:DATE: ago`;
}
return $localize`:@@time-since:${dateStrings.i18nSeconds}:DATE: ago`;
case 'minute': return $localize`:@@time-since:${dateStrings.i18nMinutes}:DATE: ago`;
case 'second': return $localize`:@@time-since:${dateStrings.i18nSeconds}:DATE: ago`;
}
}
}

View File

@ -69,16 +69,8 @@ export class TimeSpanComponent implements OnInit, OnChanges, OnDestroy {
case 'week': return $localize`:@@time-span:After ${dateStrings.i18nWeek}:DATE:`; break;
case 'day': return $localize`:@@time-span:After ${dateStrings.i18nDay}:DATE:`; break;
case 'hour': return $localize`:@@time-span:After ${dateStrings.i18nHour}:DATE:`; break;
case 'minute':
if (document.body.clientWidth < 768) {
return $localize`:@@time-span:After ${dateStrings.i18nMin}:DATE:`;
}
return $localize`:@@time-span:After ${dateStrings.i18nMinute}:DATE:`;
case 'second':
if (document.body.clientWidth < 768) {
return $localize`:@@time-span:After ${dateStrings.i18nSec}:DATE:`;
}
return $localize`:@@time-span:After ${dateStrings.i18nSecond}:DATE:`;
case 'minute': return $localize`:@@time-span:After ${dateStrings.i18nMinute}:DATE:`;
case 'second': return $localize`:@@time-span:After ${dateStrings.i18nSecond}:DATE:`;
}
} else {
switch (i) { // plural (2 days)
@ -87,16 +79,8 @@ export class TimeSpanComponent implements OnInit, OnChanges, OnDestroy {
case 'week': return $localize`:@@time-span:After ${dateStrings.i18nWeeks}:DATE:`; break;
case 'day': return $localize`:@@time-span:After ${dateStrings.i18nDays}:DATE:`; break;
case 'hour': return $localize`:@@time-span:After ${dateStrings.i18nHours}:DATE:`; break;
case 'minute':
if (document.body.clientWidth < 768) {
return $localize`:@@time-span:After ${dateStrings.i18nMins}:DATE:`;
}
return $localize`:@@time-span:After ${dateStrings.i18nMinutes}:DATE:`;
case 'second':
if (document.body.clientWidth < 768) {
return $localize`:@@time-span:After ${dateStrings.i18nSecs}:DATE:`;
}
return $localize`:@@time-span:After ${dateStrings.i18nSeconds}:DATE:`;
case 'minute': return $localize`:@@time-span:After ${dateStrings.i18nMinutes}:DATE:`;
case 'second': return $localize`:@@time-span:After ${dateStrings.i18nSeconds}:DATE:`;
}
}
}

View File

@ -70,16 +70,8 @@ export class TimeUntilComponent implements OnInit, OnChanges, OnDestroy {
case 'week': return $localize`:@@time-until:In ~${dateStrings.i18nWeek}:DATE:`; break;
case 'day': return $localize`:@@time-until:In ~${dateStrings.i18nDay}:DATE:`; break;
case 'hour': return $localize`:@@time-until:In ~${dateStrings.i18nHour}:DATE:`; break;
case 'minute':
if (document.body.clientWidth < 768) {
return $localize`:@@time-until:In ~${dateStrings.i18nMin}:DATE:`;
}
return $localize`:@@time-until:In ~${dateStrings.i18nMinute}:DATE:`;
case 'second':
if (document.body.clientWidth < 768) {
return $localize`:@@time-until:In ~${dateStrings.i18nSec}:DATE:`;
}
return $localize`:@@time-until:In ~${dateStrings.i18nSecond}:DATE:`;
case 'minute': return $localize`:@@time-until:In ~${dateStrings.i18nMinute}:DATE:`;
case 'second': return $localize`:@@time-until:In ~${dateStrings.i18nSecond}:DATE:`;
}
} else {
switch (i) { // plural (In ~2 days)
@ -88,16 +80,8 @@ export class TimeUntilComponent implements OnInit, OnChanges, OnDestroy {
case 'week': return $localize`:@@time-until:In ~${dateStrings.i18nWeeks}:DATE:`; break;
case 'day': return $localize`:@@time-until:In ~${dateStrings.i18nDays}:DATE:`; break;
case 'hour': return $localize`:@@time-until:In ~${dateStrings.i18nHours}:DATE:`; break;
case 'minute':
if (document.body.clientWidth < 768) {
return $localize`:@@time-until:In ~${dateStrings.i18nMins}:DATE:`;
}
return $localize`:@@time-until:In ~${dateStrings.i18nMinutes}:DATE:`;
case 'second':
if (document.body.clientWidth < 768) {
return $localize`:@@time-until:In ~${dateStrings.i18nSecs}:DATE:`;
}
return $localize`:@@time-until:In ~${dateStrings.i18nSeconds}:DATE:`;
case 'minute': return $localize`:@@time-until:In ~${dateStrings.i18nMinutes}:DATE:`;
case 'second': return $localize`:@@time-until:In ~${dateStrings.i18nSeconds}:DATE:`;
}
}
}

View File

@ -12,11 +12,7 @@ export const dates = (counter: number) => {
i18nHours: $localize`:@@date-base.hours:${counter}:DATE: hours`,
i18nMinute: $localize`:@@date-base.minute:${counter}:DATE: minute`,
i18nMinutes: $localize`:@@date-base.minutes:${counter}:DATE: minutes`,
i18nMin: $localize`:@@date-base.min:${counter}:DATE: min`,
i18nMins: $localize`:@@date-base.mins:${counter}:DATE: mins`,
i18nSecond: $localize`:@@date-base.second:${counter}:DATE: second`,
i18nSeconds: $localize`:@@date-base.seconds:${counter}:DATE: seconds`,
i18nSec: $localize`:@@date-base.sec:${counter}:DATE: sec`,
i18nSecs: $localize`:@@date-base.secs:${counter}:DATE: secs`,
}
}

View File

@ -2999,55 +2999,39 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">74</context>
<context context-type="linenumber">72</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">76</context>
<context context-type="linenumber">73</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">77</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">78</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">79</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">80</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">81</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">85</context>
<context context-type="linenumber">82</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">86</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">87</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">88</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">89</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">92</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">94</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">97</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-since/time-since.component.ts</context>
<context context-type="linenumber">99</context>
<context context-type="linenumber">83</context>
</context-group>
</trans-unit>
<trans-unit id="time-span" datatype="html">
@ -3074,55 +3058,39 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">74</context>
<context context-type="linenumber">72</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">76</context>
<context context-type="linenumber">73</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">77</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">78</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">79</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">80</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">81</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">85</context>
<context context-type="linenumber">82</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">86</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">87</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">88</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">89</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">92</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">94</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">97</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-span/time-span.component.ts</context>
<context context-type="linenumber">99</context>
<context context-type="linenumber">83</context>
</context-group>
</trans-unit>
<trans-unit id="date-base.minute" datatype="html">
@ -3160,55 +3128,39 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">75</context>
<context context-type="linenumber">73</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">77</context>
<context context-type="linenumber">74</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">78</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">79</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">80</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">81</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">82</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">86</context>
<context context-type="linenumber">83</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">87</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">88</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">89</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">90</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">93</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">95</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">98</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">100</context>
<context context-type="linenumber">84</context>
</context-group>
</trans-unit>
<trans-unit id="0094b97dd052620710f173e7aedf6807a1eba1f5" datatype="html">
@ -3851,46 +3803,18 @@
<context context-type="linenumber">14</context>
</context-group>
</trans-unit>
<trans-unit id="date-base.min" datatype="html">
<source><x id="DATE" equiv-text="counter"/> min</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/i18n/dates.ts</context>
<context context-type="linenumber">15</context>
</context-group>
</trans-unit>
<trans-unit id="date-base.mins" datatype="html">
<source><x id="DATE" equiv-text="counter"/> mins</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/i18n/dates.ts</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
<trans-unit id="date-base.second" datatype="html">
<source><x id="DATE" equiv-text="counter"/> second</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/i18n/dates.ts</context>
<context context-type="linenumber">17</context>
<context context-type="linenumber">15</context>
</context-group>
</trans-unit>
<trans-unit id="date-base.seconds" datatype="html">
<source><x id="DATE" equiv-text="counter"/> seconds</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/i18n/dates.ts</context>
<context context-type="linenumber">18</context>
</context-group>
</trans-unit>
<trans-unit id="date-base.sec" datatype="html">
<source><x id="DATE" equiv-text="counter"/> sec</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/i18n/dates.ts</context>
<context context-type="linenumber">19</context>
</context-group>
</trans-unit>
<trans-unit id="date-base.secs" datatype="html">
<source><x id="DATE" equiv-text="counter"/> secs</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/i18n/dates.ts</context>
<context context-type="linenumber">20</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
<trans-unit id="2799825781368047816" datatype="html">