dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #37222
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19046: removed notfication for missing translation file
------------------------------------------------------------
revno: 19046
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-04-28 17:28:51 +0200
message:
removed notfication for missing translation file
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js
--
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-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js 2015-04-17 13:14:21 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js 2015-04-28 15:28:51 +0000
@@ -2,7 +2,7 @@
var d2Services = angular.module('d2Services', ['ngResource'])
/* Factory for loading translation strings */
-.factory('i18nLoader', function ($q, $http, SessionStorageService, DialogService) {
+.factory('i18nLoader', function ($q, $http, SessionStorageService) {
var getTranslationStrings = function(locale){
var defaultUrl = 'i18n/i18n_app.properties';
@@ -19,13 +19,7 @@
var promise = $http.get(url).then(function(response){
tx= {locale: locale, keys: dhis2.util.parseJavaProperties(response.data)};
return tx;
- }, function(){
- var dialogOptions = {
- headerText: 'missing_translation_file',
- bodyText: 'missing_translation_using_default'
- };
-
- DialogService.showDialog({}, dialogOptions);
+ }, function(){
var p = $http.get(defaultUrl).then(function(response){
tx= {locale: locale, keys: dhis2.util.parseJavaProperties(response.data)};
return tx;