You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ This plugin can be consumed by the CAP application deployed on BTP to store thei
20
20
- Copy attachments: Provides the capability to copy attachments from one entity to another entity.
21
21
- Link as attachments: Provides the capability to support link or URL as attachments.
22
22
- Edit Link-type attachments: Provides the capability to update URL of link-type attachments.
23
-
23
+
- Localization of error messages and UI fields: Provides the capability to have the UI fields and error messages translated to the local language of the leading application.
24
24
## Table of Contents
25
25
26
26
-[Pre-Requisites](#pre-requisites)
@@ -35,6 +35,7 @@ This plugin can be consumed by the CAP application deployed on BTP to store thei
35
35
-[Support for Copy attachments](#support-for-copy-attachments)
36
36
-[Support for Link type attachments](#support-for-link-type-attachments)
37
37
-[Support for Edit of Link type attachments](#support-for-edit-of-link-type-attachments)
38
+
-[Support for Localization](#support-for-localization)
- Replace `AdminService` in `Action: 'AdminService.editLink'` with the name of your service.
860
861
- Repeat for other entities and elements if you have defined multiple `composition of many Attachments`.
861
862
863
+
## Support for Localization
864
+
If the UI fields have to be available in the local language of the leading application ensure to add the below fields in the i18n_[languagecode].properties file under app/_i18n folder.
865
+
Default language translations are present in i18n.properties files. If leading application does not provide any keys and values in their language properties files then default english language messages are shown to the user.
866
+
867
+
Example i18n_de.properties for german language.
868
+
```
869
+
Attachment=Attachment
870
+
Attachments=Attachments
871
+
Note= Attachment Note
872
+
Filename=File Name
873
+
linkUrl=Link Url
874
+
type=Type
875
+
```
876
+
For the exception messages as well the translation can be done by adding the translation to messages_[languagecode].properties files present under srv/src/main/resources.
877
+
Default language translations are present in messages.properties. If leading application does not provide any keys and values in their language properties files then default english language messages are shown to the user.
862
878
879
+
Example for german language
880
+
```
881
+
SDM.Attachments.maxCountError = Maximum number of attachments reached in German......
882
+
```
863
883
## Known Restrictions
864
884
865
885
- UI5 Version 1.135.0: This version causes error in upload of attachments.
0 commit comments