Skip to content

Commit dfb2dce

Browse files
committed
Added internationalization using po files. Already English, Russian, French, German, Dutch, Spanish, Portuguese, Polish, Indonesian, Greek, Esperanto, Hebrew and Arabic languages. (18)
1 parent d0091a6 commit dfb2dce

13 files changed

+9143
-1614
lines changed

src/filelistform.mfm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ object filelistfo: tfilelistfo
122122
face.template = mainfo.tfaceplayerlight
123123
taborder = 4
124124
hint = 'Number of files in the list'
125-
bounds_x = 184
125+
bounds_x = 210
126126
bounds_y = 102
127-
bounds_cx = 69
127+
bounds_cx = 43
128128
bounds_cy = 24
129129
anchors = [an_left, an_bottom]
130130
textflags = [tf_xcentered, tf_ycentered]
131-
value = '0 files'
131+
value = '1000'
132132
reffontheight = 15
133133
end
134134
object tbutton11: tbutton
@@ -942,7 +942,7 @@ object filelistfo: tfilelistfo
942942
hint = 'History of Directories'
943943
bounds_x = 27
944944
bounds_y = 102
945-
bounds_cx = 156
945+
bounds_cx = 182
946946
bounds_cy = 24
947947
anchors = [an_left, an_right, an_bottom]
948948
statfile = mainfo.tstatfile1
@@ -1060,8 +1060,8 @@ object filelistfo: tfilelistfo
10601060
face.template = mainfo.tfaceorange
10611061
taborder = 6
10621062
visible = False
1063-
bounds_x = 2
1064-
bounds_y = 97
1063+
bounds_x = 4
1064+
bounds_y = 33
10651065
bounds_cx = 431
10661066
bounds_cy = 32
10671067
anchors = [an_left, an_bottom]

src/filelistform.pas

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,11 @@ procedure tfilelistfo.onchangpath(const Sender: TObject; findex: integer);
509509
end;
510510

511511
edfilescount.Value := list_files.rowcount;
512-
if edfilescount.Value > 1 then
513-
filescount.Value := msestring(IntToStr(edfilescount.Value) + ' files')
514-
else
515-
filescount.Value := msestring(IntToStr(edfilescount.Value) + ' file');
512+
// if edfilescount.Value > 1 then
513+
filescount.Value := msestring(IntToStr(edfilescount.Value));
514+
// lang_filelistfo[Ord(fi_filelistfodragdock)]);
515+
// else
516+
// filescount.Value := msestring(IntToStr(edfilescount.Value) + ' file');
516517

517518
finally
518519
datalist_files.Free;
@@ -723,16 +724,16 @@ procedure tfilelistfo.onbefdrop(const Sender: TObject);
723724

724725
procedure tfilelistfo.onaftdrop(const Sender: TObject);
725726
begin
726-
historyfn.Width := 156;
727+
historyfn.Width := 182;
727728
historyfn.Value := tosysfilepath(extractfilepath(historyfn.Value));
728729
end;
729730

730731
procedure tfilelistfo.onchangecount(const Sender: TObject);
731732
begin
732-
if edfilescount.Value > 1 then
733-
filescount.Value := msestring(IntToStr(edfilescount.Value) + ' files')
734-
else
735-
filescount.Value := msestring(IntToStr(edfilescount.Value) + ' file');
733+
// if edfilescount.Value > 1 then
734+
filescount.Value := intToStr(edfilescount.Value) ;
735+
// else
736+
// filescount.Value := msestring(IntToStr(edfilescount.Value) + ' file');
736737
end;
737738

738739
procedure tfilelistfo.ondestr(const Sender: TObject);
@@ -820,7 +821,7 @@ procedure tfilelistfo.addfile(const Sender: TObject);
820821
thestrnum, thestrx, thestrext, thestrfract: msestring;
821822
begin
822823

823-
tfiledialog1.controller.captionopen := 'Open Audio File';
824+
tfiledialog1.controller.captionopen := lang_filelistfo[Ord(fi_filelistfo)];
824825

825826
tfiledialog1.controller.fontcolor := cl_black;
826827
if mainfo.typecolor.Value = 2 then
@@ -957,7 +958,8 @@ procedure tfilelistfo.opendir(const Sender: TObject);
957958
x: integer;
958959
ara, arb: msestringarty;
959960
begin
960-
tfiledialog1.controller.captiondir := 'Open Audio Directory';
961+
tfiledialog1.controller.captiondir :=
962+
lang_filelistfo[Ord(fi_tbutton6_hint)];
961963
tfiledialog1.controller.nopanel := False;
962964
tfiledialog1.controller.compact := False;
963965

