Translation work

Closes issues #48 and #44

- Add all translation keys into admin.component.html
- Add missing translation keys needed for admin component to en.json and fr.json
- Minor corrections into fr.json
- Add missing keys from fr.json to en.json
- Translate keys of en.json
- Format admin.component.html with tabs
This commit is contained in:
Come_744 2019-11-30 00:40:22 +01:00
parent ad5bb4380b
commit abe07bc978
3 changed files with 227 additions and 139 deletions

View File

@ -1,100 +1,164 @@
<form>
<h1>Nom du sondage</h1>
<!--Infos-->
<h2>Informations du sondage</h2>
<label for="title">Le titre du sondage est</label>
<input type="text" name="title">
<label for="desc">et sa description :</label>
<textarea name="desc"> </textarea>
<label for="name">Je peux aussi préciser mon nom si je le souhaite :</label>
<input type="text" name="name">
<!--Params-->
<h2>Paramètres</h2>
<h3>Visibilité des réponses</h3>
<section class="row">
<label for="answer-visible">Je veux que</label>
<select name="answer-visible">
<option value="all" selected>tout le monde</option>
<option value="per">seulement moi</option>
</select>
<label for="answer-visible">puisse voir les réponses au sondage</label>
</section>
<h3>Votes</h3>
<section>
<label for="vote-date">Les personnes sondées pourront voter jusqu'au</label>
<input type="date" name="vote-date">
</section>
<section>
<label for="alter-vote">Elles</label>
<select name="alter-vote">
<option value="yes" selected>auront</option>
<option value="no">n'auront pas</option>
</select>
<label for="type-vote">la possibilité de modifier</label>
<select name="type-vote">
<option value="solo" selected>leur vote</option>
<option value="all">tout les votes</option>
</select>
</section>
<h1>Nom du sondage</h1>
<label for="del-vote">Pour repartir à zéro, je peux tous les supprimer :</label>
<input class="btn btn--alert btn--outline" type="submit" name="del-vote" value="Supprimer tous les votes">
<h3>Commentaires</h3>
<label for="del-com">Si je le souhaite,je peux supprimer l'ensemble des commentaires</label>
<input class="btn btn--alert btn--outline" type="submit" name="del-com" value="Supprimer tous les commentaires">
<h3>Archivage</h3>
<section class="row">
<label for="arch">Ce sondage ne sera plus éditable à partir du</label>
<input type="date" name="arch">
</section>
<h3>Accés au sondage</h3>
<section class="row">
<label for="password">Je</label>
<select name="password">
<option value="yes" selected>n'ai pas besoin</option>
<option value="no">voudrais</option>
</select>
<label for="alter-vote">qu'il soit protégé par un mot de passe</label>
</section>
<h3>Tout supprimer</h3>
<label for="del">Dans le cas où vous voudriez tout supprimer, ce bouton est fait pour vous :</label>
<input class="btn btn--alert" type="submit" name="del" value="Supprimer le sondage">
<h2>Liens d'accès au sondage</h2>
<h3>Coté administrateur·ice</h3>
<label for="copy-link-admin">Pour accéder au sondage et à tous ses paramètres :
https://framadate.org/urladmindusondage</label>
<input class="btn btn--mini" type="submit" name="copy-link-admin" value="Copier le lien">
<a href="#" class="next">Voir le sondage coté administrateur·ice</a>
<h3>Côté sondé·es</h3>
<label for="copy-link">Pour accéder au sondage et à tous ses paramètres :
https://framadate.org/urladmindusondage</label>
<input class="btn btn--mini" type="submit" name="copy-link" value="Copier le lien">
<a href="#" class="next">Voir le sondage</a>
<h3>Recevoir les liens par mail</h3>
<label for="mail">Pour être sur de retrouver ces liens, nous pouvons vous les envoyer sur votre mail :</label>
<input type="email" name="mail">
<input class="btn btn--mini" type="submit" name="send-mail" value="Envoyer les liens du sondage">
<!--Infos-->
<h2>{{"admin.info_section_title"|translate}}</h2>
<section class="deletion">
{{"admin.deletion"|translate}}
{{"admin.deletion_desc"|translate}}
{{"admin.deletion_btn"|translate}}
<label for="title">
{{"admin.choose_title"|translate}}
</label>
<input type="text" name="title">
</section>
<section class="links">
{{"admin.link"|translate}}
{{"admin.link_admin"|translate}}
{{"admin.link_admin_desc"|translate}}
{{"admin.link_admin_btn"|translate}}
{{"admin.copy_link"|translate}}
<label for="desc">
{{"admin.description"|translate}}
</label>
<textarea name="desc"> </textarea>
{{"admin.polled_people"|translate}}
{{"admin.polled_people_desc"|translate}}
{{"admin.polled_people_btn"|translate}}
{{"admin.email_links"|translate}}
{{"admin.email_links_desc"|translate}}
{{"admin.email_links_key"|translate}}
{{"admin.email_links_btn"|translate}}
</section>
<label for="name">
{{"creation.name"|translate}}
</label>
<input type="text" name="name">
<!--Params-->
<h2>{{"admin.settings_section_title"|translate}}</h2>
<h3>{{"visibility.title"|translate}}</h3>
<section class="row">
<label for="answer-visible">
{{"visibility.visibility_want"|translate}}
</label>
<select name="answer-visible">
<option value="all" selected>
{{"visibility.visibility_link"|translate}}
</option>
<option value="per">
{{"visibility.visibility_nobody"|translate}}
</option>
</select>
<label for="answer-visible">
{{"visibility.visibility_see"|translate}}
</label>
</section>
<h3>{{"visibility.votes"|translate}}</h3>
<section>
<label for="vote-date">
{{"visibility.archiving"|translate}}
</label>
<input type="date" name="vote-date">
</section>
<section>
<label for="alter-vote">
{{"visibility.archiving_start"|translate}}
</label>
<select name="alter-vote">
<option value="yes" selected>
{{"visibility.archiving_can"|translate}}
</option>
<option value="no">
{{"visibility.archiving_can_not"|translate}}
</option>
</select>
<label for="type-vote">
{{"visibility.archiving_end"|translate}}
</label>
<select name="type-vote">
<option value="solo" selected>
{{"visibility.modfiy_their"|translate}}
</option>
<option value="all">
{{"visibility.modfiy_everyone"|translate}}
</option>
</select>
</section>
<label for="del-vote">
{{"admin.votes_deletion_desc"|translate}}
</label>
<input class="btn btn--alert btn--outline" type="submit"
name="del-vote" value="{{'admin.votes_deletion_btn'|translate}}">
<h3>{{"admin.comments_deletion_title"|translate}}</h3>
<label for="del-com">
{{"admin.comments_deletion_desc"|translate}}
</label>
<input class="btn btn--alert btn--outline" type="submit"
name="del-com" value="{{'admin.comments_deletion_btn'|translate}}">
<h3>{{"admin.archiving_title"|translate}}</h3>
<section class="row">
<label for="arch">
{{"admin.archiving_desc"|translate}}
</label>
<input type="date" name="arch">
</section>
<h3>{{"visibility.access"|translate}}</h3>
<section class="row">
<label for="password">Je</label>
<select name="password">
<option value="yes" selected>
{{"visibility.access_want_yes"|translate}}
</option>
<option value="no">
{{"visibility.access_want_no"|translate}}
</option>
</select>
<label for="alter-vote">
{{"visibility.access_protect"|translate}}
</label>
</section>
<h3>{{"admin.deletion"|translate}}</h3>
<label for="del"> {{"admin.deletion_desc"|translate}} </label>
<input class="btn btn--alert" type="submit"
name="del" value="{{'admin.deletion_btn'|translate}}">
<!-- Access link -->
<h2>{{"admin.link"|translate}}</h2>
<h3>{{"admin.link_admin"|translate}}</h3>
<label for="copy-link-admin">
{{"admin.link_admin_desc"|translate}}
https://framadate.org/urladmindusondage
</label>
<input class="btn btn--mini" type="submit" name="copy-link-admin"
value="{{'admin.copy_link'|translate}}">
<a href="#" class="next">{{"admin.link_admin_btn"|translate}}</a>
<h3>{{"admin.polled_people"|translate}}</h3>
<label for="copy-link">
{{"admin.polled_people_desc"|translate}}
https://framadate.org/urladmindusondage</label>
<input class="btn btn--mini" type="submit" name="copy-link"
value="{{'admin.copy_link'|translate}}">
<a href="#" class="next">{{"admin.polled_people_btn"|translate}}</a>
<h3>{{"admin.email_links"|translate}}</h3>
<label for="mail">{{"admin.email_links_desc"|translate}}</label>
<input type="email" name="mail">
<input class="btn btn--mini" type="submit" name="send-mail"
value="{{'admin.email_links_btn'|translate}}">
<section class="deletion">
{{"admin.deletion"|translate}}
{{"admin.deletion_desc"|translate}}
{{"admin.deletion_btn"|translate}}
</section>
<section class="links">
{{"admin.link"|translate}}
{{"admin.link_admin"|translate}}
{{"admin.link_admin_desc"|translate}}
{{"admin.link_admin_btn"|translate}}
{{"admin.copy_link"|translate}}
{{"admin.polled_people"|translate}}
{{"admin.polled_people_desc"|translate}}
{{"admin.polled_people_btn"|translate}}
{{"admin.email_links"|translate}}
{{"admin.email_links_desc"|translate}}
{{"admin.email_links_key"|translate}}
{{"admin.email_links_btn"|translate}}
</section>
</form>

