[zanata-users] Unwanted insertion of escape character when pulling utf8properties from Zanata

Ankitkumar Rameshchandra Patel ankit at redhat.com
Fri Jan 16 06:08:45 UTC 2015


done: https://bugzilla.redhat.com/show_bug.cgi?id=1182880

Thanks,
Ankit

On 01/16/2015 06:06 AM, Sean Flanigan wrote:
> Ankit, are you saying that Mozilla doesn't understand the
> backslash-escaping when it comes to Properties files, so it's showing
> the backslash in the localised UI?  If so, could you please put in a bug
> against Zanata?
>
> (utf8properties has been a bit of a nightmare - as a file format, Java
> Properties were bad enough, but the UTF-8 Properties files used by GWT
> and Mozilla are even worse.)
>
>
> On 2015-01-15 21:32, Ankitkumar Rameshchandra Patel wrote:
>> While printing it should be fine if the backslash is simply getting
>> ignored, but while displaying messages on the user interface, which is
>> the case for Mozilla translations, then I think it must be fixed no
>> matter even if there's no difference.
>>
>> Thanks,
>> Ankit
>>
>> On 01/15/2015 04:52 PM, Alessandro Portosa wrote:
>>> I found my answer here: http://en.wikipedia.org/wiki/.properties#Format.
>>> Even if they are message strings, maybe Zanata prefers to add the
>>> backslash to avoid any confusion between normal and special characters.
>>> Anyway the \! should simply mean "this is not a special char, just a
>>> normal exclamation mark"... Therefore, on the application side nothing
>>> should change. If, as I think, there are no difference when the strings
>>> are printed, this is fine...
>>> Let me know if I am wrong in something!
>>>
>>> Alessandro.
>>>
>>> Il 15/01/2015 12:10, Ankitkumar Rameshchandra Patel ha scritto:
>>>> I faced the same issue while translating some of the Mozilla
>>>> utf8properties files. I still don't understand why the backslash is
>>>> added in message strings?
>>>>
>>>> /Ankit
>>>>
>>>> On 01/15/2015 04:36 PM, Alessandro Portosa wrote:
>>>>> Nevermind, just figure it out why.
>>>>> Depending of the code language, ! could be used to specify a comment,
>>>>> and : can be used as delimiter between the key and the value. That's why
>>>>> the backslash.
>>>>>
>>>>> Alessandro.
>>>>>
>>>>> Il 15/01/2015 11:01, Alessandro Portosa ha scritto:
>>>>>> Hi all,
>>>>>> I manage to use and run an instance of Zanata server. I use it to
>>>>>> translate Java Properties (UTF-8 Encoding), which are also
>>>>>> synchronized with my svn repository. To be short, the architecture is
>>>>>> something like this: "Zanata Server" <-zanata-cli-> "Working Copy"
>>>>>> <-svn-> "Code Repository". Everything seems to work great, except for
>>>>>> one thing. Look at thes exported properties.
>>>>>>
>>>>>> Source file en_US (pushed on Zanata via zanata-cli)
>>>>>> 9016 = The field %0 must be an alphanumeric string (letters and
>>>>>> numbers with other character such as parenthesis and -_;:!?,./)
>>>>>> Translation file it_IT which (1) has been pushed and (2) then pulled
>>>>>> 9016=Il campo %0 deve essere una stringa alfanumerica (lettere e
>>>>>> numeri con altri caratteri quali parentesi e -_;\:\!?,./)
>>>>>>
>>>>>> I can't figure it out why Zanata has added "\" to "!" and ":", anche
>>>>>> why only at these two character.
>>>>>> Any help?
>>>>>>
>>>>>> Thanks,
>>>>>> Alessandro.
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> zanata-users mailing list
>>>>>> zanata-users at redhat.com
>>>>>> https://www.redhat.com/mailman/listinfo/zanata-users
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> zanata-users mailing list
>>>>> zanata-users at redhat.com
>>>>> https://www.redhat.com/mailman/listinfo/zanata-users
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> zanata-users mailing list
>>> zanata-users at redhat.com
>>> https://www.redhat.com/mailman/listinfo/zanata-users
>>>
>>>
>>
>
>

-- 
Regards,
-----------------------------------------------------
Ankitkumar Patel             	Mob: +91 9890772942
Manager, Localization Services	Desk: +91 2030467211
Pune - India            	Fax: +91 2030467499
-----------------------------------------------------
http://www.ankit644.com/




More information about the zanata-users mailing list