Merge pull request #84 from TWBlueQS/next-gen

Fixed a bug with galician, vasque and catala languages and arrow when selecting user default as application's language.
This commit is contained in:
Manuel Cortez 2016-08-03 11:07:13 -05:00 committed by GitHub
commit 3fca5c20fb

View File

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from arrow import locales from arrow import locales
from arrow.locales import Locale from arrow.locales import Locale
@ -23,7 +23,7 @@ def get_locale(name):
return locale_cls() return locale_cls()
class CatalaLocale(Locale): class CatalaLocale(Locale):
names = ['ca', 'ca_ca'] names = ['ca', 'ca_es', 'ca_ca']
past = 'Fa {0}' past = 'Fa {0}'
future = '{0}' # I don't know what's the right phrase in catala for the future. future = '{0}' # I don't know what's the right phrase in catala for the future.
@ -48,9 +48,9 @@ class CatalaLocale(Locale):
day_abbreviations = ['', 'Dilluns', 'Dimars', 'Dimecres', 'Dijous', 'Divendres', 'Disabte', 'Diumenge'] day_abbreviations = ['', 'Dilluns', 'Dimars', 'Dimecres', 'Dijous', 'Divendres', 'Disabte', 'Diumenge']
class GalicianLocale(Locale): class GalicianLocale(Locale):
names = ['gl', 'gl_gl'] names = ['gl', 'gl_es', 'gl_gl']
past = 'Fai {0}' past = 'Fai {0}'
future = '{0}' # I don't know what's the right phrase in Galician for the future. future = 'En {0}'
timeframes = { timeframes = {
'now': 'Agora mesmo', 'now': 'Agora mesmo',
@ -73,7 +73,7 @@ class GalicianLocale(Locale):
day_abbreviations = ['', 'Lun', 'Mar', 'Mer', 'xov', 'Ven' 'Sab', 'Dom'] day_abbreviations = ['', 'Lun', 'Mar', 'Mer', 'xov', 'Ven' 'Sab', 'Dom']
class BasqueLocale(Locale): class BasqueLocale(Locale):
names = ['eu', 'eu_eu'] names = ['eu', 'eu_es', 'eu_eu']
past = 'duela {0}' past = 'duela {0}'
future = '{0} igarota' future = '{0} igarota'