Skip to content

Commit

Permalink
added now and tomorrow in french (scrapinghub#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnoone authored and waqasshabbir committed May 27, 2017
1 parent 157317d commit 2b63c4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/languagefiles/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ in:
- en

simplifications:
- maintenant: 0 seconde
- avant-hier: 2 jour
- hier: 1 jour
- aujourd'hui: 0 jours
- demain: dans 1 jour
- d'une: 1
- un: 1
- une: 1
Expand All @@ -113,4 +115,3 @@ simplifications:
- moins\s(?:de\s)?(\d+)\s?s: \1 seconde
- moins\s(?:de\s)?(\d+)\s?m: \1 minute
- moins\s(?:de\s)?(\d+)\s?h: \1 heure

2 changes: 2 additions & 0 deletions tests/test_languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ def test_translation(self, shortname, datetime_string, expected_translation):
param('vi', "Hôm qua 08:16", "1 day 08:16"),
param('vi', "Hôm nay 15:39", "0 day 15:39"),
# French
param('fr', "maintenant", "0 second"),
param('fr', "demain", "in 1 day"),
param('fr', u"Il y a moins d'une minute", "ago 1 minute"),
param('fr', u"Il y a moins de 30s", "ago 30 second"),
# Tagalog
Expand Down

0 comments on commit 2b63c4f

Please sign in to comment.