Skip to content

Commit

Permalink
admin & public-search: add missing translations
Browse files Browse the repository at this point in the history
* Adds missing translations.

Co-Authored-by: Alicia Zangger <alicia.zangger@rero.ch>
  • Loading branch information
Alicia Zangger committed Dec 4, 2019
1 parent f8fe3c7 commit 64aba54
Show file tree
Hide file tree
Showing 15 changed files with 257 additions and 134 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h3 class="mb-0 mr-4">{{ recordType|translate }}</h3>
<div class="form-group">
<label class="control-label" translate>Import record from BNF</label>
<div class="input-group">
<input #searchinput (keyup.enter)="importFromEan(searchinput.value)" type="text" class="form-control" placeholder="Enter an EAN" aria-label="Enter an EAN" aria-describedby="button-import">
<input #searchinput (keyup.enter)="importFromEan(searchinput.value)" type="text" class="form-control" placeholder="{{ 'Enter an EAN' | translate }}" aria-label="Enter an EAN" aria-describedby="button-import">
<div class="input-group-append">
<button (click)="importFromEan(searchinput.value)" class="btn btn-outline-info" type="button" id="button-import" translate>Import</button>
</div>
Expand Down
9 changes: 5 additions & 4 deletions projects/admin/src/app/menu/menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@

import { Component, OnInit } from '@angular/core';
import { UserService } from '../service/user.service';
import { CoreConfigService, TranslateService } from '@rero/ng-core';
import { CoreConfigService } from '@rero/ng-core';
import { TranslateService as CoreTranslateService} from '@rero/ng-core';
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import { TranslateService as NgxTranslateService } from '@ngx-translate/core';
import { TranslateService } from '@ngx-translate/core';

