[utils] Use native french month names
This commit is contained in:
parent
f6717dec8a
commit
3e4185c396
2 changed files with 4 additions and 6 deletions
|
@ -638,13 +638,11 @@ class TestUtil(unittest.TestCase):
|
|||
def test_month_by_name(self):
|
||||
self.assertEqual(month_by_name(None), None)
|
||||
self.assertEqual(month_by_name('December', 'en'), 12)
|
||||
self.assertEqual(month_by_name('decembre', 'fr'), 12)
|
||||
self.assertEqual(month_by_name('décembre', 'fr'), 12)
|
||||
self.assertEqual(month_by_name('December'), 12)
|
||||
self.assertEqual(month_by_name('decembre'), None)
|
||||
self.assertEqual(month_by_name('décembre'), None)
|
||||
self.assertEqual(month_by_name('Unknown', 'unknown'), None)
|
||||
|
||||
def test_m
|
||||
|
||||
def test_parse_codecs(self):
|
||||
self.assertEqual(parse_codecs(''), {})
|
||||
self.assertEqual(parse_codecs('avc1.77.30, mp4a.40.2'), {
|
||||
|
|
|
@ -94,8 +94,8 @@ ENGLISH_MONTH_NAMES = [
|
|||
MONTH_NAMES = {
|
||||
'en': ENGLISH_MONTH_NAMES,
|
||||
'fr': [
|
||||
'janvier', 'fevrier', 'mars', 'avril', 'mai', 'juin',
|
||||
'juillet', 'aout', 'septembre', 'octobre', 'novembre', 'decembre'],
|
||||
'janvier', 'février', 'mars', 'avril', 'mai', 'juin',
|
||||
'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
|
||||
}
|
||||
|
||||
KNOWN_EXTENSIONS = (
|
||||
|
|
Loading…
Reference in a new issue