Skip to Content
Technical Articles
Author's profile photo Fatih Pense

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

Assigned tags

      18 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Gregor Wolf
      Gregor Wolf

      Great Work Fatih! And thank you for fixing the first issue False positive for attribute with multiple elements #1 so quickly.

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      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

      Author's profile photo Sharath M G
      Sharath M G

      Congrats Fatih Pense on getting your plugin. I've been contemplating and your success does inspire.

      Cheers!

      Sharath

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      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

      Author's profile photo Danny Van der Steen
      Danny Van der Steen

      Thanks a lot will help us again to come up with flawless code.

      Great!!!

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      Thank you for the kind words Danny! I'm open to new plugin ideas and improvements!

      Regards,
      Fatih

       

      Author's profile photo Andreas Mayer
      Andreas Mayer

      Great Work.

      If I check the connection, I get the following error:

      Connection to "i18n-helper" established. Response returned: "404: Not Found"

       

      Best regards

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      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

       

      Author's profile photo Frederico Rocha
      Frederico Rocha

      Great plugin, thank you!

       

      Kind regards,

      Frederico

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      Thank you for the kind words Frederico! I'm open to new plugin ideas and improvements!

      Regards,
      Fatih

      Author's profile photo Daniel Wroblewski
      Daniel Wroblewski

      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

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      Thank you, Daniel! I'm updating the link. The documentation has really improved since I wrote the blog.

      Kind regards,
      Fatih

      Author's profile photo Felix Stiffel
      Felix Stiffel

      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

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      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

      Author's profile photo Jane Li
      Jane Li

      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

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      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

      Author's profile photo Jane Li
      Jane Li

      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

      Author's profile photo Fatih Pense
      Fatih Pense
      Blog Post Author

      Hello Jane,

      Sure. You can also send me a direct message here (https://messages.sap.com/), or connect via Linkedin.

      Best regards,
      Fatih