UTF-8 Encoding for SnapBackup_it.properties

34 views
Skip to first unread message

Dem Pilafian

unread,
Aug 7, 2009, 1:36:59 PM8/7/09
to snapbackup...@googlegroups.com
Hi Giorgio,

I see that you checked in a new translation (file:
SnapBackup_it.properties). It looks great, and it's cool to have the
Italian version complete.

It does seem that some of the UTF-8 character encoding in the file got
a little messed up.

For example, the line:
ProfilesAddMsgExists=Un profilo con quel nome esiste già.

was transformed into:
ProfilesAddMsgExists=Un profilo con quel nome esiste gi\u00e0.

The "à" character (lowercase "a" with grave) turned into "\u00e0".

What application did you use to edit the properties file?

- Dem
______________________________________________________________
Dem Pilafian ~ http://www.snapbackup.com/translate

Giorgio Ponza

unread,
Aug 24, 2009, 4:49:12 AM8/24/09
to snapbackup...@googlegroups.com
Hi Dem !
sorry for my late answer, but i'm just back from holiday :D

For the file editing i used Eclipse 3.4 on Linux with UTF8 encoding.
In linux i had some visualization problems with the original
translation, infact the 'a grave' where shown as ? (question mark)
So this time i've used the Unicode translation. Then i compiled your
java code and tested with my new translation. This time in Linux i can
see accented chars in the right way, and i suppose it's ok also for
Windows/MAC system (but not tested).

Let me know if i have to change something.
Have a good day

Giorgio Ponza

Dem Pilafian

unread,
Sep 11, 2009, 1:28:13 PM9/11/09
to snapbackup...@googlegroups.com
Hi Giorgio,

It took a while, but I finally got the Ubuntu instructions done.  The steps should be similar for other flavors of Linux.

Snap Backup Translator Steps for Ubuntu:

There's also a new build script for Ubuntu, and it's at:
~/Projects/snapbackup/src/tools/build.sh

Use this new script to build Snap Backup.  The default build script in Eclipse will not work because it does not know how to handle the UTF-8 encoding.  The new Snap Backup build script has a special step to convert the UTF-8 encoded properties files into \u#### encoded files.

When you edit your properties file, be sure to edit the one in this folder:
~/Projects/snapbackup/src/resources/properties

The properties file should use UTF-8 characters (such as à) and should not contain \u#### encoding (such as \u00e0).

I did a quick test in Eclipse on Ubuntu where I set the encoding (File  -->  Set Encoding...  -->  UTF-8  -->  OK), saved some edits, and then ran the build.sh script.  Everything worked fine.

In case you are curious, the build script puts the \u#### encoded files here:
~/Projects/snapbackup/build/classes/

Ciao,
Dem
______________________________________________________________


Reply all
Reply to author
Forward
0 new messages