dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16519
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6299: Support either - or _to identify a translation resource. Minor fix.
------------------------------------------------------------
revno: 6299
committer: Jason P. Pickering <jason.p.pickering@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-03-19 14:52:16 +0200
message:
Support either - or _to identify a translation resource. Minor fix.
modified:
dhis-2/dhis-services/dhis-service-i18n/src/main/java/org/hisp/dhis/i18n/resourcebundle/DefaultResourceBundleManager.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-i18n/src/main/java/org/hisp/dhis/i18n/resourcebundle/DefaultResourceBundleManager.java'
--- dhis-2/dhis-services/dhis-service-i18n/src/main/java/org/hisp/dhis/i18n/resourcebundle/DefaultResourceBundleManager.java 2012-03-19 09:58:21 +0000
+++ dhis-2/dhis-services/dhis-service-i18n/src/main/java/org/hisp/dhis/i18n/resourcebundle/DefaultResourceBundleManager.java 2012-03-19 12:52:16 +0000
@@ -199,7 +199,7 @@
private Locale getLocaleFromName( String name )
{
Pattern pattern = Pattern.compile( "^" + globalResourceBundleName
- + "(?:[_\-]([a-z]{2})(?:_([A-Z]{2})(?:_(.+))?)?)?" + EXT_RESOURCE_BUNDLE + "$" );
+ + "(?:[_-]([a-z]{2})(?:_([A-Z]{2})(?:_(.+))?)?)?" + EXT_RESOURCE_BUNDLE + "$" );
Matcher matcher = pattern.matcher( name );