Romanian characters in TCs menu / language file

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
adresamea
Junior Member
Junior Member
Posts: 3
Joined: 2017-11-19, 22:22 UTC

Romanian characters in TCs menu / language file

Post by *adresamea »

Hello!

I wanted to ask a question if is there any possibility for making the program display the menu in Romanian with the right characters (diacritics).

I mean that we have in our alphabet a few letters :
ă, î, â, Ă, î, Â and mainly ș, Ș and ț, Ț
that are displayed in a wrong manner.
In our language, the right kind of writing is with comma below and not with cedilla (as it is in turkish).
So, the characters should look like this:
ș instead of ş
Ș instead of Ş
ț instead of ţ
Ț instead of Ţ.

I repeat, this is only about the menu language of Total Commander which is displayed in (Romanian), and the most obvious place to see is when you click on network neigbourhood. In romanian Network = Rețea. So, the name Rețea is displayed incorrect, not recognising the letter ț and looks like this: Re?ea.
The rest of the folders on the drive are ok, when creating, when renaming, when searching and so on...

When I tried to edit the language file by changing the letters to the right ones, all the menus that contain the letters displays a square instead of those characters.

I know this is just a minor thing, but I am just wondering if is it possible to add support for those letters.

Thank you!

PS:
For a little help, here are the Glyph values (or codepoints) for those letters:

 $00C2
â $00E2
Ă $0102
ă $0103
Î $00CE
î $00EE
Ș $0218 - with comma
ș $0219 - with comma
Ț $021A - with comma
ț $021B - with comma

Ş $015E - with cedilla
ş $015F - with cedilla
Ţ $0162 - with cedilla
ţ $0163 - with cedilla
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Are you using Romanian language included with TC or another one?

If you are using your own language file, be sure it is contain the following line at the begining

Code: Select all

codepage=1250
User avatar
adresamea
Junior Member
Junior Member
Posts: 3
Joined: 2017-11-19, 22:22 UTC

Post by *adresamea »

I am using the official TC language provided in the installer.

There are 3 files:
WCMD_ROM.INC
WCMD_ROM.LNG
WCMD_ROM.MNU

The code is already in the WCMD_ROM.LNG file.
I only know how to edit it in Notepad++ so,
I converted all 3 files to UTF-8, replaced all the letters and now TC opens, recognise the files but within the user interface, those letters are shown with some different codes: ș = Č™, ț = Č>, and all the others.

So I think It's all about the coding of the Total Commander and how does it interpret the language file coding.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Some of the Romainian characters are not part of codepage 1250. Therefore your editor must have saved the file as UTF-8.

Therefore you need to save all 3 files as UTF-8 without BOM (byte order marker) and change the line
codepage=1250
to
codepage=65001
Author of Total Commander
https://www.ghisler.com
User avatar
adresamea
Junior Member
Junior Member
Posts: 3
Joined: 2017-11-19, 22:22 UTC

Post by *adresamea »

I have done this, and right after I convert the 3 original files to UTF-8 without BOM I close TC and at reopen gives me: Syntax errorin line 1 of menu file: 'Ţ;

The same thing happens when I convert and change the codepage to 65001, afterwards restart TC and the menus are all displayed in English.

I think it's too complicated so we can leave the way it is, I don't want to give any headaches to anybody.

Thank you very much for the answer!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Seems like the byte order marker is still there.

Please send me the 3 files zipped by e-mail to support at ghisler dot com. I will fix them for you.

Notepad will always add a byte order marker when you save a file with it.
Author of Total Commander
https://www.ghisler.com
Post Reply