italian version

git-svn-id: svn://kolibrios.org@3628 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
fedesco 2013-06-09 06:40:31 +00:00
parent f272bbb588
commit d836699ddd
13 changed files with 360 additions and 169 deletions

View File

@ -19,6 +19,8 @@ use32
dd 0x0 dd 0x0
dd app_path dd app_path
include 'lang.inc' ;language support
include 'ASPAPI.INC' include 'ASPAPI.INC'
include 'string.inc' include 'string.inc'
include 'macros.inc' include 'macros.inc'
@ -896,7 +898,11 @@ RunProgram:
clc clc
ret ret
.err_out: .err_out:
if lang eq it
print "Impossibile caricare il programma"
else
print "Can't load program" print "Can't load program"
end if
popa popa
stc stc
ret ret
@ -912,7 +918,11 @@ mykey_window dd 0 ; Slot number of MyKey
;########### Input Thread data start ############ ;########### Input Thread data start ############
; Input Thread Title ; Input Thread Title
it_labelt db "Input hotkey and it's name" if lang eq it
it_labelt db "Inserisci hotkey e nome "
else
it_labelt db "Input hotkey and it's name"
end if
;labellen: ;labellen:
it_edit edit_box 180, 20, 30, 0xffffff, 0xAA80, 0x0000ff, 0x0, 0x0, 31, it_buf_cmd_line, 0, 0 it_edit edit_box 180, 20, 30, 0xffffff, 0xAA80, 0x0000ff, 0x0, 0x0, 31, it_buf_cmd_line, 0, 0
it_buf_cmd_line dd 0 ;db MAX_HOTKEYS_NUM*32 dup(0) ; !Make it dynamic!!! it_buf_cmd_line dd 0 ;db MAX_HOTKEYS_NUM*32 dup(0) ; !Make it dynamic!!!
@ -920,16 +930,27 @@ it_window dd 0 ; Slot number of the input thread
it_alive db 0 ; Flag of the input thread existance it_alive db 0 ; Flag of the input thread existance
it_keycode db 0 it_keycode db 0
it_hotkey_addr dd 0 it_hotkey_addr dd 0
it_hint db 'or press Esc to cancel',0 if lang eq it
it_hint db 'o premi Esc per cancellare',0
else
it_hint db 'or press Esc to cancel',0
end if
;########### Input Thread data end ############ ;########### Input Thread data end ############
;Button names ;Button names
AddKeyText db 'Add',0 if lang eq it
ReloadKeyText db 'Reload',0 AddKeyText db 'Aggiungi',0
SaveKeyText db 'Save',0 ReloadKeyText db 'Ricarica',0
;DeleteKeyText db 'Delete',0 SaveKeyText db 'Salva',0
;ManageKeyText db 'Manage',0 ;DeleteKeyText db 'Delete',0
;ManageKeyText db 'Manage',0
else
AddKeyText db 'Add',0
ReloadKeyText db 'Reload',0
SaveKeyText db 'Save',0
;DeleteKeyText db 'Delete',0
;ManageKeyText db 'Manage',0
end if
hotkeys_num db 0;15 hotkeys_num db 0;15
;keyboard_mode db 0 ; Scan or ASCII keys to send ? 0 - ASCII , 1 - Scan ;keyboard_mode db 0 ; Scan or ASCII keys to send ? 0 - ASCII , 1 - Scan
@ -947,11 +968,17 @@ sys_path:
system_dir0 db '/sys/lib/' system_dir0 db '/sys/lib/'
boxlib_name db 'box_lib.obj',0 boxlib_name db 'box_lib.obj',0
err_message_found_lib db "Can't find box_lib.obj",0 if lang eq it
head_f_i: err_message_found_lib db "Non trovo box_lib.obj",0
head_f_l db 'System error',0 head_f_i:
err_message_import db 'Error on import box_lib.obj',0 head_f_l db 'Errore di sistema',0
err_message_import db 'Error di importazione di box_lib.obj',0
else
err_message_found_lib db "Can't find box_lib.obj",0
head_f_i:
head_f_l db 'System error',0
err_message_import db 'Error on import box_lib.obj',0
end if
align 4 align 4
myimport: myimport:
edit_box_draw dd aEdit_box_draw edit_box_draw dd aEdit_box_draw

View File

@ -0,0 +1,19 @@
#!gmake
# Macro
FASM=/opt/bin/fasm
KPACK=/opt/bin/kpack
LANG=lang.inc
FILE=MyKey
SOURCE=${FILE}.asm
OUT=${FILE}.bin
en:
echo "lang fix en" > ${LANG}
${FASM} ${SOURCE} ${OUT}
it:
echo "lang fix it" > ${LANG}
${FASM} ${SOURCE} ${OUT}
clean:
rm -f ${LANG} ${OUT}

