Technical Articles
SAP Web IDE Plugin: UI5 Internationalization/i18n Helper (Open Source)
Do you have big i18n property files?
Do you want to check if there is a missing translation with a click of a button?
…without leaving the convenient Web IDE?
Then, this plugin is for you!
Features
It detects the current project(the project of the currently open file or selected file).
It searches XML views for i18n usage. So, it doesn’t just compare properties with each other, giving you peace of mind.
You can use it from tools menu:
A-ha! “Bonjour!” is missing in the French translation:
We fix it:
Everything is OK now:
The plugin assumes there is only one property file for each language. If you have different project structures please give feedback.
Any feedback regarding features and UI is welcome!
Installation
Create a destination:
If URL changes in the future I will update it here. You can also save this configuration as a text file and you can use “Import Destination” feature.
Also GitHub repo contains more mirrors and a handy .zip file, if you need to host the plugin yourself!
Name=i18n-helper
URL=https\://i18nhelper-p732728trial.dispatcher.hanatrial.ondemand.com
ProxyType=Internet
Type=HTTP
WebIDEEnabled=true
Authentication=NoAuthentication
WebIDEUsage=feature
Settings > Plugins > Repository “Features” > Enable the plugin > Save
Then there will be a new menu item Tools > I18n Helper > Compare Properties
Source Code
2 years ago, I have developed a similar tool for command line here.
However, I have observed that most of the UI5 development happens only in Web IDE. It has proven itself to be the go-to tool for UI5 developers. Also, the plugin development seems fun. I think the community can benefit a lot from community-developed plugins.
Plugin specific code is in plugin directory in this GitHub repo:
https://github.com/fatihpense/webide-i18n-plugin
Thanks
Web IDE team for the SDK Web Site and help. (sapwebide@sap.com)
Daniel Wroblewski and Jim Jaquet for the tutorials.(Update 2019-08-05: As Daniel mentions below the original tutorials are not available and you can visit the new tutorials here: Create an Extension for SAP Web IDE )
Wouter Lemaire for informative blog posts.
And thanks for reading!
Fatih
Great Work Fatih! And thank you for fixing the first issue False positive for attribute with multiple elements #1 so quickly.
Thank you for the detailed issue feedback and kind words, Gregor!
It is really motivating to see the usage and benefit of the plugin!
Best regards,
Fatih
Congrats Fatih Pense on getting your plugin. I've been contemplating and your success does inspire.
Cheers!
Sharath
Hi Sharath,
Thank you for the kind words!
Also, If you need help regarding plugin development, you can message me from community profile for further communication.
Best regards,
Fatih
Thanks a lot will help us again to come up with flawless code.
Great!!!
Thank you for the kind words Danny! I'm open to new plugin ideas and improvements!
Regards,
Fatih
Great Work.
If I check the connection, I get the following error:
Connection to "i18n-helper" established. Response returned: "404: Not Found"
Best regards
Thank you for the kind words Andreas!
I think getting a 404 is ok. You should check this link specifically: https://i18nhelper-p732728trial.dispatcher.hanatrial.ondemand.com/neo-app.json
Do you have any problems while using the plugin? Since it is on trial account it may need time to warm up. I will investigate if it is possible to use a CDN as a destination without problems.
Best regards,
Fatih
Great plugin, thank you!
Kind regards,
Frederico
Thank you for the kind words Frederico! I'm open to new plugin ideas and improvements!
Regards,
Fatih
Thanks for the shoutout 🙂
P.S.: The original tutorials for plugin development are now removed, but you can reference others, like Create an Extension for SAP Web IDE
Thank you, Daniel! I'm updating the link. The documentation has really improved since I wrote the blog.
Kind regards,
Fatih
Great Plugin!
I think it would make sense to exclude the "dist" folder, since it gets updated by deployment.
Also I think the keyword detection fails, if there are numbers at the end of a keyword. At least for me it says there a missing keywords but they are definied and I checked case sensitivity.
Greetings
Thank you for your feedback, Felix!
I'm creating new issues for your feedback. I will test these issues when I have the time. Feel free to add details:
https://github.com/fatihpense/webide-i18n-plugin/issues/2
https://github.com/fatihpense/webide-i18n-plugin/issues/3
Best regards,
Fatih
Hi Fatih, it's a very helpful plugin and I tried to add the destination or using source code from github as the plugin, it seems the service is no longer provided. Do you have any idea where I can continue using it?
Thanks,
Jane
Hello Jane,
I'm glad to learn it is still useful. I have uploaded the Zip file here:
Since it is just static content, you can host it anywhere. Would this work for you?
Best regards,
Fatih Pense
Thank you so much for your quick reply, Fatih!
I think this could work for me. If I have any other problem is it ok for me to email you?
Best regards,
Jane
Hello Jane,
Sure. You can also send me a direct message here (https://messages.sap.com/), or connect via Linkedin.
Best regards,
Fatih