@@ -970,7 +972,7 @@ procedure tfilelistfo.opendir(const Sender: TObject);
970972
setlength(ara, 6);
971973
setlength(arb, 6);
972974

973-
ara[0] := 'All Audio';
975+
ara[0] := lang_mainfo[Ord(ma_tmainmenu1_parentitem_showall)]; {'Show All'}
974976
ara[1] := 'Mp3"';
975977
ara[2] := 'Wav';
976978
ara[3] := 'Ogg';

src/filelistform_mfm.pas

Lines changed: 1259 additions & 1259 deletions
Large diffs are not rendered by default.

src/findmessage.mfm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ object findmessagefo: tfindmessagefo
134134
taborder = 2
135135
bounds_x = 6
136136
bounds_y = 32
137-
bounds_cx = 218
137+
bounds_cx = 190
138138
bounds_cy = 22
139139
anchors = [an_left, an_top, an_right]
140140
statfile = mainfo.tstatfile1
@@ -158,9 +158,9 @@ object findmessagefo: tfindmessagefo
158158
2
159159
)
160160
taborder = 3
161-
bounds_x = 242
162-
bounds_y = 32
163-
bounds_cx = 102
161+
bounds_x = 207
162+
bounds_y = 34
163+
bounds_cx = 104
164164
bounds_cy = 17
165165
anchors = [an_top, an_right]
166166
statfile = mainfo.tstatfile1

src/findmessage_mfm.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ implementation
180180
0,17,102,114,97,109,101,46,108,111,99,97,108,112,114,111,112,115,49,11,
181181
0,0,0,8,116,97,98,111,114,100,101,114,2,2,8,98,111,117,110,100,
182182
115,95,120,2,6,8,98,111,117,110,100,115,95,121,2,32,9,98,111,117,
183-
110,100,115,95,99,120,3,218,0,9,98,111,117,110,100,115,95,99,121,2,
183+
110,100,115,95,99,120,3,190,0,9,98,111,117,110,100,115,95,99,121,2,
184184
22,7,97,110,99,104,111,114,115,11,7,97,110,95,108,101,102,116,6,97,
185185
110,95,116,111,112,8,97,110,95,114,105,103,104,116,0,8,115,116,97,116,
186186
102,105,108,101,7,17,109,97,105,110,102,111,46,116,115,116,97,116,102,105,
@@ -205,8 +205,8 @@ implementation
205205
115,11,0,17,102,114,97,109,101,46,108,111,99,97,108,112,114,111,112,115,
206206
49,11,0,16,102,114,97,109,101,46,111,117,116,101,114,102,114,97,109,101,
207207
1,2,0,2,2,2,89,2,2,0,8,116,97,98,111,114,100,101,114,2,
208-
3,8,98,111,117,110,100,115,95,120,3,242,0,8,98,111,117,110,100,115,
209-
95,121,2,32,9,98,111,117,110,100,115,95,99,120,2,102,9,98,111,117,
208+
3,8,98,111,117,110,100,115,95,120,3,207,0,8,98,111,117,110,100,115,
209+
95,121,2,34,9,98,111,117,110,100,115,95,99,120,2,104,9,98,111,117,
210210
110,100,115,95,99,121,2,17,7,97,110,99,104,111,114,115,11,6,97,110,
211211
95,116,111,112,8,97,110,95,114,105,103,104,116,0,8,115,116,97,116,102,
212212
105,108,101,7,17,109,97,105,110,102,111,46,116,115,116,97,116,102,105,108,

src/main.pas

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ tmainfo = class(tmainform)
161161
implementation
162162

163163
uses
164+
findmessage,
164165
infos,
165166
conflang,
166167
config,
@@ -619,6 +620,17 @@ procedure tmainfo.setlangstrumpract(thelang: string);
619620

620621
end;
621622

623+
with findmessagefo do
624+
begin
625+
tbutton3.caption := lang_stockcaption[Ord(sc_close)];
626+
end;
627+
628+
with statusfo do
629+
begin
630+
ok.caption := lang_stockcaption[Ord(sc_close)];
631+
cancel.caption := lang_stockcaption[Ord(sc_cancel)];
632+
end;
633+
622634
with infosfo do
623635
begin
624636
caption := lang_commanderfo[Ord(co_nameplayers_hint)] + ' ' +

0 commit comments

Comments
 (0)