View File

@ -27,7 +27,12 @@ keycode_name=LCtrl + g
path=games/mine path=games/mine
param= param=
[hotkey4] [hotkey4]
name=Games directory if lang eq it
name=Cartella giochi
else
name=Games directory
end if
keycode=8226 keycode=8226
keycode_name=RAlt + g keycode_name=RAlt + g
path=file managers/eolite path=file managers/eolite
@ -39,7 +44,11 @@ keycode_name=RShift + LCtrl + ?
path=file managers/kfm path=file managers/kfm
param= param=
[hotkey6] [hotkey6]
name=System Message Board if lang eq it
name=Messaggi di sistema
else
name=System Message Board
end if
keycode=4127 keycode=4127
keycode_name=LAlt + s keycode_name=LAlt + s
path=develop/board path=develop/board

View File

@ -18,6 +18,7 @@ include '../../develop/libraries/box_lib/load_lib.mac'
include '../../develop/libraries/box_lib/trunk/box_lib.mac' include '../../develop/libraries/box_lib/trunk/box_lib.mac'
;include 'mem.inc' ;include 'mem.inc'
;include 'dll.inc' ;include 'dll.inc'
include 'lang.inc'
@use_library ;_mem mem.Alloc,mem.Free,mem.ReAlloc, dll.Load @use_library ;_mem mem.Alloc,mem.Free,mem.ReAlloc, dll.Load
@ -165,10 +166,15 @@ ch3 check_box2 (5 shl 16)+15,(29 shl 16)+10,5, 0xffffff,0x8000,0xff,\
txt_158,0+ch_flag_middle txt_158,0+ch_flag_middle
check_boxes_end: check_boxes_end:
txt_160 db 'Num',0 if lang eq it
txt_159 db 'Caps',0 txt_160 db 'Bloc Num',0
txt_158 db 'Scroll',0 txt_159 db 'Bloc Maiusc',0
txt_158 db 'Bloc Scorr',0
else
txt_160 db 'Num',0
txt_159 db 'Caps',0
txt_158 db 'Scroll',0
end if
head_f_i: head_f_i:
head_f_l db 'Ñèñòåìíàÿ îøèáêà',0 head_f_l db 'Ñèñòåìíàÿ îøèáêà',0

View File

@ -47,6 +47,7 @@ include 'proc32.inc'
include 'macros.inc' include 'macros.inc'
include 'libio.inc' include 'libio.inc'
include '../../../dll.inc' include '../../../dll.inc'
include 'lang.inc'
purge mov purge mov
@ -345,15 +346,25 @@ window_title:
db APP_NAME, ' ', APP_VERSION, 0 db APP_NAME, ' ', APP_VERSION, 0
;; Messages ;; Messages
message_dbg_not_found: if lang eq it
message_dbg_not_found:
db '%s non trovato', 10, 0
message_error:
db 'File (%s) non trovato!', 0
message_ok:
db '%s caricato correttamente. PID: %d (0x%X)', 0
else
message_dbg_not_found:
db '%s not found', 10, 0 db '%s not found', 10, 0
message_error: message_error:
db 'File (%s) not found!', 0 db 'File (%s) not found!', 0
message_ok: message_ok:
db '%s loaded succesfully. PID: %d (0x%X)', 0 db '%s loaded succesfully. PID: %d (0x%X)', 0
end if
;; Configuration path ;; Configuration path
etc_cfg: etc_cfg:
db '/sys/etc/' db '/sys/etc/'

View File

@ -6,7 +6,6 @@ KPACK=/opt/bin/kpack
LANG=lang.inc LANG=lang.inc
FILE=menu FILE=menu
SOURCE=${FILE}.asm SOURCE=${FILE}.asm
OUT=${FILE}.bin
en: en:
echo "lang fix de" > lang.inc echo "lang fix de" > lang.inc
@ -27,4 +26,4 @@ it:
rm ${LANG} rm ${LANG}
clean: clean:
rm ${LANG} \@menu rm -f ${LANG} \@menu

View File

@ -0,0 +1,19 @@
#!gmake
# Macro
FASM=/opt/bin/fasm
KPACK=/opt/bin/kpack
LANG=lang.inc
FILE=mgb
SOURCE=${FILE}.asm
OUT=${FILE}.bin
en:
echo "lang fix en" > ${LANG}
${FASM} ${SOURCE} ${OUT}
it:
echo "lang fix it" > ${LANG}
${FASM} ${SOURCE} ${OUT}
clean:
rm -f ${LANG} ${OUT}

View File