View File

@ -33,13 +33,15 @@
},
"dates": {
"title": "Config especially for the dates",
"hours_different": "I want to put slots for each day",
"hours_different": "I want to put",
"hours_each_day": "slots for each day",
"multiple": {
"identical": "same",
"different": "possibly different"
},
"add": "Add a date choice",
"add_time": "Add a time span",
"empty": "Empty",
"count_dates": "choices of dates",
"count_time": "choices of hour span",
"add_interval": "Add a date interval",
@ -66,49 +68,60 @@
"visibility": {
"top_txt": "A few settings...",
"title": "Visibility of answers",
"visibility_want": "Je veux que",
"visibility_link": "Ceux avec le lien",
"visibility_nobody": "personne ne",
"visibility_see": "puisse voir les réponses au sondage.",
"visibility_want": "I want that",
"visibility_link": "anybody having the link",
"visibility_nobody": "nobody",
"visibility_see": "can see answers to the pool",
"votes": "Votes",
"votes_possible": "Les réponses possibles seront :",
"votes_possible_single": "Uniquement « oui »",
"votes_possible_normal": "« oui » ou « peut-être »",
"votes_possible_full": "« oui » ou « peut-être » ou « non »",
"archiving": "Les personnes sondées pourront voter jusquau ",
"archiving_start": "Elles",
"archiving_can": "auront",
"archiving_can_not": "n'auront pas",
"archiving_end": "la possibilité de modifier",
"modfiy_their": "leur vote",
"modfiy_everyone": "tous les votes",
"access": "Accès au sondage",
"access_url": "Les votants pourront y accéder via cette adresse :",
"votes_possible": "Possible answers will be",
"votes_possible_single": "only \"yes\"",
"votes_possible_normal": "\"yes\" or \"maybe\"",
"votes_possible_full": "\"yes\" or \"maybe\" or \"no\"",
"archiving": "Polled people will be able to vote up to",
"archiving_start": "They",
"archiving_can": "will",
"archiving_can_not": "will not",
"archiving_end": "be able to edit",
"modfiy_their": "their vote",
"modfiy_everyone": "all the votes",
"access": "Access to the poll",
"access_url": "Pooled people will be able to access it via this address:",
"access_url_key": "URL",
"see_pass": "voir",
"access_instructions": "peut contenir des lettres, chiffres et des tirets",
"access_want": "Je",
"access_want_yes": "souhaite",
"access_want_no": "n'ai pas besoin",
"access_protect": "quil soit protégé par un mot de passe.",
"validate_btn": "Créer ce sondage !"
"see_pass": "see",
"access_instructions": "may contain letters, numbers and dashes",
"access_want": "I",
"access_want_yes": "want",
"access_want_no": "do not need",
"access_protect": "it to be protected by a password",
"validate_btn": "Create this poll!"
},
"admin": {
"deletion": "Tout supprimer",
"deletion_desc": "Dans le cas où vous voudriez tout supprimer, ce bouton est fait pour vous :",
"deletion_btn": "Supprimer le sondage",
"link": "Liens daccès au sondage",
"link_admin": "Coté administrateur·ice",
"link_admin_desc": "Pour accéder au sondage et à tous ses paramètres :",
"link_admin_btn": "Voir le sondage coté administrateur·ice",
"copy_link": "Copier le lien",
"polled_people": "Côté sondé·es",
"polled_people_desc": "Pour accéder au sondage et à tous ses paramètres : https://framadate.org/urladmindusondage",
"polled_people_btn": "Voir le sondage",
"email_links": "Recevoir les liens par mail",
"email_links_desc": "Pour être sur de retrouver ces liens, nous pouvons vous les envoyer sur votre mail",
"email_links_key": "mail",
"email_links_btn": "Envoyer les liens du sondage"
"choose_title": "The pool title is",
"description": "and its description is",
"info_section_title": "Pool informations",
"settings_section_title": "Settings",
"votes_deletion_desc": "To start over from scratch, I can delete them all",
"votes_deletion_btn": "Delete all the votes",
"comments_deletion_title": "Comments",
"comments_deletion_desc": "If I wish, I can delete all the comments",
"comments_deletion_btn": "Delete all the comments",
"archiving_title": "Archiving",
"archiving_desc": "This poll will no longer be editable from",
"deletion": "Delete all",
"deletion_desc": "In the case you want do delete everything, this button is for you:",
"deletion_btn": "Delete the poll",
"link": "Links to access the survey",
"link_admin": "Administrator's side",
"link_admin_desc": "To access the poll and all its settings",
"link_admin_btn": "To see the poll as an administrator",
"copy_link": "Copy the link",
"polled_people": "Polled side",
"polled_people_desc": "To access the poll and all its settings",
"polled_people_btn": "See the poll",
"email_links": "Receive the links by email",
"email_links_desc": "To be sure to find these links, they can be sent to you by email",
"email_links_key": "email",
"email_links_btn": "Send the links to the poll"
},
"pollGraphic": {
"choiceColorblind": "I am",

View File

@ -26,13 +26,13 @@
},
"choose_title": "Dont le titre sera",
"choose_title_placeholder": "titre",
"name": "Je peux aussi préciser mon nom si je le souhaite",
"name": "Je peux aussi préciser mon nom si je le souhaite :",
"name_placeholder": "mon nom",
"description": "et la description serait",
"description_placeholder": "description"
},
"dates": {
"title": "Config spécialement pour les dates ",
"title": "Config spécialement pour les dates",
"hours_different": "Je souhaite mettre des créneaux horaires",
"hours_each_day": "pour chaque journée",
"multiple": {
@ -69,7 +69,7 @@
"top_txt": "Un peu de paramétrage…",
"title": "Visibilité des réponses",
"visibility_want": "Je veux que",
"visibility_link": "Tout le monde",
"visibility_link": "tout ceux qui ont le lien",
"visibility_nobody": "seulement moi",
"visibility_see": "puisse voir les réponses au sondage.",
"votes": "Votes",
@ -77,7 +77,7 @@
"votes_possible_single": "Uniquement « oui »",
"votes_possible_normal":  oui » ou « peut-être »",
"votes_possible_full":  oui » ou « peut-être » ou « non »",
"archiving": "Les personnes sondées pourront voter jusquau ",
"archiving": "Les personnes sondées pourront voter jusquau",
"archiving_start": "Elles",
"archiving_can": "auront",
"archiving_can_not": "n'auront pas",
@ -85,7 +85,7 @@
"modfiy_their": "leur vote",
"modfiy_everyone": "tous les votes",
"access": "Accès au sondage",
"access_url": "Les votants pourront y accéder via cette adresse :",
"access_url": "Les votants pourront y accéder via cette adresse :",
"access_url_key": "URL",
"see_pass": "voir",
"access_instructions": "peut contenir des lettres, chiffres et des tirets",
@ -96,6 +96,17 @@
"validate_btn": "Créer ce sondage !"
},
"admin": {
"choose_title": "Le titre du sondage est",
"description": "et sa description :",
"info_section_title": "Informations du sondage",
"settings_section_title": "Paramètres",
"votes_deletion_desc": "Pour repartir à zéro, je peux tous les supprimer :",
"votes_deletion_btn": "Supprimer tous les votes",
"comments_deletion_title": "Commentaires",
"comments_deletion_desc": "Si je le souhaite, je peux supprimer l'ensemble des commentaires",
"comments_deletion_btn": "Supprimer tous les commentaires",
"archiving_title": "Archivage",
"archiving_desc": "Ce sondage ne sera plus éditable à partir du",
"deletion": "Tout supprimer",
"deletion_desc": "Dans le cas où vous voudriez tout supprimer, ce bouton est fait pour vous :",
"deletion_btn": "Supprimer le sondage",
@ -105,7 +116,7 @@
"link_admin_btn": "Voir le sondage coté administrateur·ice",
"copy_link": "Copier le lien",
"polled_people": "Côté sondé·es",
"polled_people_desc": "Pour accéder au sondage et à tous ses paramètres : https://framadate.org/urladmindusondage",
"polled_people_desc": "Pour accéder au sondage et à tous ses paramètres :",
"polled_people_btn": "Voir le sondage",
"email_links": "Recevoir les liens par mail",
"email_links_desc": "Pour être sur de retrouver ces liens, nous pouvons vous les envoyer sur votre mail",