Browse Source

Fix/improve paginator range label i18n

pull/8485/head
KenTandrian 23 hours ago
committed by Thomas Kaul
parent
commit
c4ce00e890
  1. 6
      CHANGELOG.md
  2. 2
      apps/client/src/app/adapter/custom-paginator-intl.ts
  3. 8
      apps/client/src/locales/messages.ca.xlf
  4. 8
      apps/client/src/locales/messages.de.xlf
  5. 8
      apps/client/src/locales/messages.es.xlf
  6. 8
      apps/client/src/locales/messages.fr.xlf
  7. 8
      apps/client/src/locales/messages.it.xlf
  8. 8
      apps/client/src/locales/messages.ja.xlf
  9. 8
      apps/client/src/locales/messages.ko.xlf
  10. 8
      apps/client/src/locales/messages.nl.xlf
  11. 8
      apps/client/src/locales/messages.pl.xlf
  12. 8
      apps/client/src/locales/messages.pt.xlf
  13. 8
      apps/client/src/locales/messages.tr.xlf
  14. 8
      apps/client/src/locales/messages.uk.xlf
  15. 7
      apps/client/src/locales/messages.xlf
  16. 8
      apps/client/src/locales/messages.zh.xlf

6
CHANGELOG.md

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Fixed
- Fixed the localization of the paginator range label by extracting it as a full phrase
## 3.101.0 - 2026-11-28
### Changed

2
apps/client/src/app/adapter/custom-paginator-intl.ts

@ -30,7 +30,7 @@ export class CustomPaginatorIntl extends MatPaginatorIntl {
const total = this.formatNumber(Math.max(length, 0));
return `${range} ${$localize`of`} ${total}`;
return $localize`${range}:range: of ${total}:total:`;
};
public setLocale(aLocale: string) {

8
apps/client/src/locales/messages.ca.xlf

@ -5119,6 +5119,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">Seleccioneu Fitxer</target>

8
apps/client/src/locales/messages.de.xlf

@ -4545,6 +4545,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">Datei auswählen</target>

8
apps/client/src/locales/messages.es.xlf

@ -4522,6 +4522,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">Seleccionar archivo</target>

8
apps/client/src/locales/messages.fr.xlf

@ -4521,6 +4521,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">Selectionner un Fichier</target>

8
apps/client/src/locales/messages.it.xlf

@ -4522,6 +4522,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">Seleziona il file</target>

8
apps/client/src/locales/messages.ja.xlf

@ -4759,6 +4759,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">ファイルを選択</target>

8
apps/client/src/locales/messages.ko.xlf

@ -4751,6 +4751,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">파일 선택</target>

8
apps/client/src/locales/messages.nl.xlf

@ -4521,6 +4521,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">Selecteer bestand</target>

8
apps/client/src/locales/messages.pl.xlf

@ -4718,6 +4718,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">Wybierz plik</target>

8
apps/client/src/locales/messages.pt.xlf

@ -4521,6 +4521,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">Selecionar Ficheiro</target>

8
apps/client/src/locales/messages.tr.xlf

@ -3746,6 +3746,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">Dosya Seç</target>

8
apps/client/src/locales/messages.uk.xlf

@ -5479,6 +5479,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="new"><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">Вибрати файл</target>

7
apps/client/src/locales/messages.xlf

@ -4333,6 +4333,13 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<context-group purpose="location">

8
apps/client/src/locales/messages.zh.xlf

@ -4735,6 +4735,14 @@
<context context-type="linenumber">20</context>
</context-group>
</trans-unit>
<trans-unit id="7176656706914974584" datatype="html">
<source><x id="range" equiv-text="range"/> of <x id="total" equiv-text="total"/></source>
<target state="translated">第 <x id="range" equiv-text="range"/> 条,共 <x id="total" equiv-text="total"/> 条</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/adapter/custom-paginator-intl.ts</context>
<context context-type="linenumber">33</context>
</context-group>
</trans-unit>
<trans-unit id="4347553215219271086" datatype="html">
<source>Select File</source>
<target state="translated">选择文件</target>

Loading…
Cancel
Save