@ -64,6 +64,7 @@ include '..\..\..\proc32.inc'
;include '..\..\..\debug.inc' ;include '..\..\..\debug.inc'
include '../../../develop/libraries/box_lib/trunk/box_lib.mac' include '../../../develop/libraries/box_lib/trunk/box_lib.mac'
include '../../../develop/libraries/box_lib/load_lib.mac' include '../../../develop/libraries/box_lib/load_lib.mac'
include 'lang.inc' ;language support
@use_library @use_library
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
start: start:
@ -685,36 +686,67 @@ LINE_HEIGHT = 13
TEST_REC_SIZE = 16 TEST_REC_SIZE = 16
TESTS_NUM = ($ - results_table) / TEST_REC_SIZE - 1 TESTS_NUM = ($ - results_table) / TEST_REC_SIZE - 1
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
aDrawingWindow db 'Window Of Type #3, 325x400 px',0 if lang eq it
aDrawingBar db 'Filled Rectangle, 100x250 px',0 aDrawingWindow db 'Window Of Type #3, 325x400 px',0
aDrawingPicture db 'Picture, 90x123, px',0 aDrawingBar db 'Filled Rectangle, 100x250 px',0
aDrawingPictF73 db 'Picture for Blitter, 90x123, px',0 aDrawingPicture db 'Picture, 90x123, px',0
aGetScreenF36 db 'Get a piece of screen f.36, 90x123, px',0 aDrawingPictF73 db 'Picture for Blitter, 90x123, px',0
aGetScreen_GS db 'Get a piece of screen GS, 90x123, px',0 aGetScreenF36 db 'Get a piece of screen f.36, 90x123, px',0
aDrawingVLine db 'Vertical Line, 350 px',0 aGetScreen_GS db 'Get a piece of screen GS, 90x123, px',0
aDrawingHLine db 'Horizontal Line, 270 px',0 aDrawingVLine db 'Linea verticale, 350 px',0
aDrawingFLine db 'Free-angled Line, 350 px',0 aDrawingHLine db 'Linea orizzontale, 270 px',0
aDrawingText1 db 'Fixed-width Text, 34 chars',0 aDrawingFLine db 'Free-angled Line, 350 px',0
aDrawingText2 db 'Proportional Text, 34 chars',0 aDrawingText1 db 'Fixed-width Text, 34 chars',0
aDrawingNumber db 'Decimal Number, 8 digits',0 aDrawingText2 db 'Proportional Text, 34 chars',0
aDrawingPixel db 'Single Pixel',0 aDrawingNumber db 'Decimal Number, 8 digits',0
aDrawingPixel db 'Singolo pixel',0
aTestText db 'This is a 34-charachters test text' aTestText db 'This is a 34-charachters test text'
aButtonsText db 'Test Comment+ Pattern+ Open Save',0 aButtonsText db 'Test Commenti Pattern+ Apri Salva',0
aCaption db 'Kolibri Graphical Benchmark 0.7',0 aCaption db 'Kolibri Graphical Benchmark 0.7',0
aLeft db 'Left :',0 aLeft db 'Sinistra:',0
aRight db 'Right :',0 aRight db 'Destra :',0
aComment1 db 'current',0 aComment1 db 'Attuale ',0
aComment2 db 'no pattern',0 aComment2 db 'no pattern',0
aComment db 'Comment',0 aComment db 'Commento',0
else
aDrawingWindow db 'Window Of Type #3, 325x400 px',0
aDrawingBar db 'Filled Rectangle, 100x250 px',0
aDrawingPicture db 'Picture, 90x123, px',0
aDrawingPictF73 db 'Picture for Blitter, 90x123, px',0
aGetScreenF36 db 'Get a piece of screen f.36, 90x123, px',0
aGetScreen_GS db 'Get a piece of screen GS, 90x123, px',0
aDrawingVLine db 'Vertical Line, 350 px',0
aDrawingHLine db 'Horizontal Line, 270 px',0
aDrawingFLine db 'Free-angled Line, 350 px',0
aDrawingText1 db 'Fixed-width Text, 34 chars',0
aDrawingText2 db 'Proportional Text, 34 chars',0
aDrawingNumber db 'Decimal Number, 8 digits',0
aDrawingPixel db 'Single Pixel',0
aTestText db 'This is a 34-charachters test text'
aButtonsText db 'Test Comment+ Pattern+ Open Save',0
aCaption db 'Kolibri Graphical Benchmark 0.7',0
aLeft db 'Left :',0
aRight db 'Right :',0
aComment1 db 'current',0
aComment2 db 'no pattern',0
aComment db 'Comment',0
end if
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
system_dir_Boxlib db '/sys/lib/box_lib.obj',0 system_dir_Boxlib db '/sys/lib/box_lib.obj',0
system_dir_ProcLib db '/sys/lib/proc_lib.obj',0 system_dir_ProcLib db '/sys/lib/proc_lib.obj',0
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
head_f_i: head_f_i:
head_f_l db 'System error',0 if lang eq it
head_f_l db 'Errore Sistema',0
else
head_f_l db 'System error',0
end if
err_message_found_lib1 db 'box_lib.obj - Not found!',0 err_message_found_lib1 db 'box_lib.obj - Not found!',0
err_message_found_lib2 db 'proc_lib.obj - Not found!',0 err_message_found_lib2 db 'proc_lib.obj - Not found!',0

