Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions cap-notebook/demoapp/app/_i18n/i18n.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,44 @@ attachment_status = Status
attachment_note = Note
attachment = Attachment
attachments = Attachments
reference = Reference
references = References

#XFLD,50: Label for a section
Chapters=Chapters

#XFLD,120: Label for entity
Chapter=Chapter

#XFLD,120: Label for a field
ChapterTitle=Chapter Title

#XFLD,120: Label for a field
ChapterType=Chapter Type

#XFLD,50: Label for a section
Pages=Pages

#XFLD,120: Label for entity
Page=Page

#XFLD,120: Label for a field
PageTitle=Page Title

#XFLD,120: Label for a field
PageType=Page Type

#XFLD,50: Label for a section
Footnotes=Footnotes

#XFLD,120: Label for a field
Description=Description

#XFLD,120: Label for a field
URL=URL

#XFLD,50: Label for a section
GeneralInformation=General Information

#XFLD,50: Label for a section
Attachments=Attachments
38 changes: 37 additions & 1 deletion cap-notebook/demoapp/app/_i18n/i18n_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,40 @@ Stock = Bestand
Order = Bestellung
Orders = Bestellungen
Price = Preis
Genre = Genre
Genre = Genre

#XFLD,50: Label for a section
Chapters=Kapitel

#XFLD,120: Label for entity
Chapter=Kapitel

#XFLD,120: Label for a field
ChapterTitle=Kapitel Titel

#XFLD,120: Label for a field
ChapterType=Kapitel Typ

#XFLD,50: Label for a section
Pages=Seiten

#XFLD,120: Label for entity
Page=Seite

#XFLD,120: Label for a field
PageTitle=Seiten Titel

#XFLD,120: Label for a field
PageType=Seiten Typ

#XFLD,50: Label for a section
Footnotes=Fußnoten

#XFLD,120: Label for a field
Description=Beschreibung

#XFLD,120: Label for a field
URL=URL

#XFLD,50: Label for a section
GeneralInformation=Allgemeine Informationen
246 changes: 244 additions & 2 deletions cap-notebook/demoapp/app/admin-books/fiori-service.cds
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ annotate AdminService.Books with @(UI: {
{
$Type : 'UI.ReferenceFacet',
ID : 'ReferencesFacet',
Label : 'References',
Label : '{i18n>references}',
Target: 'references/@UI.LineItem'
},
{
Expand All @@ -43,7 +43,19 @@ annotate AdminService.Books with @(UI: {
$Type : 'UI.ReferenceFacet',
Label : '{i18n>Admin}',
Target: '@UI.FieldGroup#Admin'
}
},
{
$Type : 'UI.ReferenceFacet',
Label : '{i18n>Chapters}',
ID : 'i18nChapters',
Target : 'chapters/@UI.LineItem#i18nChapters',
},
{
$Type : 'UI.ReferenceFacet',
Label : '{i18n>Pages}',
ID : 'i18nPages',
Target : 'pages/@UI.LineItem#i18nPages',
},
],
FieldGroup #General: {Data: [
{Value: title},
Expand All @@ -67,6 +79,236 @@ annotate AdminService.Books with @(UI: {
]}
});

//////////

// Chapters annotations
annotate AdminService.Chapters with @title : '{i18n>Chapter}';

annotate AdminService.Books.chapters with @(
title : '{i18n>Chapters}'
);

annotate AdminService.Chapters with @(
UI.LineItem : [
{
$Type : 'UI.DataField',
Value : title,
Label : '{i18n>ChapterTitle}',
},
{
$Type : 'UI.DataField',
Value : chapterType,
Label : '{i18n>ChapterType}',
},
{
$Type : 'UI.DataField',
Value : description,
Label : '{i18n>Description}',
},
],
UI.LineItem #i18nChapters : [
{
$Type : 'UI.DataField',
Value : title,
Label : '{i18n>ChapterTitle}',
},
{
$Type : 'UI.DataField',
Value : chapterType,
Label : '{i18n>ChapterType}',
},
{
$Type : 'UI.DataField',
Value : description,
Label : '{i18n>Description}',
},
]
);

