← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 22066: Analytics, minor performance improvement related to translations

 

------------------------------------------------------------
revno: 22066
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2016-02-27 13:08:07 +0100
message:
  Analytics, minor performance improvement related to translations
modified:
  dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.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-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java	2016-02-27 12:02:42 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java	2016-02-27 12:08:07 +0000
@@ -930,12 +930,14 @@
         Map<String, String> map = new HashMap<>();
         
         Calendar calendar = PeriodType.getCalendar();
+        
+        Locale locale = i18nService.getCurrentLocale();
 
         for ( DimensionalObject dimension : dimensions )
         {
             List<DimensionalItemObject> items = new ArrayList<>( dimension.getItems() );
             
-            i18nService.internationalise( items );
+            i18nService.internationalise( items, locale );
 
             for ( DimensionalItemObject object : items )
             {