-
{{item.name}} , {{item.honorificPrefix}}
+
{{'name' | thingTranslate: item}} , {{item.honorificPrefix}}
{{item.telephone}}
diff --git a/src/app/modules/data/types/place/place-detail-content.component.ts b/src/app/modules/data/types/place/place-detail-content.component.ts
index 85ca75c6..78e58aac 100644
--- a/src/app/modules/data/types/place/place-detail-content.component.ts
+++ b/src/app/modules/data/types/place/place-detail-content.component.ts
@@ -13,8 +13,7 @@
* this program. If not, see .
*/
import {Component, Input} from '@angular/core';
-import {SCBuilding, SCFloor, SCPointOfInterest, SCRoom, SCThing, SCTranslations} from '@openstapps/core';
-import {SCThings, SCThingTranslator} from '@openstapps/core';
+import {SCBuilding, SCFloor, SCPointOfInterest, SCRoom, SCThings} from '@openstapps/core';
import {DataProvider} from '../../data.provider';
/**
@@ -30,25 +29,6 @@ export class PlaceDetailContentComponent {
* TODO
*/
@Input() item: SCBuilding | SCRoom | SCPointOfInterest | SCFloor;
- /**
- * TODO
- */
- @Input() language: keyof SCTranslations;
- /**
- * TODO
- */
- objectKeys = Object.keys;
- /**
- * TODO
- */
- translator: SCThingTranslator;
-
- /**
- * TODO
- */
- constructor() {
- this.translator = new SCThingTranslator(this.language);
- }
/**
* TODO
diff --git a/src/app/modules/data/types/place/place-detail-content.html b/src/app/modules/data/types/place/place-detail-content.html
index bc33a943..688f27f8 100644
--- a/src/app/modules/data/types/place/place-detail-content.html
+++ b/src/app/modules/data/types/place/place-detail-content.html
@@ -1,15 +1,15 @@
-
+
- Building:
+ {{'inPlace' | propertyNameTranslate: item | titlecase}}
- {{item.inPlace.name}}
+ {{'name' | thingTranslate: item.inPlace}}
diff --git a/src/app/modules/data/types/place/place-list-item.html b/src/app/modules/data/types/place/place-list-item.html
index 08a0781b..f7d6730d 100644
--- a/src/app/modules/data/types/place/place-list-item.html
+++ b/src/app/modules/data/types/place/place-list-item.html
@@ -2,14 +2,14 @@
-
{{item.name}}
-
{{item.description}}
-
{{item.type}}
+
{{'name' | thingTranslate: item}}
+
{{'description' | thingTranslate: item}}
+
{{'type' | thingTranslate: item}}
- {{item.inPlace.name}}
+ {{'name' | thingTranslate: item.inPlace}}
diff --git a/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts b/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts
index 7b2ac9f2..48ea83b7 100644
--- a/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts
+++ b/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts
@@ -16,7 +16,7 @@
import moment, {Moment} from 'moment';
import {AfterViewInit, ChangeDetectorRef, Component, Input} from '@angular/core';
-import {SCDish, SCPlace, SCThing, SCThingTranslator, SCTranslations} from '@openstapps/core';
+import {SCDish, SCPlace} from '@openstapps/core';
import {PlaceMensaService} from './place-mensa-service';
/**
@@ -44,11 +44,6 @@ export class PlaceMensaDetailComponent implements AfterViewInit {
*/
@Input() item: SCPlace;
- /**
- * TODO
- */
- @Input() language: keyof SCTranslations;
-
/**
* TODO
*/
@@ -59,15 +54,9 @@ export class PlaceMensaDetailComponent implements AfterViewInit {
*/
startingDay: Moment;
- /**
- * TODO
- */
- translator: SCThingTranslator;
-
constructor(private mensaService: PlaceMensaService, private changeDectectorRef: ChangeDetectorRef) {
// TODO: translation
- this.translator = new SCThingTranslator(this.language);
this.startingDay = moment();
this.startingDay.hour(0);
this.startingDay.minute(0);
@@ -120,7 +109,7 @@ export class PlaceMensaDetailComponent implements AfterViewInit {
}
}
}
- if (selectedDishes.length) {
+ if (selectedDishes.length > 0) {
out[startingDay.format('L')] = selectedDishes;
}
// tslint:disable-next-line:no-parameter-reassignment
diff --git a/src/app/modules/data/types/semester/semester-detail-content.component.ts b/src/app/modules/data/types/semester/semester-detail-content.component.ts
index d7b680f9..227811d6 100644
--- a/src/app/modules/data/types/semester/semester-detail-content.component.ts
+++ b/src/app/modules/data/types/semester/semester-detail-content.component.ts
@@ -13,8 +13,7 @@
* this program. If not, see .
*/
import {Component, Input} from '@angular/core';
-import {SCSemester, SCThing, SCTranslations} from '@openstapps/core';
-import {SCThingTranslator} from '@openstapps/core';
+import {SCSemester} from '@openstapps/core';
/**
* TODO
@@ -28,23 +27,4 @@ export class SemesterDetailContentComponent {
* TODO
*/
@Input() item: SCSemester;
- /**
- * TODO
- */
- @Input() language: keyof SCTranslations;
- /**
- * TODO
- */
- objectKeys = Object.keys;
- /**
- * TODO
- */
- translator: SCThingTranslator;
-
- /**
- * TODO
- */
- constructor() {
- this.translator = new SCThingTranslator(this.language);
- }
}
diff --git a/src/app/modules/data/types/semester/semester-detail-content.html b/src/app/modules/data/types/semester/semester-detail-content.html
index 1849ddfc..4fdc5ed8 100644
--- a/src/app/modules/data/types/semester/semester-detail-content.html
+++ b/src/app/modules/data/types/semester/semester-detail-content.html
@@ -1,2 +1,3 @@
-
-
+
diff --git a/src/app/modules/data/types/semester/semester-list-item.html b/src/app/modules/data/types/semester/semester-list-item.html
index 0015bed6..308bedd5 100644
--- a/src/app/modules/data/types/semester/semester-list-item.html
+++ b/src/app/modules/data/types/semester/semester-list-item.html
@@ -2,12 +2,12 @@
-
{{item.name}}
+
{{'name' | thingTranslate: item}}
{{item.startDate | amDateFormat: 'll'}} - {{item.endDate | amDateFormat:'ll'}}
-
{{item.type}}
+
{{'type' | thingTranslate: item}}
diff --git a/src/app/modules/data/types/video/video-detail-content.component.ts b/src/app/modules/data/types/video/video-detail-content.component.ts
index 0e260c67..657f291f 100644
--- a/src/app/modules/data/types/video/video-detail-content.component.ts
+++ b/src/app/modules/data/types/video/video-detail-content.component.ts
@@ -13,8 +13,7 @@
* this program. If not, see .
*/
import {Component, Input} from '@angular/core';
-import {SCThing, SCTranslations, SCVideo} from '@openstapps/core';
-import {SCThingTranslator} from '@openstapps/core';
+import {SCVideo} from '@openstapps/core';
/**
* TODO
@@ -28,23 +27,4 @@ export class VideoDetailContentComponent {
* TODO
*/
@Input() item: SCVideo;
- /**
- * TODO
- */
- @Input() language: keyof SCTranslations;
- /**
- * TODO
- */
- objectKeys = Object.keys;
- /**
- * TODO
- */
- translator: SCThingTranslator;
-
- /**
- * TODO
- */
- constructor() {
- this.translator = new SCThingTranslator(this.language);
- }
}
diff --git a/src/app/modules/data/types/video/video-detail-content.html b/src/app/modules/data/types/video/video-detail-content.html
index bf6f172c..1e19edc4 100644
--- a/src/app/modules/data/types/video/video-detail-content.html
+++ b/src/app/modules/data/types/video/video-detail-content.html
@@ -1,6 +1,6 @@
-
-
-
-
+
+
+
+
diff --git a/src/app/modules/data/types/video/video-list-item.html b/src/app/modules/data/types/video/video-list-item.html
index bf2fe409..714ce432 100644
--- a/src/app/modules/data/types/video/video-list-item.html
+++ b/src/app/modules/data/types/video/video-list-item.html
@@ -2,10 +2,10 @@
-
{{item.name}}
-
-
Duration: {{item.duration | amDuration:'seconds'}}
-
{{item.type}}
+
{{'name' | thingTranslate: item}}
+
+
{{'duration' | propertyNameTranslate: item | titlecase}}: {{item.duration | amDuration:'seconds'}}
+
{{'type' | thingTranslate: item}}
diff --git a/src/assets/i18n/de.json b/src/assets/i18n/de.json
index 08a02d00..07f9b7a9 100644
--- a/src/assets/i18n/de.json
+++ b/src/assets/i18n/de.json
@@ -5,7 +5,19 @@
"detail": {
"TITLE": "Detailansicht",
"NOT_FOUND": "Nicht gefunden",
- "COULD_NOT_CONNECT": "Verbindung fehlgeschlagen"
+ "COULD_NOT_CONNECT": "Verbindung fehlgeschlagen",
+ "address": {
+ "TITLE": "Adresse",
+ "STREET": "Straße",
+ "POSTCODE": "Postleitzahl",
+ "CITY": "Stadt",
+ "REGION": "Region",
+ "Country": "Land",
+ "POST_OFFICE_BOX": "Postfach"
+ },
+ "offers": {
+ "TITLE": "Angebote"
+ }
},
"types": {
"dish": {
@@ -13,12 +25,25 @@
"AVG_NUTRITION_INFO": "Durchschnittliche Nährwertangaben",
"CALORIES": "Brennwert",
"FAT_TOTAL": "Fett",
- "FAT_SATURATED": "davon gesättinge Fettsäuren",
+ "FAT_SATURATED": "davon gesättigte Fettsäuren",
"CARBOHYDRATE" : "Kohlenhydrate",
"SALT": "Salz",
"SUGAR": "davon Zucker",
"PROTEIN": "Protein"
}
+ },
+ "origin": {
+ "TITLE": "Ursprung",
+ "USER": "Nutzer",
+ "REMOTE": "Datenquelle",
+ "detail": {
+ "CREATED": "Erstellt am",
+ "UPDATED": "Aktualisiert am",
+ "MODIFIED": "Geändert am",
+ "INDEXED": "Indexiert am",
+ "MAINTAINER": "zur Verfügung gestellt von",
+ "RESPONSIBLE": "Verantwortlich"
+ }
}
}
},
diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json
index 2e852052..d850cd64 100644
--- a/src/assets/i18n/en.json
+++ b/src/assets/i18n/en.json
@@ -5,7 +5,19 @@
"detail": {
"TITLE": "Details",
"NOT_FOUND": "Not found",
- "COULD_NOT_CONNECT": "Couldn't connect"
+ "COULD_NOT_CONNECT": "Couldn't connect",
+ "address": {
+ "TITLE": "address",
+ "STREET": "street",
+ "POSTCODE": "postcode",
+ "CITY": "city",
+ "REGION": "region",
+ "Country": "country",
+ "POST_OFFICE_BOX": "post office box"
+ },
+ "offers": {
+ "TITLE": "offers"
+ }
},
"types": {
"dish": {
@@ -19,6 +31,19 @@
"SUGAR": "Sugars",
"PROTEIN": "Protein"
}
+ },
+ "origin": {
+ "TITLE": "origin",
+ "USER": "user",
+ "REMOTE": "remote",
+ "detail": {
+ "CREATED": "created at",
+ "UPDATED": "updated at",
+ "MODIFIED": "modified at",
+ "INDEXED": "indexed",
+ "MAINTAINER": "maintainer",
+ "RESPONSIBLE": "responsible entity"
+ }
}
}
},
@@ -45,7 +70,7 @@
},
"settings": {
"resetAlert.title": "Reset all settings?",
- "resetAlert.message": "Are you shure to reset all settings to defaults values?",
+ "resetAlert.message": "Are you sure to reset all settings to their default values?",
"resetAlert.buttonYes": "yes",
"resetAlert.buttonCancel": "cancel",
"resetToast.message": "Settings reset",