[icedtea-web] RFC: unify localization code
Omair Majid
omajid at redhat.com
Tue Oct 26 08:39:06 PDT 2010
On 10/25/2010 02:42 PM, Omair Majid wrote:
> On 10/25/2010 02:24 PM, Deepak Bhole wrote:
>> * Omair Majid<omajid at redhat.com> [2010-10-25 14:22]:
>>> On 10/25/2010 02:20 PM, Omair Majid wrote:
>>>> On 10/25/2010 01:22 PM, Deepak Bhole wrote:
>>>>> * Omair Majid<omajid at redhat.com> [2010-10-25 12:54]:
>>>>>> Hi,
>>>>>>
>>>>>> Netx contains a number of duplicate methods named "R" defined in
>>>>>> various files that act as a wrapper for JNLPRuntime.getMessage().
>>>>>> The attached patch creates a new class Translate and moves all the
>>>>>> "R" methods to it. This set of overloaded "R" methods is then
>>>>>> statically imported anywhere that needs localized strings.
>>>>>>
>>>>>
>>>>> While it is being refactored, why not use varargs for R()?
>>>>>
>>>>
>>>> Fixed.
>>>
>>> Grr.. Accceidentally sent without finishing email :(
>>>
>>> Here is the attachment.
>>>
>>
>> Looks good. Okay for commit to HEAD.
>>
>> Deepak
>>
>
> Thanks. Pushed to HEAD.
>
I think I broke simple string translation :( New patch is attached.
ChangeLog:
2010-10-26 Omair Majid <omajid at redhat.com>
* netx/net/sourceforge/jnlp/runtime/Translator.java
(R(String)): New method.
Any comments?
Thanks,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea-web-fix-translator.patch
Type: text/x-patch
Size: 626 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20101026/d0231b40/icedtea-web-fix-translator.patch
More information about the distro-pkg-dev
mailing list