Revision: 5153
http://taskcoach.svn.sourceforge.net/taskcoach/?rev=5153&view=revAuthor: fniessink
Date: 2012-02-11 22:12:27 +0000 (Sat, 11 Feb 2012)
Log Message:
-----------
Prevent crash when language is Norsk.
Modified Paths:
--------------
branches/Release1_3_Branch/taskcoach/changes.in/changes.py
branches/Release1_3_Branch/taskcoach/taskcoachlib/i18n/__init__.py
branches/Release1_3_Branch/taskcoach/taskcoachlib/meta/data.py
Modified: branches/Release1_3_Branch/taskcoach/changes.in/changes.py
===================================================================
--- branches/Release1_3_Branch/taskcoach/changes.in/changes.py
2012-02-10 22:46:59 UTC (rev 5152)
+++ branches/Release1_3_Branch/taskcoach/changes.in/changes.py
2012-02-11 22:12:27 UTC (rev 5153)
<at> <at> -22,7 +22,7 <at> <at>
releases = [
-Release('1.3.8', 'February 10, 2012',
+Release('1.3.8', 'February 11, 2012',
summary='''This is a mixed feature and bugfix release.''',
featuresAdded=[
Feature('''In task viewers, late tasks, due soon tasks, and over due
<at> <at> -45,6 +45,10 <at> <at>
Bug('''Don't change the selection when deleting or hiding items that
are not selected. When adding a new item, select it. When adding a new sub
item, also expand the parent item if necessary.''', '3484930'),
+ Bug('''When using the Norsk translation on Linux (both Nynorsk and
+Bokmal), Task Coach would crash when displaying a date picker control. This is
+a bug in the underlying wxWidgets toolkit. Worked around by using another
+locale for dates and times when the language is Norsk.''', '1820497'),
],
),
Modified: branches/Release1_3_Branch/taskcoach/taskcoachlib/i18n/__init__.py
===================================================================
--- branches/Release1_3_Branch/taskcoach/taskcoachlib/i18n/__init__.py
2012-02-10 22:46:59 UTC (rev 5152)
+++ branches/Release1_3_Branch/taskcoach/taskcoachlib/i18n/__init__.py
2012-02-11 22:12:27 UTC (rev 5153)
<at> <at> -82,6 +82,19 <at> <at>
self.__locale.AddCatalogLookupPathPrefix(localeDir)
self.__locale.AddCatalog('wxstd')
break
+ if '_NO' in locale.getlocale(locale.LC_TIME)[0]:
+ # nb_BO and ny_NO cause crashes in the wx.DatePicker. Set the
+ # time part of the locale to some other locale. Since we don't
+ # know which ones are available we try a few:
+ for lang in ['', 'en_GB.utf8', 'C']:
+ try:
+ locale.setlocale(locale.LC_TIME, lang)
+ except locale.Error:
+ continue
+ current_language = locale.getlocale(locale.LC_TIME)[0]
+ if current_language and '_NO' in current_language:
+ continue
+ break
def _localeStrings(self, language):
''' Extract language and language_country from language if possible. '''
Modified: branches/Release1_3_Branch/taskcoach/taskcoachlib/meta/data.py
===================================================================
--- branches/Release1_3_Branch/taskcoach/taskcoachlib/meta/data.py
2012-02-10 22:46:59 UTC (rev 5152)
+++ branches/Release1_3_Branch/taskcoach/taskcoachlib/meta/data.py
2012-02-11 22:12:27 UTC (rev 5153)
<at> <at> -22,7 +22,7 <at> <at>
version = '1.3.8' # Current version number of the application
tskversion = 34 # Current version number of the task file format, changed to 34 for release 1.3.5.
-release_day = '10' # Day number of the release, 1-31, as string
+release_day = '11' # Day number of the release, 1-31, as string
release_month = 'February' # Month of the release in plain English
release_year = '2012' # Year of the release as string
release_status = 'stable' # One of 'alpha', 'beta', 'stable'
This was sent by the
SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________
Taskcoach-commits mailing list
Taskcoach-commits-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/taskcoach-commits