Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 357866 Details for
Bug 482034
www-apps/trac-1.0.1 - migrate to distutils-r1.eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/trac-1.0.1-changeset_11690.diff
trac-1.0.1-changeset_11690.diff (text/plain), 1.66 KB, created by
Bertrand Jacquin
on 2013-09-04 22:20:23 UTC
(
hide
)
Description:
files/trac-1.0.1-changeset_11690.diff
Filename:
MIME Type:
Creator:
Bertrand Jacquin
Created:
2013-09-04 22:20:23 UTC
Size:
1.66 KB
patch
obsolete
>------------------------------------------------------------------------ >r11690 | cboos | 2013-02-18 23:22:16 +0100 (Mon, 18 Feb 2013) | 11 lines > >1.0.2dev: ... and a follow-up to r11689, as there were still 2 test failures. > >The functional tests TestAdminMilestoneDue and >TestAdminMilestoneDetailDue would fail with an "Invalid Date" error >when the "en_US.mo" compiled catalog is missing. > >In fact, we should always have 'en_US' in the list of available >translations, as it's the "source" language so it shouldn't matter if >we have the compiled catalog or not. Ensuring we always have it fixes >the tests. > > >Index: trac/util/translation.py >=================================================================== >--- trac/util/translation.py (revision 11689) >+++ trac/util/translation.py (revision 11690) >@@ -339,11 +339,14 @@ > directory is enough. > """ > try: >- return [dirname for dirname >- in pkg_resources.resource_listdir('trac', 'locale') >- if '.' not in dirname >- and (not check_catalog or pkg_resources.resource_exists( >+ locales = [dirname for dirname >+ in pkg_resources.resource_listdir('trac', 'locale') >+ if '.' not in dirname >+ and (not check_catalog or pkg_resources.resource_exists( > 'trac', 'locale/%s/LC_MESSAGES/messages.mo' % dirname))] >+ if 'en_US' not in locales: >+ locales.append('en_US') >+ return locales > except Exception: > return [] > > >------------------------------------------------------------------------
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 482034
:
356648
|
356650
|
356652
|
357850
|
357858
|
357860
|
357862
|
357864
| 357866 |
357868
|
357870
|
357872
|
357874
|
357876
|
357878
|
357880
|
357882
|
357884
|
357886
|
357888
|
376934
|
377034
|
377036
|
377038