View File

@ -25,7 +25,7 @@ STACK_SIZE=1024
dd I_END+STACK_SIZE ; esp dd I_END+STACK_SIZE ; esp
dd 0x0 , 0x0 ; I_Param , I_Icon dd 0x0 , 0x0 ; I_Param , I_Icon
include 'lang.inc' ;language support
@ -255,12 +255,21 @@ pos_ascii dd 0
ascii_string rb 0x11 ascii_string rb 0x11
reservado rb 3 reservado rb 3
if lang eq it
titulo db 'Visualizza la memoria del sistema operativo',0
teste db '-------- ----------------- Codice Hex ----------------- -- A S C I I --',0
barra1 db 'Indirizzo:00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 0123456789abcdef',0
titulo db 'Mostra a memoria do sistema operacional',0 else if lang eq es
titulo db 'Mostra a memoria do sistema operacional',0
teste db '-------- ------------------ Hex Code ------------------- -- A S C I I --',0 teste db '-------- ------------------ Hex Code ------------------- -- A S C I I --',0
barra1 db 'Address: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 0123456789abcdef',0 barra1 db 'Address: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 0123456789abcdef',0
else
titulo db 'Displays the operating system memory',0
teste db '-------- ------------------ Hex Code ------------------- -- A S C I I --',0
barra1 db 'Address: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 0123456789abcdef',0
end if
align 0x10 align 0x10
I_END: I_END:

View File

@ -0,0 +1,22 @@
#!gmake
# Macro
FASM=/opt/bin/fasm
KPACK=/opt/bin/kpack
LANG=lang.inc
FILE=MM
SOURCE=${FILE}.asm
OUT=${FILE}.bin
en:
echo "lang fix en" > ${LANG}
${FASM} ${SOURCE} ${OUT}
it:
echo "lang fix it" > ${LANG}
${FASM} ${SOURCE} ${OUT}
es:
echo "lang fix es" > ${LANG}
${FASM} ${SOURCE} ${OUT}
clean:
rm -f ${LANG} ${OUT}

View File

@ -0,0 +1,22 @@
#!gmake
# Macro
FASM=/opt/bin/fasm
KPACK=/opt/bin/kpack
LANG=lang.inc
FILE=mousemul
SOURCE=${FILE}.asm
OUT=${FILE}.bin
en:
echo "lang fix en" > ${LANG}
${FASM} ${SOURCE} ${OUT}
ru:
echo "lang fix ru" > ${LANG}
${FASM} ${SOURCE} ${OUT}
it:
echo "lang fix it" > ${LANG}
${FASM} ${SOURCE} ${OUT}
clean:
rm -f ${LANG} ${OUT}

View File

@ -286,9 +286,11 @@ UDATA
mouse_timer_ticks dd 0 mouse_timer_ticks dd 0
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
if lang eq ru if lang eq ru
ud_user_message db 'NumLock ¢ª«î砥⠨ ¢ëª«îç ¥â í¬ã«ïâ®à ¬ëè¨. “¯à ¢«¥­¨¥ ç¥à¥§ Numpad',0 ud_user_message db 'NumLock ¢ª«î砥⠨ ¢ëª«îç ¥â í¬ã«ïâ®à ¬ëè¨. “¯à ¢«¥­¨¥ ç¥à¥§ Numpad',0
else if lang eq it
ud_user_message db 'NumLock - on/off - usa Numpad per muovere il cursore',0
else else
ud_user_message db 'NumLock - on/off mouse emul. Numpad - move cursor',0 ud_user_message db 'NumLock - on/off mouse emul. Numpad - move cursor',0
end if end if
notifyapp: notifyapp:

View File

@ -0,0 +1,14 @@
#!gmake
# Macro
FASM=/opt/bin/fasm
KPACK=/opt/bin/kpack
FILE=@notify
SOURCE=${FILE}.asm
OUT=${FILE}.bin
en:
${FASM} ${SOURCE} ${OUT}
clean:
rm -f ${OUT}