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

Alessandro Portosa alessandro.portosa at eng.it
Thu Jan 15 11:22:19 UTC 2015


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
>>
>




More information about the zanata-users mailing list