Skip to content

Commit

Permalink
Better translation for countries and snackbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Rusakov authored and lanseg committed Dec 12, 2024
1 parent 55c514d commit 73b3515
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/app/auth/register/register.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class RegisterComponent implements OnInit, AfterViewInit {
this.apiService.register(user)
.subscribe(async (res) => {
if (res) {
this.snackBar.open('Le compte est en cours de validation. Vous recevrez un courriel de confirmation sous peu.',
this.snackBar.open($localize`Le compte est en cours de validation. Vous recevrez un courriel de confirmation sous peu.`,
'Ok', {
panelClass: 'notification-success'
});
Expand Down
4 changes: 2 additions & 2 deletions src/app/constants.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ export class ConstantsService {

static COUNTRIES = {
CH: {
name: $localize`@@country.ch.name:Suisse`
name: $localize`:@@country.ch.name:Suisse`
},
FR: {
name: $localize`@@country.fr.name:France`
name: $localize`:@@country.fr.name:France`
}
};
}
24 changes: 24 additions & 0 deletions src/locale/messages.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,14 @@
<context context-type="linenumber">4</context>
</context-group>
</trans-unit>
<trans-unit id="7357049916461888222" datatype="html">
<source>Le compte est en cours de validation. Vous recevrez un courriel de confirmation sous peu.</source>
<target>Ihr Antrag wird nun geprüft. Nach der Bearbeitung werden Sie eine Bestätigungs-E-Mail erhalten.</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/auth/register/register.component.ts</context>
<context context-type="linenumber">176</context>
</context-group>
</trans-unit>
<trans-unit id="3c61ea855eb003bf89e2e45ff21ef90b31698b7e" datatype="html">
<source> Mot de passe différent </source>
<target> Unterschiedliches Passwort </target>
Expand Down Expand Up @@ -1229,6 +1237,22 @@
<context context-type="linenumber">38</context>
</context-group>
</trans-unit>
<trans-unit id="country.ch.name" datatype="html">
<source>Suisse</source>
<target>Schweiz</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/constants.service.ts</context>
<context context-type="linenumber">43</context>
</context-group>
</trans-unit>
<trans-unit id="country.fr.name" datatype="html">
<source>France</source>
<target>Frankreich</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/constants.service.ts</context>
<context context-type="linenumber">46</context>
</context-group>
</trans-unit>
<trans-unit id="catalog_productSearch" datatype="html">
<source>Rechercher un produit...</source>
<target>Suche nach Produkt...</target>
Expand Down
48 changes: 31 additions & 17 deletions src/locale/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.html</context>
<context context-type="linenumber">275</context>
<context context-type="linenumber">271</context>
</context-group>
</trans-unit>
<trans-unit id="order.format" datatype="html">
Expand Down Expand Up @@ -516,49 +516,49 @@
<source>Aperçu de la commande</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.html</context>
<context context-type="linenumber">250</context>
<context context-type="linenumber">246</context>
</context-group>
</trans-unit>
<trans-unit id="c636dac74a6334afdb5a46b0f00d3eab112ac86a" datatype="html">
<source> Description / Disponibilité </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.html</context>
<context context-type="linenumber">258,260</context>
<context context-type="linenumber">254,256</context>
</context-group>
</trans-unit>
<trans-unit id="6a2ba9564b69d972da37a12b9585bcf695840b7b" datatype="html">
<source> Un ou plusieurs produits commandés doivent être devisés préalablement.<x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br&gt;"/> N&apos;hésitez pas à demander gratuitement votre devis sans engagement.<x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br&gt;"/> Vous pourrez ensuite définitevement valider votre commande. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.html</context>
<context context-type="linenumber">265,269</context>
<context context-type="linenumber">261,265</context>
</context-group>
</trans-unit>
<trans-unit id="c89e723452bbac4e2efcba2d065cfa270b69157c" datatype="html">
<source>Frais de traitement</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.html</context>
<context context-type="linenumber">272</context>
<context context-type="linenumber">268</context>
</context-group>
</trans-unit>
<trans-unit id="85cb84b6f88dadcd6440896192d753ca27820f71" datatype="html">
<source>Total TTC</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.html</context>
<context context-type="linenumber">273</context>
<context context-type="linenumber">269</context>
</context-group>
</trans-unit>
<trans-unit id="1247d29f880201e6abc4d51cd3d370bd42c881f0" datatype="html">
<source>Même format pour tous les produits</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.html</context>
<context context-type="linenumber">283</context>
<context context-type="linenumber">279</context>
</context-group>
</trans-unit>
<trans-unit id="21fded46b491c78ba3517620dccc07ea6bb4054e" datatype="html">
<source>Prix</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.html</context>
<context context-type="linenumber">310</context>
<context context-type="linenumber">306</context>
</context-group>
</trans-unit>
<trans-unit id="4359053901144852078" datatype="html">
Expand All @@ -572,21 +572,14 @@
<source>Acheter maintenant</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.ts</context>
<context context-type="linenumber">101</context>
<context context-type="linenumber">102</context>
</context-group>
</trans-unit>
<trans-unit id="8353026757372386829" datatype="html">
<source>Demander un devis</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.ts</context>
<context context-type="linenumber">102</context>
</context-group>
</trans-unit>
<trans-unit id="7734965975022713233" datatype="html">
<source>Suisse</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.ts</context>
<context context-type="linenumber">374</context>
<context context-type="linenumber">103</context>
</context-group>
</trans-unit>
<trans-unit id="order.delete" datatype="html">
Expand Down Expand Up @@ -948,6 +941,13 @@
<context context-type="linenumber">158,159</context>
</context-group>
</trans-unit>
<trans-unit id="7357049916461888222" datatype="html">
<source>Le compte est en cours de validation. Vous recevrez un courriel de confirmation sous peu.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/auth/register/register.component.ts</context>
<context context-type="linenumber">176</context>
</context-group>
</trans-unit>
<trans-unit id="2848e8f3d69e0f895e3935f2f92cade234ee3aeb" datatype="html">
<source>Réinitialiser son mot de passe</source>
<context-group purpose="location">
Expand Down Expand Up @@ -1102,6 +1102,20 @@
<context context-type="linenumber">38</context>
</context-group>
</trans-unit>
<trans-unit id="country.ch.name" datatype="html">
<source>Suisse</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/constants.service.ts</context>
<context context-type="linenumber">43</context>
</context-group>
</trans-unit>
<trans-unit id="country.fr.name" datatype="html">
<source>France</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/constants.service.ts</context>
<context context-type="linenumber">46</context>
</context-group>
</trans-unit>
<trans-unit id="catalog_productSearch" datatype="html">
<source>Rechercher un produit...</source>
<context-group purpose="location">
Expand Down

0 comments on commit 73b3515

Please sign in to comment.