You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by cosmindumy <co...@yahoo.com> on 2013/10/08 17:49:22 UTC

Re: How to localize options in drop down.

Solved the localization problem. 
I didn't know wicket convention about localization in choices.
There is still the problem with utf-8. 
Thanks.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661753.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: How to localize options in drop down.

Posted by Paul Bors <pa...@bors.ws>.
Can't you switch to XML and encode your file in UTF-8?
Name your file MyApplication_en_US.properties.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
    <!-- ... (other entries) -->
    <!-- This is a property example that uses Unicode \u00E4 -->
    <entry key="property.date">Fällig ab.</entry>
    <!-- ... (other entries) -->
</properties>

You can write your own tool to convert your properties file to the XML
format.

~ Thank you,
  Paul Bors

-----Original Message-----
From: Vit Rozkovec [mailto:rozkovec.wl@email.cz] 
Sent: Wednesday, October 09, 2013 4:49 AM
To: users@wicket.apache.org
Subject: Re: How to localize options in drop down.

If you would be using Eclipse IDE you can use this: 
http://propedit.sourceforge.jp/index_en.html

On 9.10.2013 10:45, cosmindumy wrote:
> Yes,
> Now they are unicode. Something like property.date=F\u00E4llig ab.
> But I want to use native characters in propery file as is easier to
handle.
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-
> drop-down-tp4661751p4661763.html Sent from the Users forum mailing 
> list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to localize options in drop down.

Posted by Vit Rozkovec <ro...@email.cz>.
If you would be using Eclipse IDE you can use this: 
http://propedit.sourceforge.jp/index_en.html

On 9.10.2013 10:45, cosmindumy wrote:
> Yes,
> Now they are unicode. Something like property.date=F\u00E4llig ab.
> But I want to use native characters in propery file as is easier to handle.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661763.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to localize options in drop down.

Posted by cosmindumy <co...@yahoo.com>.
 Mission accomplished. I used the method with *.utf8.properties.
I'm sure the properties in xml files had also worked. 
Wicket localization is great.
 Thanks for helping. 



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661778.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to localize options in drop down.

Posted by Sven Meier <sv...@meiers.net>.
Well, use *.utf8.properties and then you can just use UTF-8 encoding:

   property.date=Fällig ab


Sven

On 10/09/2013 10:45 AM, cosmindumy wrote:
> Yes,
> Now they are unicode. Something like property.date=F\u00E4llig ab.
> But I want to use native characters in propery file as is easier to handle.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661763.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to localize options in drop down.

Posted by cosmindumy <co...@yahoo.com>.
Yes,
Now they are unicode. Something like property.date=F\u00E4llig ab.
But I want to use native characters in propery file as is easier to handle.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661763.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to localize options in drop down.

Posted by Sven Meier <sv...@meiers.net>.
Do you use unicode escapes or how do you enter unicode characters?

Sven

On 10/09/2013 10:23 AM, cosmindumy wrote:
> Hello,
> Thanks for answering.
> They are in *.properties.
>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661761.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to localize options in drop down.

Posted by cosmindumy <co...@yahoo.com>.
Hello,
Thanks for answering.
They are in *.properties.




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661761.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to localize options in drop down.

Posted by Sven Meier <sv...@meiers.net>.
Hi,

in which files do you keep your localized strings? *.properties, 
*.properties.xml or *.utf8.properties?

Sven

On 10/08/2013 05:49 PM, cosmindumy wrote:
> Solved the localization problem.
> I didn't know wicket convention about localization in choices.
> There is still the problem with utf-8.
> Thanks.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661753.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org