Skip to content

Commit

Permalink
Build!
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmarreirosdeoliveira committed Nov 25, 2015
1 parent 1c1b15e commit a1537e3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
13 changes: 6 additions & 7 deletions dist/idai-components-no-tpls.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,20 +648,19 @@ angular.module('idai.components')
* @author: Daniel M. de Oliveira
*/
angular.module('idai.components')
.factory('transl8', ['$http', 'language', function($http, primaryBrowserLanguage) {

var ENGLISH_LANG='en';
var TRANSL8_JSONP_URL = "//crazyhorse.archaeologie.uni-koeln.de/transl8/" +
"translation/jsonp?application=arachne4_frontend&lang={LANG}&callback=JSON_CALLBACK";
.factory('transl8', ['$http', 'language', 'componentsSettings',
function($http, language, componentsSettings) {

var ENGLISH_LANG= 'en';
var GERMAN_LANG= 'de';

var translationLang=ENGLISH_LANG;
var translationsLoaded = false;
var translations={}; // Map: [transl8_key,translation].


if (primaryBrowserLanguage.browserPrimaryLanguage()=='de') translationLang='de';
var transl8Url = TRANSL8_JSONP_URL.replace('{LANG}',translationLang);
if (language.browserPrimaryLanguage()==GERMAN_LANG) translationLang=GERMAN_LANG;
var transl8Url = componentsSettings.transl8Uri.replace('{LANG}',translationLang);



Expand Down
13 changes: 6 additions & 7 deletions dist/idai-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,20 +648,19 @@ angular.module('idai.components')
* @author: Daniel M. de Oliveira
*/
angular.module('idai.components')
.factory('transl8', ['$http', 'language', function($http, primaryBrowserLanguage) {

var ENGLISH_LANG='en';
var TRANSL8_JSONP_URL = "//crazyhorse.archaeologie.uni-koeln.de/transl8/" +
"translation/jsonp?application=arachne4_frontend&lang={LANG}&callback=JSON_CALLBACK";
.factory('transl8', ['$http', 'language', 'componentsSettings',
function($http, language, componentsSettings) {

var ENGLISH_LANG= 'en';
var GERMAN_LANG= 'de';

var translationLang=ENGLISH_LANG;
var translationsLoaded = false;
var translations={}; // Map: [transl8_key,translation].


if (primaryBrowserLanguage.browserPrimaryLanguage()=='de') translationLang='de';
var transl8Url = TRANSL8_JSONP_URL.replace('{LANG}',translationLang);
if (language.browserPrimaryLanguage()==GERMAN_LANG) translationLang=GERMAN_LANG;
var transl8Url = componentsSettings.transl8Uri.replace('{LANG}',translationLang);



Expand Down
Loading

0 comments on commit a1537e3

Please sign in to comment.