O'Reilly logo

Spring MVC Beginner’s Guide by Amuthan G

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – adding internationalization

Technically, we can add as much language support as we want for internationalization, but for demonstration purposes, I am going to show you how to make an add product page for Dutch language support. Perform the following steps:

  1. Create a file called messages_nl.properties under /src/main/resources in your project, add the following lines in it, and save the file:
    addProduct.form.productId.label = Nieuw product ID addProduct.form.name.label = Naam addProduct.form.unitPrice.label = Prijs unit addProduct.form.description.label = Beschrijving addProduct.form.manufacturer.label = Manufacturer addProduct.form.category.label = Fabrikant addProduct.form.unitsInStock.label = Aantal op voorraad addProduct.form.condition.label ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required