Skip to main content



      Home
Home » Archived » Sapphire » Setting default validation messages
Setting default validation messages [message #1744236] Fri, 23 September 2016 10:11 Go to next message
Eclipse UserFriend
Hi everybody,

I would like to change the default messages linked to @Required or @Unique annotations for example.
Of course, as we use some custom Services, we can also use custom services for these cases, but that would be great to avoid creating a Service class or adding a @Validation annotation on each property just to set the error message.

Thank you for your advices ! =)
Re: Setting default validation messages [message #1744257 is a reply to message #1744236] Fri, 23 September 2016 12:11 Go to previous messageGo to next message
Eclipse UserFriend
There is no facility to override system-provided validation messages. I am curious why you want to override them...
Re: Setting default validation messages [message #1744339 is a reply to message #1744257] Mon, 26 September 2016 02:10 Go to previous messageGo to next message
Eclipse UserFriend
Actually whe are developing a tool for French users,
Is there a way to localize all Sapphire messages ?
Re: Setting default validation messages [message #1744526 is a reply to message #1744339] Tue, 27 September 2016 15:45 Go to previous messageGo to next message
Eclipse UserFriend
Sapphire does support localization. You will need to use Sapphire 9.1, which is soon to be released and contains a number of localization fixes.

https://www.eclipse.org/sapphire/releases/9.1

There is more information on Sapphire localization approach in the following thread:

https://www.eclipse.org/forums/index.php/t/1079826/

If you'd like to enable French localization, please open an enhancement request and provide either a patch with the actual localized .properties files or even just the translations for strings you see on the screen. I will fold them into a build and we can iterate back-n-forth until all French translations are done and polished.
Re: Setting default validation messages [message #1744547 is a reply to message #1744526] Wed, 28 September 2016 02:35 Go to previous messageGo to next message
Eclipse UserFriend
Actually we cannot use Java 8 for now, and I don't think the company standards will change in the next three years, so... =)
As it is my last day in that company, I will ask my colleagues to provide you these properties files.
Re: Setting default validation messages [message #1744590 is a reply to message #1744547] Wed, 28 September 2016 12:50 Go to previous message
Eclipse UserFriend
The same localization fixes are also available in Sapphire 8.3, which will be released simultaneously with Sapphire 9.1. Sapphire 8.x does not require Java 8.
Previous Topic:Setting up project
Next Topic:Announcing Sapphire 9.1 and 8.3 Releases
Goto Forum:
  


Current Time: Sun May 04 16:24:49 EDT 2025

Powered by FUDForum. Page generated in 0.04872 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top