Some text fixes, fix for turkey locales in arrow

This commit is contained in:
2015-03-15 18:24:15 -06:00
parent 69aa27c33e
commit ca9f5b0c30
7 changed files with 2363 additions and 2459 deletions

View File

@@ -3,10 +3,13 @@ from arrow import locales
from arrow.locales import Locale
def fix():
''' This function adds the Catala, Basque and galician locales to the list of locales supported in Arrow'''
''' This function adds the Catala, Basque and galician locales to the list of locales supported in Arrow.
it also fixes capitalizations in names from turkish and arabian locales.'''
locales.CatalaLocale = CatalaLocale
locales.GalicianLocale = GalicianLocale
locales.BasqueLocale = BasqueLocale
locales.TurkishLocale.names[-1] = "tr_tr"
locales.ArabicLocale.names[-1] = "ar_eg"
# We need to reassign the locales list for updating the list with our new contents.
locales._locales = locales._map_locales()