forked from tykayn/funky-framadate-front
weblate documentation, add keys in step one
This commit is contained in:
parent
420ae43d7c
commit
eacaf6bc87
@ -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.
|
||||
|
@ -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>
|
||||
|
@ -17,6 +17,7 @@ export class StepOneComponent implements OnInit {
|
||||
step_max: any;
|
||||
@Input()
|
||||
form: FormGroup;
|
||||
public environment = environment;
|
||||
|
||||
constructor(
|
||||
public pollService: PollService,
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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,
|
||||
|
@ -3,7 +3,7 @@
|
||||
&:active {
|
||||
outline: black;
|
||||
outline-style: solid;
|
||||
outline-offset: 0.25rem;
|
||||
outline-offset: 0.05rem;
|
||||
}
|
||||
}
|
||||
a {
|
||||
|
Loading…
Reference in New Issue
Block a user