on ‎2024 Jul 03 2:58 PM
Hi experts!
I created a Service/App with RAP in BTP. For the translation of the text, the app "Maintain Translations" in the ABAP Environment Dashboard must be used. I downloaded the .xlf-file, added the desired translations, uploaded the file again and published it.
Result is, that just some texts have been translated. I'm not able to translate other texts. When I change some texts, which have been transated correctly and reupload/publish the file, the newly changed texts don't get updated again.
I'm testing the translation in the "Fiori Elements Preview App", by changing the language in the URL from EN to DE (&sap-ui-language=DE).
Does anyone know this behavior or knows how to translate correctly. Unfortunately, this is all a black box. I just can down- and upload a .xlf-file and check the result like described above.
Thanks and regards, Sebastian
Request clarification before answering.
Hi Sebastian,
please consider following remarks for testing your translation:
If you want to test the translated texts of IAM business catalogs directly in the Fiori launchpad of the development system, you have to publish the IAM business catalog once again locally in ADT.
If you want to test the translated texts of data definitions or metadata extensions directly in the development system with a Fiori app built on top of these objects, you should first reactivate the objects in ADT to ensure that all caches will be invalidated.
On top of that, I would recommend testing your translations in FLP with a business user by changing the Language and Region settings.
Best regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter! Thanks for you comment! That was the solution
If you want to test the translated texts of data definitions or metadata extensions directly in the development system with a Fiori app built on top of these objects, you should first reactivate the objects in ADT to ensure that all caches will be invalidated
Though, not very user friendly!
Hi
It sounds like you're encountering issues with translations not updating as expected in your SAP Business Technology Platform (BTP) application using RAP (ABAP RESTful Application Programming Model). Here are some steps and considerations to help resolve your translation issues:
Understanding Translation Process in BTP with RAP:
1. Translation Files (XLF):
- Translations in BTP applications are managed through `.xlf` files, which contain keys and their corresponding translated values for different languages.
- The "Maintain Translations" app in the ABAP Environment Dashboard allows you to download, edit, and upload these `.xlf` files for different languages.
2. Translation Issues:
- Partial Translation: If only some texts are translated and others are not, it could be due to missing or incorrect keys in the `.xlf` file. Ensure that all text keys requiring translation are included in the file.
- Updating Translations: Changes made in the `.xlf` file should reflect after uploading and publishing. If newly changed texts don't update, it might indicate caching issues or a need to trigger a refresh in the runtime environment.
3. Testing Translations:
- Use the Fiori Elements Preview App to test translations by appending `&sap-ui-language=DE` (for German, adjust as needed for other languages) to the URL.
- Ensure that the application reads the correct language settings from the URL parameter (`sap-ui-language`) and displays translated texts accordingly.
Steps to Troubleshoot and Resolve:
1. Check `.xlf` File Contents:
- Verify that all text keys requiring translation are present in the `.xlf` file.
- Ensure there are no discrepancies in key names or formatting that might prevent certain texts from being translated.
2. Upload and Publish:
- After making changes in the `.xlf` file, upload it using the "Maintain Translations" app.
- Publish the changes to ensure they are applied in the runtime environment.
3. Clear Cache and Restart:
- Sometimes, cached translations or application state might prevent new translations from appearing immediately.
- Clear browser cache or restart the application to force a refresh and fetch updated translations.
4. Runtime Environment Considerations:
- Ensure that your application runtime environment (like the Fiori Elements Preview App) correctly interprets language settings (`sap-ui-language`) and displays translated texts accordingly.
- Verify that the runtime environment is not overriding or ignoring language settings from the URL.
5. Monitor Logs and Diagnostics:
- Check application logs or diagnostic tools in BTP to see if there are any errors or warnings related to translation loading or application language handling.
6. Engage SAP Support or Community:
- If issues persist and troubleshooting steps do not resolve the problem, consider reaching out to SAP Support or consulting SAP Community forums for further assistance.
- Sometimes, there may be specific nuances or bugs related to translation handling in the BTP environment that require expert guidance.
Conclusion:
Managing translations in SAP BTP with RAP involves careful management of `.xlf` files and ensuring proper integration and display in runtime applications. By following the steps outlined and addressing potential caching or configuration issues, you should be able to resolve issues with incomplete or non-updating translations effectively.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi umasaral!
Thanks for your reply.
- all keys are in the file. How do I know, if they're incorrect. I downloaded the xlf-file, added a translation and uploaded the file. The key-names and format of the file didn't change while adding the translation. I assume, the keys are correct
- I cleared the browser-cash and restarted the ABAP Environment again
- regarding Point 4: as some texts are translated, hence I assume that the runtime env. interprets the language settings corretly.
Problem is still the same.
@WRoeckelein: Do you have a solution for the problem?
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.