[Boot] Update for locales

- Fixes for new locale codes.
- Some whitespace clean-up.
This commit is contained in:
Andrew 2024-06-05 09:45:07 +01:00
parent b6a0bf7729
commit 73c2dadce7
9 changed files with 11 additions and 10 deletions

View File

@ -315,7 +315,7 @@ end if
int 0x10 int 0x10
if lang eq ru_RU if lang eq ru_RU
; Load & set russian VGA font (RU.INC) ; Load & set Russian VGA font 'bootfont-ru_RU'
mov bp, RU_FNT1 ; RU_FNT1 - First part mov bp, RU_FNT1 ; RU_FNT1 - First part
mov bx, 1000h ; 768 bytes mov bx, 1000h ; 768 bytes
mov cx, 30h ; 48 symbols mov cx, 30h ; 48 symbols
@ -329,8 +329,8 @@ if lang eq ru_RU
mov dx, 0E0h ; 224 - position of first symbol mov dx, 0E0h ; 224 - position of first symbol
mov ax, 1100h mov ax, 1100h
int 10h int 10h
; End set VGA russian font
else if lang eq et_EE else if lang eq et_EE
; Load & set Estonian VGA font 'bootfont-et_EE'
mov bp, ET_FNT ; ET_FNT1 mov bp, ET_FNT ; ET_FNT1
mov bx, 1000h ; mov bx, 1000h ;
mov cx, 255 ; 256 symbols mov cx, 255 ; 256 symbols

View File

@ -24,24 +24,25 @@ org 0
; struct kernel_header ; struct kernel_header
jmp start_of_code ; jump jmp start_of_code ; jump
db 'KolibriOS ' ; signature db 'KolibriOS ' ; signature
db 'v0.7.7.0 ',13,10,13,10,0 ; version db 'v0.7.7.0 ',13,10,13,10,0 ; FIXME: get distribution version from git tag
dd B32-KERNEL_BASE ; offset of the kernel's 32-bit entry point dd B32-KERNEL_BASE ; offset of the kernel's 32-bit entry point
include "boot/bootstr.inc" ; language-independent boot messages include "boot/bootstr.inc" ; language-independent boot messages
include "boot/preboot.inc" include "boot/preboot.inc"
; Language support for locales: de_DE, es_ES, ru_RU (CP866), et_EE, en_US.
if lang eq de_DE if lang eq de_DE
include "boot/bootge.inc" ; german system boot messages include "boot/bootstr-de_DE.inc" ; German system boot messages
else if lang eq es_ES else if lang eq es_ES
include "boot/bootsp.inc" ; spanish system boot messages include "boot/bootstr-es_ES.inc" ; Spanish system boot messages
else if lang eq ru_RU else if lang eq ru_RU
include "boot/bootru.inc" ; russian system boot messages include "boot/bootstr-ru_RU.inc" ; Russian system boot messages
include "boot/ru.inc" ; Russian font include "boot/bootfont-ru_RU.inc" ; Russian font
else if lang eq et_EE else if lang eq et_EE
include "boot/bootet.inc" ; estonian system boot messages include "boot/bootstr-et_EE.inc" ; Estonian system boot messages
include "boot/et.inc" ; Estonian font include "boot/bootfont-et_EE.inc" ; Estonian font
else else
include "boot/booten.inc" ; english system boot messages include "boot/bootstr-en_US.inc" ; English system boot messages (default)
end if end if
include "boot/bootcode.inc" ; 16 bit system boot code include "boot/bootcode.inc" ; 16 bit system boot code