annotate AdminService.Chapters with @(
UI.HeaderInfo : {
Title : {
$Type : 'UI.DataField',
Value : title,
},
TypeName : '{i18n>Chapter}',
TypeNamePlural : '{i18n>Chapters}',
Description : {
$Type : 'UI.DataField',
Value : description,
},
}
);

annotate AdminService.Chapters with @(
UI.FieldGroup #GeneratedGroup1 : {
$Type : 'UI.FieldGroupType',
Data : [
{
$Type : 'UI.DataField',
Value : title,
Label : '{i18n>ChapterTitle}',
},
{
$Type : 'UI.DataField',
Value : chapterType,
Label : '{i18n>ChapterType}',
},
{
$Type : 'UI.DataField',
Value : description,
Label : '{i18n>Description}',
},
{
$Type : 'UI.DataField',
Value : url,
Label : '{i18n>URL}',
},
],
},
UI.Facets : [
{
$Type : 'UI.ReferenceFacet',
ID : 'GeneratedFacet1',
Label : '{i18n>GeneralInformation}',
Target : '@UI.FieldGroup#GeneratedGroup1',
},
{
$Type : 'UI.ReferenceFacet',
ID : 'AttachmentsFacet',
Label : '{i18n>attachments}',
Target : 'attachments/@UI.LineItem'
},
{
$Type : 'UI.ReferenceFacet',
ID : 'ReferencesFacet',
Label : '{i18n>references}',
Target : 'references/@UI.LineItem'
},
{
$Type : 'UI.ReferenceFacet',
ID : 'FootnotesFacet',
Label : '{i18n>Footnotes}',
Target : 'footnotes/@UI.LineItem'
}
]
);

//////////

// Pages annotations
annotate AdminService.Pages with @title : '{i18n>Page}';

annotate AdminService.Books.pages with @(
title : '{i18n>Pages}'
);

annotate AdminService.Pages with @(
UI.LineItem : [
{
$Type : 'UI.DataField',
Value : title,
Label : '{i18n>PageTitle}',
},
{
$Type : 'UI.DataField',
Value : pageType,
Label : '{i18n>PageType}',
},
{
$Type : 'UI.DataField',
Value : description,
Label : '{i18n>Description}',
},
],
UI.LineItem #i18nPages : [
{
$Type : 'UI.DataField',
Value : title,
Label : '{i18n>PageTitle}',
},
{
$Type : 'UI.DataField',
Value : pageType,
Label : '{i18n>PageType}',
},
{
$Type : 'UI.DataField',
Value : description,
Label : '{i18n>Description}',
},
]
);

annotate AdminService.Pages with @(
UI.HeaderInfo : {
Title : {
$Type : 'UI.DataField',
Value : title,
},
TypeName : '{i18n>Page}',
TypeNamePlural : '{i18n>Pages}',
Description : {
$Type : 'UI.DataField',
Value : description,
},
}
);

annotate AdminService.Pages with @(
UI.FieldGroup #GeneratedGroup1 : {
$Type : 'UI.FieldGroupType',
Data : [
{
$Type : 'UI.DataField',
Value : title,
Label : '{i18n>PageTitle}',
},
{
$Type : 'UI.DataField',
Value : pageType,
Label : '{i18n>PageType}',
},
{
$Type : 'UI.DataField',
Value : description,
Label : '{i18n>Description}',
},
{
$Type : 'UI.DataField',
Value : url,
Label : '{i18n>URL}',
},
],
},
UI.Facets : [
{
$Type : 'UI.ReferenceFacet',
ID : 'GeneratedFacet1',
Label : '{i18n>GeneralInformation}',
Target : '@UI.FieldGroup#GeneratedGroup1',
},
{
$Type : 'UI.ReferenceFacet',
ID : 'AttachmentsFacet',
Label : '{i18n>attachments}',
Target : 'attachments/@UI.LineItem'
},
{
$Type : 'UI.ReferenceFacet',
ID : 'ReferencesFacet',
Label : '{i18n>references}',
Target : 'references/@UI.LineItem'
},
{
$Type : 'UI.ReferenceFacet',
ID : 'FootnotesFacet',
Label : '{i18n>Footnotes}',
Target : 'footnotes/@UI.LineItem'
}
]
);


////////////////////////////////////////////////////////////
//
Expand Down
Loading
Loading