weblate documentation, add keys in step one

This commit is contained in:
Tykayn 2022-02-02 15:38:51 +01:00 committed by tykayn
parent 420ae43d7c
commit eacaf6bc87
8 changed files with 1419 additions and 1408 deletions

View File

@ -3,7 +3,7 @@
Les chaînes sont traduites via des clés de fichiers JSON
exemple: [src/assets/i18n/FR.json]()
La mise en place de weblate pour faire des traductions collaboratives reste à réaliser
https://framagit.org/framasoft/framadate/funky-framadate-front/-/issues/112
La mise en place de weblate pour faire des traductions collaboratives a été faite.
Vous pouvez contribuer ici https://weblate.framasoft.org/projects/funky-framadate/funky-framadate-front
Nous avons récupéré les chaînes de traduction du projet Framadate v1, il faudra faire un nettoyage des clés et valeurs inutilisées dans les fichiers de traduction.

View File

@ -26,7 +26,9 @@
<div class="poll-description">
<div class="columns">
<div class="column">
<label for="descr">Description (optionnel)</label>
<label for="descr">
{{ 'creation.description' | translate }}
</label>
<div class="rich-toolbar" *ngIf="pollService.form.value.richTextMode">
richTextMode activé
</div>
@ -38,16 +40,21 @@
class="is-large is-full input"
formControlName="description"
required
maxlength="300"
[maxlength]="environment.description_max_chars"
></textarea>
<div
class="text-info"
[ngClass]="{ 'has-background-warning': pollService.form.value.description.length === 300 }"
[ngClass]="{
'has-background-warning':
pollService.form.value.description.length === environment.description_max_chars
}"
>
<p>
<span class="counter-current" *ngIf="pollService.form.value.description.length">
{{ pollService.form.value.description.length }} / </span
>300 caractères maximum
{{ pollService.form.value.description.length }} /
</span>
{{ environment.description_max_chars }}
{{ 'creation.description_constraint' | translate }}
</p>
</div>
</div>

View File

@ -17,6 +17,7 @@ export class StepOneComponent implements OnInit {
step_max: any;
@Input()
form: FormGroup;
public environment = environment;
constructor(
public pollService: PollService,

View File

@ -44,8 +44,9 @@
"choose_title_placeholder": "title",
"name": "I can also specify my name if i want",
"name_placeholder": "my name",
"description": "and the description would be",
"description_placeholder": "summary of the poll's purpose"
"description": "Description (optionnal)",
"description_placeholder": "description",
"description_constraint": "max chars"
},
"dates": {
"title": "Config especially for the dates",

View File

@ -55,8 +55,9 @@
"name_placeholder": "mon nom",
"email": "Mon email",
"email_placeholder": "mon-email@example.com",
"description": "et la description serait",
"description_placeholder": "description"
"description": "Description (facultatif)",
"description_placeholder": "description",
"description_constraint": "caractères maximum"
},
"popup": {
"cancel": {

View File

@ -35,6 +35,7 @@ export const environment = {
expiresDaysDelay: 30,
frontDomain: 'http://127.0.0.1:4200',
interval_days_default: 7,
description_max_chars: 900,
maxCountOfAnswers: 300,
production: false,
showDemoWarning: false,

View File

@ -3,7 +3,7 @@
&:active {
outline: black;
outline-style: solid;
outline-offset: 0.25rem;
outline-offset: 0.05rem;
}
}
a {