@Component({
selector: 'admin-menu',
Expand Down Expand Up @@ -59,8 +60,8 @@ export class MenuComponent implements OnInit {
private activeLanguagesMenuItem;

constructor(
private appTranslateService: TranslateService,
private translateService: NgxTranslateService,
private appTranslateService: CoreTranslateService,
private translateService: TranslateService,
private configService: CoreConfigService,
private userService: UserService
) { }
Expand Down
56 changes: 28 additions & 28 deletions projects/admin/src/app/service/record-routing.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,24 @@ export class RecordRoutingService {
showSearchInput: false,
types: [
{
key: 'documents',
label: 'Documents',
key: _('documents'),
label: _('Documents'),
component: DocumentsBriefViewComponent,
detailComponent: DocumentDetailViewComponent,
canUpdate: (record: any) => this.canUpdate(record),
canDelete: (record: any) => this.canDelete(record),
aggregations: (aggregations: any) => this.filter(aggregations),
aggregationsOrder: [
'document_type',
'author__fr',
'author__de',
'author__en',
'author__it',
'library',
'organisation',
'language',
'subject',
'status'
_('document_type'),
_('author__fr'),
_('author__en'),
_('author__de'),
_('author__it'),
_('library'),
_('organisation'),
_('language'),
_('subject'),
_('status')
],
aggregationsExpand: ['document_type'],
aggregationsBucketSize: 10
Expand All @@ -108,8 +108,8 @@ export class RecordRoutingService {
linkPrefix: 'records',
types: [
{
key: 'libraries',
label: 'Libraries',
key: _('libraries'),
label: _('Libraries'),
component: LibrariesBriefViewComponent,
detailComponent: LibraryDetailViewComponent,
canAdd: () => this.canAddLibrary(),
Expand All @@ -131,8 +131,8 @@ export class RecordRoutingService {
linkPrefix: 'records',
types: [
{
key: 'patrons',
label: 'Patrons',
key: _('patrons'),
label: _('Patrons'),
component: PatronsBriefViewComponent,
canUpdate: (record: any) => this.canUpdate(record),
canDelete: (record: any) => this.canDelete(record)
Expand All @@ -150,8 +150,8 @@ export class RecordRoutingService {
adminMode: false,
types: [
{
key: 'persons',
label: 'Persons',
key: _('persons'),
label: _('Persons'),
component: PersonsBriefViewComponent,
detailComponent: PersonDetailViewComponent,
canUpdate: (record: any) => this.canUpdate(record),
Expand All @@ -171,8 +171,8 @@ export class RecordRoutingService {
linkPrefix: 'records',
types: [
{
key: 'item_types',
label: 'Item Types',
key: _('item_types'),
label: _('Item types'),
component: ItemTypesBriefViewComponent,
detailComponent: ItemTypeDetailViewComponent,
canAdd: () => this.canAddItemType(),
Expand All @@ -193,8 +193,8 @@ export class RecordRoutingService {
linkPrefix: 'records',
types: [
{
key: 'items',
label: 'Items',
key: _('items'),
label: _('Items'),
detailComponent: ItemDetailViewComponent,
canRead: (record: any) => this.canReadItem(record),
canUpdate: (record: any) => this.canUpdate(record),
Expand All @@ -214,8 +214,8 @@ export class RecordRoutingService {
linkPrefix: 'records',
types: [
{
key: 'locations',
label: 'Locations',
key: _('locations'),
label: _('Locations'),
detailComponent: LocationDetailViewComponent,
canAdd: () => this.canAddLocation(),
canUpdate: (record: any) => this.canUpdate(record),
Expand All @@ -236,8 +236,8 @@ export class RecordRoutingService {
linkPrefix: 'records',
types: [
{
key: 'patron_types',
label: 'Patron Types',
key: _('patron_types'),
label: _('Patron types'),
component: PatronTypesBriefViewComponent,
detailComponent: PatronTypesDetailViewComponent,
canAdd: () => this.canAddPatronType(),
Expand All @@ -259,8 +259,8 @@ export class RecordRoutingService {
linkPrefix: 'records',
types: [
{
key: 'circ_policies',
label: 'Circulation Policies',
key: _('circ_policies') ,
label: _('Circulation policies'),
component: CircPoliciesBriefViewComponent,
detailComponent: CircPolicyDetailViewComponent,
canAdd: () => this.canAddCiculationPolicy(),
Expand Down
53 changes: 38 additions & 15 deletions projects/admin/src/app/translate/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"Additional Materials": "Zusätzliche Materialien",
"Address": "Adresse",
"Address must be at least 4 characters long.": "Die Adresse muss mindestens 4 Zeichen lang sein.",
"Admin & Monitoring": "Admin & Monitoring",
"Allow checkout": "Allow checkout",
"Allow requests": "Allow requests",
"Application": "Application",
Expand All @@ -21,6 +22,7 @@
"Borrowed by": "Ausgeliehen von",
"Call number": "Signatur",
"Cancel": "Abbrechen",
"Catalog": "Catalog",
"Change the default closing hours for this day": "Standardmessig Schließzeiten für diesen Tag ändern",
"Change the default opening hours for this day": "Standardmessig Öffnungszeiten für diesen Tag ändern",
"Checkin/Checkout": "Rückgabe/Ausleihe",
Expand All @@ -32,14 +34,16 @@
"Circulation": "Ausleihe",
"Circulation Policy": "Ausleihpolitik",
"Circulation categories": "Ausleihkategorien",
"Circulation settings": "Circulation settings",
"Circulation policies": "Ausleihpolitiken",
"Circulation settings": "Ausleiheinstellungen",
"City": "Stadt",
"Close": "Geschlossen",
"Closed": "Geschlossen",
"Code": "Code",
"Code is already taken.": "Der Code ist bereits vergeben.",
"Confirmation": "Bestätigung",
"Copyright date": "Copyright-Datum",
"Create a bibliographic record": "Create a bibliographic record",
"Date": "Datum",
"Date is invalid.": "Das Datum ist ungültig.",
"Date is required.": "Datum ist erforderlich.",
Expand All @@ -54,6 +58,7 @@
"Description": "Beschreibung",
"Developed by": "Entwickelt bei",
"Document": "Dokument",
"Documents": "Documents",
"Due date": "Fälligkeit",
"EAN not found!": "EAN nicht gefunden!",
"Edit": "Bearbeiten",
Expand All @@ -63,6 +68,7 @@
"End time format is not correct.": "Das Endzeitformat ist nicht korrekt.",
"End time is less than start time.": "Die Endzeit ist kleiner als die Startzeit.",
"End time is required.": "Endzeit ist erforderlich.",
"Enter an EAN": "Enter an EAN",
"Exception": "Ausnahme",
"Exceptions (holidays, etc.)": "Ausnahmen (Feiertage, usw.)",
"Exit without saving changes?": "Verlassen, ohne die Veränderungen zu speichern?",
Expand All @@ -72,6 +78,7 @@
"First reminder days is required.": "Anzahl von Tagen vor der ersten Erinnerung erforderlich",
"First reminder days must be greater than 0.": "Anzahl von Tagen vor der ersten Erinnerung muss grösser oder gleich 0 sein.",
"Gender": "Geschlecht",
"Help": "Hilfe",
"Holdings": "Bestände",
"Id": "Id",
"Identifier": "Identifier",
Expand All @@ -85,36 +92,46 @@
"Is pickup": "Ist Abholort",
"Item": "Exemplar",
"Item infos": "Informationen",
"Item types": "Exemplartypen",
"Items": "Exemplare",
"Language": "Sprache",
"Language of person": "Sprache der Person",
"Level": "Ebene",
"Libraries": "Bibliotheken",
"Library": "Bibliothek",
"Library will be closed during this period.": "Die Bibliothek wird in diesem Zeitraum geschlossen sein.",
"Loading…": "Wird geladen...",
"Location": "Standort",
"Locations": "Standorten",
"Logout": "Logout",
"MEF ID": "MEF ID",
"Menu": "Menu",
"My Library": "My Library",
"Name": "Name",
"Name is already taken.": "Name ist bereits vergeben.",
"Name is required.": "Name ist erforderlich.",
"Name must be at least 2 characters long.": "Der Name muss mindestens 2 Zeichen lang sein.",
"Name must be at least 4 characters long.": "Der Name muss mindestens 4 Zeichen lang sein.",
"No loan for the current patron.": "Keine Ausleihe bei diesem Leser",
"No request corresponding to the given item has been found.": "No request corresponding to the given item has been found.",
"No request corresponding to the given item has been found.": "Keine Bestellung, die dem angegebenen Exemplar entspricht, wurde gefunden.",
"Notes": "Anmerkung",
"Notifications and fees": "Notifications and fees",
"Number of days after due date": "Number of days after due date",
"Number of days before due date": "Number of days before due date",
"Notifications and fees": "Benachrichtigungen und Gebühren",
"Number of days after due date": "Anzahl an Tagen nach Rückgabetermin",
"Number of days before due date": "Anzahl an Tagen vor Rückgabetermin",
"Number of renewals": "Anzahl von Verlängerungen",
"OK": "OK",
"Online Access": "Online Zugang",
"Open": "Offen",
"Opening Hours": "Öffnungszeiten",
"Organisation": "Organisation",
"Overdue amount is required.": "Overdue amount is required.",
"Overdue amount must be great than 0.": "Overdue amount must be great than 0.",
"Overdue amount is required.": "Betrag der Erinnerungsgebühr ist erforderlich.",
"Overdue amount must be great than 0.": "Betrag der Erinnerungsgebühr muss grösser als 0 sein.",
"Patron": "Benutzer",
"Patron types": "Lesertypen",
"Patrons": "Leser",
"Period": "Zeitraum",
"Permission required": "Permission required",
"Persons": "Personen",
"Phone": "Telefon",
"Physical description": "Physikalische Beschreibung",
"Pick-up Location": "Abholort",
Expand Down Expand Up @@ -162,6 +179,7 @@
"Title is required.": "Titel ist erforderlich.",
"Type": "Typ",
"Uniform title": "Einheitstitel",
"User services": "User services",
"Validating…": "Validierung…",
"Variant name": "Abweichender Name",
"You cannot delete the record for the following reason:": "Aus folgendem Grund können Sie den Datensatz nicht löschen:",
Expand All @@ -171,10 +189,10 @@
"article": "Artikel",
"at_desk": "an der Ausleihe",
"author": "Autoren",
"author__de": "author__de",
"author__en": "author__en",
"author__fr": "author__fr",
"author__it": "author__it",
"author__de": "Autoren",
"author__en": "Autoren",
"author__fr": "Autoren",
"author__it": "Autoren",
"available": "verfügbar",
"bf:Distribution": "Vertrieb",
"bf:Manufacture": "Herstellung",
Expand All @@ -183,12 +201,13 @@
"book": "Buch",
"checkin": "Rückgabe",
"checkout": "Ausleihe",
"circ_policies": "circ_policies",
"circ_policies": "Ausleihpolitiken",
"date_at": "at",
"direct links": "direkte Links",
"document_type": "Dokumenttyp",
"documents": "documents",
"documents": "dokumente",
"ebook": "e-book",
"excluded": "excluded",
"excluded": "ausgeschlossen",
"friday": "Freitag",
"has # circulation policies attached": "hat # Ausleihpolitiken angefügt",
"has # documents attached": "hat # Dokumente angefügt",
Expand All @@ -215,6 +234,7 @@
"item is unavailable!": "Exemplar nicht verfügbar!",
"item not found!": "Exemplar nicht gefunden!",
"item or patron not found!": "item or patron not found!",
"item_types": "Exemplartypen",
"items": "Exemplare",
"journal": "Zeitschrift",
"language": "Sprache",
Expand All @@ -233,13 +253,16 @@
"organisation": "Organisation",
"other": "anderes",
"patron not found!": "Leser nicht gefunden!",
"patron_types": "Lesertypen",
"patrons": "Leser",
"period": "Zeitraum",
"persons": "Personen",
"renewals": "Verlängerungen",
"request": "Bestellung",
"requests": "Bestellungen",
"saturday": "Samstag",
"score": "Partitur",
"search": "search",
"search": "Suche",
"sound": "Ton",
"status": "Status",
"subject": "Schlagwort",
Expand Down
Loading

0 comments on commit 64aba54

Please sign in to comment.