liftmodules / widgets

A collection of useful widgets for use with Lift
12 stars 18 forks source link

Use localized strings in BootstrapDialog. #14

Closed limansky closed 11 years ago

limansky commented 11 years ago

Hi!

Here is the pull request for adding localization (see issue #13) . To initialize localized strings you have to call BootstrapDialog.init in your Boot.scala.

fmpwizard commented 11 years ago

Thanks for submitting this pull request. With this code, is it possible for an end user to override the text of the provided translations?

In other words, let's say that I don't want to see ok on my button, but instead accept, can I just add the key lift-module-widget.ok to my messages.properties file and have a different text?

Thanks

limansky commented 11 years ago

I think it should work if you override the strings in _resource_en.html, but I didn't tested. What I check is that if I define the strings for Russian in _resource_ru.html it's shows localized strings.

fmpwizard commented 11 years ago

Thanks for updating the pull request!