Page 1 sur 1

Missing info about encoding in translations file

Publié : 31 mars 2016 17:27
par scootergrisen
Where does it say what encoding the translations files should be in?

Re: Missing info about encoding in translations file

Publié : 01 avr. 2016 8:11
par Antonio
don't understand the question ?
you received the .pas file i sent to you ?
just translate the end of the file (part 1.17) and send me it again to compile

Re: Missing info about encoding in translations file

Publié : 01 avr. 2016 12:12
par scootergrisen
Encoding is the way the file is saved. Like UTF-8 or ISO-8895-1 or what ever.
So the characters show up correctly.

Re: Missing info about encoding in translations file

Publié : 01 avr. 2016 17:51
par Antonio
save in ANSI mode only, like other updates :wink:

Re: Missing info about encoding in translations file

Publié : 04 avr. 2016 12:13
par scootergrisen
Do you mean Windows-1252?
Maybe this should be added to the files like in TrEncoding so you and translators know what encoding the file is saved in.

Re: Missing info about encoding in translations file

Publié : 04 avr. 2016 14:34
par Antonio
We do like this until this day and it will work, why do you want to change today ?
Windows-1252? is for non unicode setting, only for client PC, not for the plg :wink:

Just translate the part 1.17 in notepad (not wordpad or other). Save in ANSI and send me only this new strings, i will merge and compil the .pas

Code : Tout sélectionner

// 1.17
TrLblDivide = 'Divide';
TrLblLighten = 'Lighten'; //  Dodge
TrLblDarken = 'Darken';   // burn
TrLblMergeHLight = 'Hard light';
TrLblMergeSLight = 'Soft light';
TrLblMergeAddition = 'Addition';
TrLblMergeSubstract = 'Substract';
TrLblMergeGExtract = 'Grain extract';
TrLblMergeGMerge = 'Grain merge';
TrLblMergeGDarken = 'Gamma -';
TrLblMergeGLighten = 'Gamma +';
TrLblMergeGHLight = 'Gamma light';
TrLblRatioScreen = 'Screen ratio';
TrMnuMicroContrast = 'Micro contrast';
TrMnuHighPass = 'High pass';

Re: Missing info about encoding in translations file

Publié : 05 avr. 2016 13:47
par scootergrisen
I think you should write somewhere what encoding to use.

Re: Missing info about encoding in translations file

Publié : 05 avr. 2016 15:37
par Antonio
Are you the same translator who updated the previous version ?
Because i don't understand why it is a problem for you this time :roll:

Re: Missing info about encoding in translations file

Publié : 06 avr. 2016 8:34
par Antonio
don't forget before to set correctelly the windows langage settings for non unicode text
(set the danish langage in the advanced windows settings)

Re: Missing info about encoding in translations file

Publié : 06 avr. 2016 17:42
par scootergrisen
Yes its me that translated before and its not a problem, i just think its a good idea to write some where what encoding to use.
And what newline to use and stuff like that.

Re: Missing info about encoding in translations file

Publié : 06 avr. 2016 19:34
par Antonio
Ok, not understanded correctely the problem.
you can use the TrCharset variable but it is not used by the programm, it's only for information for the translator :wink:

Re: Missing info about encoding in translations file

Publié : 07 avr. 2016 15:13
par scootergrisen
charset and encoding are not the same as far as i know.

Re: Missing info about encoding in translations file

Publié : 08 avr. 2016 8:36
par Antonio
possible but you can just add a comment in the translation file because it is not used :wink:

Re: Missing info about encoding in translations file

Publié : 08 avr. 2016 12:11
par scootergrisen
My point is that if you dont have control over what encoding are used characters might not be showed correctly.

Like in my language we use æøå and if you dont give instructions as to what encoding to use and you dont know what encoding the file is using some characters like æøå might not be showed correctly.

Re: Missing info about encoding in translations file

Publié : 08 avr. 2016 15:22
par Antonio
of course, but you need unicode compiler like new version of delphi (XE 8) or Lazarus but Delphi 7 don't support that :wink: