From 73c2dadce7554ab9401a1aad90545953fa6a8700 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 5 Jun 2024 09:45:07 +0100 Subject: [PATCH] [Boot] Update for locales - Fixes for new locale codes. - Some whitespace clean-up. --- kernel/trunk/boot/bootcode.inc | 4 ++-- .../trunk/boot/{et.inc => bootfont-et_EE.inc} | 0 .../trunk/boot/{ru.inc => bootfont-ru_RU.inc} | 0 .../boot/{bootge.inc => bootstr-de_DE.inc} | 0 .../boot/{booten.inc => bootstr-en_US.inc} | 0 .../boot/{bootsp.inc => bootstr-es_ES.inc} | 0 .../boot/{bootet.inc => bootstr-et_EE.inc} | 0 .../boot/{bootru.inc => bootstr-ru_RU.inc} | 0 kernel/trunk/bootbios.inc | 17 +++++++++-------- 9 files changed, 11 insertions(+), 10 deletions(-) rename kernel/trunk/boot/{et.inc => bootfont-et_EE.inc} (100%) rename kernel/trunk/boot/{ru.inc => bootfont-ru_RU.inc} (100%) rename kernel/trunk/boot/{bootge.inc => bootstr-de_DE.inc} (100%) rename kernel/trunk/boot/{booten.inc => bootstr-en_US.inc} (100%) rename kernel/trunk/boot/{bootsp.inc => bootstr-es_ES.inc} (100%) rename kernel/trunk/boot/{bootet.inc => bootstr-et_EE.inc} (100%) rename kernel/trunk/boot/{bootru.inc => bootstr-ru_RU.inc} (100%) diff --git a/kernel/trunk/boot/bootcode.inc b/kernel/trunk/boot/bootcode.inc index 4e8e362e51..014df6331b 100644 --- a/kernel/trunk/boot/bootcode.inc +++ b/kernel/trunk/boot/bootcode.inc @@ -315,7 +315,7 @@ end if int 0x10 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 bx, 1000h ; 768 bytes mov cx, 30h ; 48 symbols @@ -329,8 +329,8 @@ if lang eq ru_RU mov dx, 0E0h ; 224 - position of first symbol mov ax, 1100h int 10h - ; End set VGA russian font else if lang eq et_EE + ; Load & set Estonian VGA font 'bootfont-et_EE' mov bp, ET_FNT ; ET_FNT1 mov bx, 1000h ; mov cx, 255 ; 256 symbols diff --git a/kernel/trunk/boot/et.inc b/kernel/trunk/boot/bootfont-et_EE.inc similarity index 100% rename from kernel/trunk/boot/et.inc rename to kernel/trunk/boot/bootfont-et_EE.inc diff --git a/kernel/trunk/boot/ru.inc b/kernel/trunk/boot/bootfont-ru_RU.inc similarity index 100% rename from kernel/trunk/boot/ru.inc rename to kernel/trunk/boot/bootfont-ru_RU.inc diff --git a/kernel/trunk/boot/bootge.inc b/kernel/trunk/boot/bootstr-de_DE.inc similarity index 100% rename from kernel/trunk/boot/bootge.inc rename to kernel/trunk/boot/bootstr-de_DE.inc diff --git a/kernel/trunk/boot/booten.inc b/kernel/trunk/boot/bootstr-en_US.inc similarity index 100% rename from kernel/trunk/boot/booten.inc rename to kernel/trunk/boot/bootstr-en_US.inc diff --git a/kernel/trunk/boot/bootsp.inc b/kernel/trunk/boot/bootstr-es_ES.inc similarity index 100% rename from kernel/trunk/boot/bootsp.inc rename to kernel/trunk/boot/bootstr-es_ES.inc diff --git a/kernel/trunk/boot/bootet.inc b/kernel/trunk/boot/bootstr-et_EE.inc similarity index 100% rename from kernel/trunk/boot/bootet.inc rename to kernel/trunk/boot/bootstr-et_EE.inc diff --git a/kernel/trunk/boot/bootru.inc b/kernel/trunk/boot/bootstr-ru_RU.inc similarity index 100% rename from kernel/trunk/boot/bootru.inc rename to kernel/trunk/boot/bootstr-ru_RU.inc diff --git a/kernel/trunk/bootbios.inc b/kernel/trunk/bootbios.inc index 9e06a1c00e..a766950586 100644 --- a/kernel/trunk/bootbios.inc +++ b/kernel/trunk/bootbios.inc @@ -24,24 +24,25 @@ org 0 ; struct kernel_header jmp start_of_code ; jump 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 include "boot/bootstr.inc" ; language-independent boot messages include "boot/preboot.inc" +; Language support for locales: de_DE, es_ES, ru_RU (CP866), et_EE, en_US. 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 -include "boot/bootsp.inc" ; spanish system boot messages + include "boot/bootstr-es_ES.inc" ; Spanish system boot messages else if lang eq ru_RU -include "boot/bootru.inc" ; russian system boot messages -include "boot/ru.inc" ; Russian font + include "boot/bootstr-ru_RU.inc" ; Russian system boot messages + include "boot/bootfont-ru_RU.inc" ; Russian font else if lang eq et_EE -include "boot/bootet.inc" ; estonian system boot messages -include "boot/et.inc" ; Estonian font + include "boot/bootstr-et_EE.inc" ; Estonian system boot messages + include "boot/bootfont-et_EE.inc" ; Estonian font else -include "boot/booten.inc" ; english system boot messages + include "boot/bootstr-en_US.inc" ; English system boot messages (default) end if include "boot/bootcode.inc" ; 16 bit system boot code