Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Setting default validation messages
Setting default validation messages [message #1744236] Fri, 23 September 2016 14:11 Go to next message
Amaury TETREL is currently offline Amaury TETRELFriend
Messages: 9
Registered: December 2015
Junior Member
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 16:11 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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 06:10 Go to previous messageGo to next message
Amaury TETREL is currently offline Amaury TETRELFriend
Messages: 9
Registered: December 2015
Junior Member
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 19:45 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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 06:35 Go to previous messageGo to next message
Amaury TETREL is currently offline Amaury TETRELFriend
Messages: 9
Registered: December 2015
Junior Member
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 16:50 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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 Nov 18 02:30:14 GMT 2018

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

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

Back to the top