From 55ed9e2720d1d58c4e2f44609f8bd336a4931fa8 Mon Sep 17 00:00:00 2001 From: kaitz Date: Sun, 14 Jan 2007 15:21:41 +0000 Subject: [PATCH] Estonian key_map and system_language in setup and panel. git-svn-id: svn://kolibrios.org@275 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/panel/trunk/@PANEL.ASM | 5 +- programs/system/panel/trunk/build_et.bat | 5 ++ programs/system/setup/trunk/setup.asm | 64 +++++++++++++++++++++--- 3 files changed, 66 insertions(+), 8 deletions(-) create mode 100644 programs/system/panel/trunk/build_et.bat diff --git a/programs/system/panel/trunk/@PANEL.ASM b/programs/system/panel/trunk/@PANEL.ASM index f3b8dae12e..9ccacafa0b 100644 --- a/programs/system/panel/trunk/@PANEL.ASM +++ b/programs/system/panel/trunk/@PANEL.ASM @@ -1913,11 +1913,12 @@ m_icon: lsz m_text,\ ru, "",\ - en, "MENU" + en, "MENU",\ + et, "MEN" mi_text db 'WAVETETRBGRDGPL ' -flag_text db 'EnFiGeRuFr' +flag_text db 'EnFiGeRuFrEt' type_lang db 0 ;music_type db 1 diff --git a/programs/system/panel/trunk/build_et.bat b/programs/system/panel/trunk/build_et.bat new file mode 100644 index 0000000000..7e6b1cdd5e --- /dev/null +++ b/programs/system/panel/trunk/build_et.bat @@ -0,0 +1,5 @@ +@erase lang.inc +@echo lang fix et >lang.inc +@fasm @panel.asm @panel +@erase lang.inc +@pause \ No newline at end of file diff --git a/programs/system/setup/trunk/setup.asm b/programs/system/setup/trunk/setup.asm index 8625510059..30280c105d 100644 --- a/programs/system/setup/trunk/setup.asm +++ b/programs/system/setup/trunk/setup.asm @@ -196,7 +196,7 @@ set_syslanguage_and_exit: mov ebx,5 ; mov ecx,9 int 0x40 - cmp eax,4 + cmp eax,6 jne temp ;@f xor eax,eax ;@@: inc eax @@ -477,7 +477,7 @@ close: dec eax jmp nodownup downuplbl: - mov eax,4 + mov eax,5 nodownup: mov [keyboard],eax call draw_infotext @@ -485,7 +485,7 @@ close: cmp ah,5 jnz nokp mov eax,[keyboard] - cmp eax,4 + cmp eax,5 je updownlbl inc eax jmp noupdown @@ -678,7 +678,7 @@ close: cmp ah,43 jnz nosysp mov eax,[syslang] - cmp eax,4 + cmp eax,6 je nosysp inc eax mov [syslang],eax @@ -842,6 +842,23 @@ close: mov edx,5 int 0x40 nosetkeylfr: + cmp [keyboard],5 + jnz nosetkeylet + mov eax,21 ; estonian + mov ebx,2 + mov ecx,1 + mov edx,et_keymap + int 0x40 + mov eax,21 + inc ecx + mov edx,et_keymap_shift + int 0x40 + mov eax,21 + mov ecx,9 + mov edx,6 + int 0x40 + call alt_gen + nosetkeylet: ret alt_gen: @@ -1029,7 +1046,11 @@ draw_infotext: mov [text00+LLL*10+28],dword 'FREN' mov [text00+LLL*10+32],dword 'CH ' nofr: - + cmp eax,5 + jnz noet + mov [text00+LLL*10+28],dword 'ESTO' + mov [text00+LLL*10+32],dword 'NIAN' + noet: mov eax,[syslang] ; SYSTEM LANGUAGE dec eax @@ -1058,7 +1079,11 @@ draw_infotext: mov [text00+LLL*8+28],dword 'FREN' mov [text00+LLL*8+32],dword 'CH ' nofr5: - + cmp eax,5 + jne noet5 + mov [text00+LLL*8+28],dword 'ESTO' + mov [text00+LLL*8+32],dword 'NIAN' + noet5: mov eax,[midibase] mov esi,text00+LLL*0+32 @@ -1711,6 +1736,33 @@ ru_keymap_shift: db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' +et_keymap: + + db '6',27 + db '1234567890+',8,9 + db 'qwertyuiop',13 + db '~asdfghjkl','1',0,'ZXCVBNM;:_',0,'45 ' + db '@234567890123',180,178,184,'6',176,'7' + db 179,'8',181,177,183,185,182 + db 'AB>D',255,'FGHIJKLMNOPQRSTUVWXYZ' + db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + read_fileinfo: dd 0 dd 0