Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Corné Aussems
What tools used?
March 4, 2009 12:58 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1311

Join Date: October 3, 2006

Recent Posts

What tools do you use to compare your latest language.properties.native against the latest in trunk?

I asked this because i use the Subclipse plugin in RAD 7.0 (eclipse) but get differences in the non-ASCII characters.
see attached screenshot.
I use UltraEdit to edit the file
Attachment

Attachments: ScreenShot.png (77.2k)
Julio Camarero
RE: What tools used?
March 5, 2009 12:02 AM
Answer

Julio Camarero

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1662

Join Date: July 15, 2008

Recent Posts

Hi Corné,

I have been using IntelliJ Idea without having any problem but that is not free . Maybe your Eclipse is not well setup because that is very strange. Have you tried with Netbeans?

There are also some nice open source programs to compare files, such as KDiff3 or Kompare for Linux.

Cheers!
Corné Aussems
Re: [Liferay Forums][Translations] RE: What tools used?
March 5, 2009 12:37 AM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1311

Join Date: October 3, 2006

Recent Posts

Julio,

I use a rather good comparision tool utlracompare from(ultraedit).
But the problem lies in the fact that I get a different encoding back than
what I committed to you.
So i think that somewhere in the process i do something wrong.


ë = alt-0235 = \U00EB




in my native file the HEX value = EB

in the trunk the HEX value = ë


Ah ok I now just downloaded the file from
http://svn.liferay.com/repos/public/portal/trunk/portal-impl/src/content/
Language_nl.properties.native en there i don't have these differences.
So it must be my svn plugin that doews something to it.

Thanks anyway.
Olaf Kock
RE: Re: [Liferay Forums][Translations] RE: What tools used?
March 11, 2009 1:29 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3425

Join Date: September 23, 2008

Recent Posts

Most likely it's your local encoding. If you work on windows, your tools will most likely default to some windows-xxxx encoding similar to ISO-8859-1 (in western europe). I believe that the native files are in UTF-8. So if your svn client checks out UTF-8 and your editor tries to read "native" - e.g. ISO-8859-1 - it will mess up. Also if your svn tries to translate the UTF-8 repository to your native ISO-8859-1 and your tools expect UTF-8 a similar effect appears.

To translate back and forth between the native (any encoding) and the escaped-unicode format, use javas native2ascii tool (comes with the jdk, maybe also with the jre)

Cheers,
Olaf
Corné Aussems
RE: Re: [Liferay Forums][Translations] RE: What tools used?
March 11, 2009 1:09 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1311

Join Date: October 3, 2006

Recent Posts

Olaf thanks for your interest;

but IMHO it's the other way arround. excerpt from your added link;
"Converts a file with native-encoded characters (characters which are
non-Latin 1 and non-Unicode) to one with Unicode-encoded characters."

I think my svn plugin or comparator converts the native code from the svn
to UTF-8 but it should keep it "native"

I looked for a way to deal with this but had no luck.
I download the source now from http://svn.liferay.com and then compare it
with my UltraCompare tool.
Olaf Kock
RE: Re: [Liferay Forums][Translations] RE: What tools used?
March 11, 2009 2:44 PM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3425

Join Date: September 23, 2008

Recent Posts

Hi Corné
It works in both directions. See the -reverse parameter. Use -encoding (with the desired encoding) to specify nonstandard encodings.
Cheers,
Olaf
Corné Aussems
RE: Re: [Liferay Forums][Translations] RE: What tools used?
March 16, 2009 6:58 AM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1311

Join Date: October 3, 2006

Recent Posts

Thanks Olaf,

I now check it out as UTF-8 and after altering i use >> native2ascii -encoding UTF-8