Changed pid from 'org.eclipse.smarthome.core.i18nprovider' to 'org.eclipse.smarthome.i18n' (#127)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>pull/130/head
parent
c09ce6ef4f
commit
fca2365008
|
@ -24,7 +24,7 @@
|
|||
|
||||
var output = $('#geolocation')
|
||||
|
||||
$.getJSON(window.location.origin + '/rest/services/org.eclipse.smarthome.core.i18nprovider/config', function(response) {
|
||||
$.getJSON(window.location.origin + '/rest/services/org.eclipse.smarthome.i18n/config', function(response) {
|
||||
window.language = response;
|
||||
|
||||
if (!response.location) {
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
function send(configuration) {
|
||||
$.ajax({
|
||||
url : window.location.origin + '/rest/services/org.eclipse.smarthome.core.i18nprovider/config',
|
||||
url : window.location.origin + '/rest/services/org.eclipse.smarthome.i18n/config',
|
||||
data : JSON.stringify(configuration),
|
||||
type : 'PUT',
|
||||
dataType : 'json',
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
if (locale) {
|
||||
deferred.resolve(locale);
|
||||
} else {
|
||||
$http.get('/rest/services/org.eclipse.smarthome.core.i18nprovider/config')
|
||||
$http.get('/rest/services/org.eclipse.smarthome.i18n/config')
|
||||
.then(function (response) {
|
||||
var language;
|
||||
if (!response.data.language) {
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
getLocale: function () {
|
||||
const DEFAULT_LOCALE = 'en-UK';
|
||||
this.$http
|
||||
.get('services/org.eclipse.smarthome.core.i18nprovider/config')
|
||||
.get('services/org.eclipse.smarthome.i18n/config')
|
||||
.then(response => {
|
||||
const body = response.body;
|
||||
let selectedLang = DEFAULT_LOCALE;
|
||||
|
|
Loading…
Reference in New Issue