diff src/text_multilang.asm @ 604:ca4556fb60b9

bump to 2.99beta, work on 3.00 stable
author heinrichsweikamp
date Thu, 22 Nov 2018 19:47:26 +0100
parents b7eb98dbd800
children 8077ee960199
line wrap: on
line diff
--- a/src/text_multilang.asm	Thu Oct 11 21:06:29 2018 +0200
+++ b/src/text_multilang.asm	Thu Nov 22 19:47:26 2018 +0100
@@ -1,93 +1,140 @@
 ;=============================================================================
 ;
-;   File text_multilang.asm								Version 2.92 = 2.26
+;   File text_multilang.asm												V2.99c
 ;
 ;   Implementation text in various selectable languages.
 ;
 ;   Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
 ;=============================================================================
 ; HISTORY
-;  2011-06-12 : [jDG] Creation...
+;  2011-06-12 : [jDG] Creation
 
+#include "hwos.inc"
 #include "text_multilang.inc"
-#include "hwos.inc"	    
 
-; Because text are indexed by 12bits value in FSR register, they can't
-; just be anywhere. It is safe to make them start in address 0xHHH000.
-texts       code    0x009000
+; Because text are indexed by 12 bits values in FSR register, they can't
+; just be anywhere. It is safe to make them start at address 0xHHH000.
+texts	code	0x009000
 
 ;=============================================================================
-            global  text_1_base
+	global	text_1_base
 text_1_base:
-    IFNDEF	    french_italian
-	MESSG "hwOS code in English and German!"
 ;---- PASS 1 : generate description block ------------------------------------
-tcode_idx   set     0
-LANG        set     0
-#define     TCODE TCODE_1
-#include    "text_english.inc"
-#undefine   TCODE
+tcode_idx	set		0
+LANG		set		0
+#define		TCODE	TCODE_1
 
-;---- PASS 2 : generate text contens -----------------------------------------
-tcode_idx   set     0
-#define     TCODE TCODE_2
-#include    "text_english.inc"
-#undefine   TCODE
+ IF _language_1==en
+ MESSG		"1st Laguage: English"
+#include	"text_english.inc"
+ ELSE
+ IF _language_1==de
+ MESSG		"1st Laguage: German"
+#include	"text_german.inc"
+ ELSE
+ IF _language_1==fr
+ MESSG		"1st Laguage: French"
+#include	"text_french.inc"
+ ELSE
+ IF _language_1==it
+ MESSG		"1st Laguage: Italian"
+#include	"text_english.inc"
+ ELSE
+ MESSG		"1st Laguage: Default (English)"
+#include	"text_english.inc"
+ ENDIF
+ ENDIF
+ ENDIF
+ ENDIF
+
+#undefine	TCODE
+
+;---- PASS 2 : generate text contents ----------------------------------------
+tcode_idx	set		0
+#define		TCODE	TCODE_2
+
+ IF _language_1==en
+#include	"text_english.inc"
+ ELSE
+ IF _language_1==de
+#include	"text_german.inc"
+ ELSE
+ IF _language_1==fr
+#include	"text_french.inc"
+ ELSE
+ IF _language_1==it
+#include	"text_english.inc"
+ ELSE
+#include	"text_english.inc"
+ ENDIF
+ ENDIF
+ ENDIF
+ ENDIF
+
+#undefine	TCODE
 
 ;=============================================================================
 
+ IF _language_2!=none
 
-	global  text_2_base
+	global	text_2_base
 text_2_base:
-
 ;---- PASS 1 : generate description block ------------------------------------
-tcode_idx   set     0
-LANG        set     1
-#define     TCODE TCODE_1
-#include    "text_german.inc"
-#undefine   TCODE
+tcode_idx	set		0
+LANG		set		1
+#define		TCODE	TCODE_1
 
-;---- PASS 2 : generate text contens -----------------------------------------
-tcode_idx   set     0
-#define     TCODE TCODE_2
-#include    "text_german.inc"
-#undefine   TCODE
+ IF _language_2==en
+ MESSG		"2nd Laguage: English"
+#include	"text_english.inc"
+ ELSE
+ IF _language_2==de
+ MESSG		"2nd Laguage: German"
+#include	"text_german.inc"
+ ELSE
+ IF _language_2==fr
+ MESSG		"2nd Laguage: French"
+#include	"text_french.inc"
+ ELSE
+ IF _language_2==it
+ MESSG		"2nd Laguage: Italian"
+#include	"text_english.inc"
+ ELSE
+ MESSG		"2nd Laguage: Default (English)"
+#include	"text_english.inc"
+ ENDIF
+ ENDIF
+ ENDIF
+ ENDIF
+
+#undefine	TCODE
 
-	ELSE
-	MESSG "hwOS code in French and Italian!"
-;=============================================================================
-;---- PASS 1 : generate description block ------------------------------------
-tcode_idx   set     0
-LANG        set     0
-#define     TCODE TCODE_1
-#include    "text_french.inc"
-#undefine   TCODE
+;---- PASS 2 : generate text contents ----------------------------------------
+tcode_idx	set		0
+#define	TCODE	TCODE_2
 
-;---- PASS 2 : generate text contens -----------------------------------------
-tcode_idx   set     0
-#define     TCODE TCODE_2
-#include    "text_french.inc"
-#undefine   TCODE
+ IF _language_2==en
+#include	"text_english.inc"
+ ELSE
+ IF _language_2==de
+#include	"text_german.inc"
+ ELSE
+ IF _language_2==fr
+#include	"text_french.inc"
+ ELSE
+ IF _language_2==it
+#include	"text_english.inc"
+ ELSE
+#include	"text_english.inc"
+ ENDIF
+ ENDIF
+ ENDIF
+ ENDIF
+
+#undefine	TCODE
+
+ ENDIF
 
 ;=============================================================================
-            global  text_2_base
-text_2_base:
 
-;---- PASS 1 : generate description block ------------------------------------
-tcode_idx   set     0
-LANG        set     1
-#define     TCODE TCODE_1
-#include    "text_italian.inc"
-#undefine   TCODE
-
-;---- PASS 2 : generate text contens -----------------------------------------
-tcode_idx   set     0
-#define     TCODE TCODE_2
-#include    "text_italian.inc"
-#undefine   TCODE
-
-    ENDIF
-   
-;=============================================================================
-
-        END
+	END