Skip to content

Commit

Permalink
feat(package/calendar): French translation done
Browse files Browse the repository at this point in the history
  • Loading branch information
louistiti committed Jun 6, 2019
1 parent a67a447 commit ae07397
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 13 deletions.
12 changes: 6 additions & 6 deletions packages/calendar/data/answers/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@
"<li>\"%list%\", avec %todos_nb% éléments.</li>",
"<li>\"%list%\", contenant %todos_nb% éléments.</li>"
],
"no_uncompleted_todo": [
"no_unchecked_todo": [
"Vous n'avez pas d'élément en attente dans votre liste \"%list%\".",
"Vous n'avez aucun élément en attente dans votre liste \"%list%\"."
],
"no_completed_todo": [
"Et vous n'avez pas d'élément complété dans votre liste \"%list%\".",
"Et vous n'avez aucun élément complété dans votre liste \"%list%\"."
],
"uncompleted_todos_listed": [
"Voici les éléments en attente de votre liste \"%list\" :<br><br><ul>%result%</ul><br>Restez motivé !",
"Voici les éléments en attente de votre liste \"%list\" :<br><br><ul>%result%</ul><br>Continuez ainsi !"
"unchecked_todos_listed": [
"Voici les éléments en attente de votre liste \"%list%\" :<br><br><ul>%result%</ul><br>Restez motivé !",
"Voici les éléments en attente de votre liste \"%list%\" :<br><br><ul>%result%</ul><br>Continuez ainsi !"
],
"completed_todos_listed": [
"Et voici les éléments complétés de votre liste \"%list\" :<br><br><ul>%result%</ul>"
"Et voici les éléments complétés de votre liste \"%list%\" :<br><br><ul>%result%</ul>"
],
"list_todo_element": [
"<li>%todo%.</li>"
Expand All @@ -69,7 +69,7 @@
"Entendu, j'ai ajouté ceci à votre liste \"%list%\" :<br><br><ul>%result%</ul>",
"Ce qui suit vient d'être ajouté à votre liste \"%list%\" :<br><br><ul>%result%</ul>"
],
"todos_uncompleted": [
"todos_unchecked": [
"J'ai décomplété ceci de votre liste \"%list%\" :<br><br><ul>%result%</ul>",
"Ce qui suit vient d'être décomplété de votre liste \"%list%\" :<br><br><ul>%result%</ul>"
],
Expand Down
4 changes: 3 additions & 1 deletion packages/calendar/data/expressions/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
},
"view_list": {
"expressions": [
"Show my list",
"Show the list",
"What is in my list?",
"What is in the list?"
],
Expand Down Expand Up @@ -206,7 +208,7 @@
}
]
},
"uncomplete_todos": {
"uncheck_todos": {
"expressions": [
"Uncheck from the list",
"Uncheck from my list",
Expand Down
171 changes: 167 additions & 4 deletions packages/calendar/data/expressions/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
"expressions": [
"Crée la liste",
"Crée une liste"
],
"entities": [
{
"type": "trim",
"name": "list",
"conditions": [
{
"type": "after_last",
"from": "liste"
}
]
}
]
},
"view_lists": {
Expand All @@ -14,28 +26,179 @@
"Quelles sont mes listes ?"
]
},
"view_list": {
"expressions": [
"Montre ma liste",
"Montre la liste",
"Qu'est-ce qu'il y a dans ma liste ?",
"Qu'est-ce qu'il y a dans la liste ?"
],
"entities": [
{
"type": "trim",
"name": "list",
"conditions": [
{
"type": "after_last",
"from": "liste"
}
]
}
]
},
"rename_list": {
"expressions": [
"Renomme la liste en liste",
"Renomme ma liste en liste"
"Renomme la liste en",
"Renomme ma liste en"
],
"entities": [
{
"type": "trim",
"name": "old_list",
"conditions": [
{
"type": "between",
"from": "liste",
"to": "en"
}
]
},
{
"type": "trim",
"name": "new_list",
"conditions": [
{
"type": "after_last",
"from": "en"
}
]
}
]
},
"delete_list": {
"expressions": [
"Supprime la liste",
"Supprime ma liste"
],
"entities": [
{
"type": "trim",
"name": "list",
"conditions": [
{
"type": "after_last",
"from": "liste"
}
]
}
]
},
"add_todos": {
"expressions": [
"Ajoute à la liste",
"Ajoute à ma liste"
],
"entities": [
{
"type": "trim",
"name": "todos",
"conditions": [
{
"type": "between",
"from": "ajoute",
"to": "à"
},
{
"type": "between",
"from": "ajoute",
"to": "a"
}
]
},
{
"type": "trim",
"name": "list",
"conditions": [
{
"type": "after_last",
"from": "liste"
}
]
}
]
},
"complete_todos": {
"expressions": [
"Complète de la liste",
"Complete de ma liste"
"Coche de la liste",
"Coche de ma liste",
"Complète de ma liste"
],
"entities": [
{
"type": "trim",
"name": "todos",
"conditions": [
{
"type": "between",
"from": "coche",
"to": "de"
},
{
"type": "between",
"from": "complète",
"to": "de"
},
{
"type": "between",
"from": "complete",
"to": "de"
}
]
},
{
"type": "trim",
"name": "list",
"conditions": [
{
"type": "after_last",
"from": "liste"
}
]
}
]
},
"uncheck_todos": {
"expressions": [
"Décoche de la liste",
"Décoche de ma liste"
],
"entities": [
{
"type": "trim",
"name": "todos",
"conditions": [
{
"type": "between",
"from": "décoche",
"to": "de"
},
{
"type": "between",
"from": "decoche",
"to": "de"
}
]
},
{
"type": "trim",
"name": "list",
"conditions": [
{
"type": "after_last",
"from": "liste"
}
]
}
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/calendar/todolist.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ def complete_todos(string, entities):
'result': result
}))

def uncomplete_todos(string, entities):
"""Complete todos"""
def uncheck_todos(string, entities):
"""Uncheck todos"""

# List name
listname = ''
Expand Down

0 comments on commit ae07397

Please sign in to comment.