Closed westernpr closed 9 years ago
Yes, it's possible.
In any case, I recommend adding AngularFaces to your project. AngularFaces improves the internationalization support of JSF. The only drawback - if it is one - is it adds AngularJS to your project. See http://angularfaces.com/index.html#/step-02.html and http://angularfaces.com/index.html#/step-01.html.
As there's no follow-up question, I assume the issue can be closed.
Thanks for your reply, it is really appreciated. Sorry it took a while to process that because I am not that familiar with the JSF internationalization. I find BootsFaces very useful for my current project which involves user guidance in Finnish and Swedish. I will look into AngularFaces as you suggest, I believe I can find something out through there. Could you give any hints how I could take benefit of that resource bundle option because that could be quickiest way in this simple project. This is part I would to like translate:
I take it you're using Firefox? Because we didn't implement such a fancy tooltip :).
The tooltip is generated by the browser. To see this, create a simple HTML file like this one:
<html>
<form>
<input type="email">
</form>
</html>
Invalid e-mail adresses are displayed in a German installation of Firefox like so:
In theory, it should be possible to change the language of Firefox using the switch below (see https://support.mozilla.org/en-US/questions/1018686). But it didn't work on my machine.
By the way, the same message is displayed in Google Chrome slightly differently (and the languages can be changed easily!):
Haha, cool cool. I installed Finnish version of the Firefox and now the message showed up in Finnish. The message started to appear when I added type="email" inside <b:inputText tag. So it seems to be some browser based solution to validate those different types. Even IE managed to make a similar message. :-)
Ok, I carry on from here. Thanks for your help so far. I will examine AngularFaces while developing the system.
Hi, I think FF it's crazy, I would expect client side content and messages should be driven from the settings in Preferences -> Content Tab -> Languages ...
Did you try this?
On Tue, Feb 17, 2015 at 8:34 AM, rosese-1 notifications@github.com wrote:
Haha, cool cool. I installed Finnish version of the Firefox and now the message showed up in Finnish. The message started to appear when I added type="email" inside <b:inputText tag. So it seems to be some browser based solution to validate those different types. Even IE managed to make a similar message. :-)
Ok, I carry on from here. Thanks for your help so far. I will examine AngularFaces while developing the system.
— Reply to this email directly or view it on GitHub https://github.com/TheCoder4eu/BootsFaces-OSP/issues/57#issuecomment-74627948 .
Ok, I didn't know that but it doesn't matter. I can use the Finnish version as well. Pretty cool feature to have browser supporting input box types.
I suppose we can close this ticket. Can we?
Yes, it's answered.
I am looking for a solution to translate the message shown if the user fails to input proper email. It says now "Please enter an email address". I would like to get that in different language. Is that possible somehow?
Best regards Peter