0
|
1 ;=============================================================================
|
|
2 ;
|
634
|
3 ; File text_multilang.inc * combined next generation V3.09.4j
|
0
|
4 ;
|
604
|
5 ; Implementation of texts in various selectable languages
|
0
|
6 ;
|
|
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
|
|
8 ;=============================================================================
|
|
9 ; HISTORY
|
604
|
10 ; 2011-06-12 : [jDG] Creation
|
0
|
11 ;
|
|
12 ; Text definitions (text_french.asm example):
|
604
|
13 ; TCODE tYes, "Oui" ; Yes
|
|
14 ; TCODE tNo, "Non" ; No
|
|
15 ; TCODE tLogbk, "Carnet de plongées" ; Logbook
|
0
|
16 ;
|
634
|
17 ; Text usage via is done via macros, see strings.inc
|
|
18
|
0
|
19
|
634
|
20 ;-----------------------------------------------------------------------------
|
|
21 ; Pass 1: generate Index Table and define Labels
|
|
22 ;-----------------------------------------------------------------------------
|
|
23
|
604
|
24 TCODE_1 macro label, text
|
|
25 tcode_idx set tcode_idx+1
|
|
26 If LANG == 0
|
|
27 global label
|
0
|
28 label:
|
604
|
29 Endif
|
|
30 dw t#v(LANG)_#v(tcode_idx)
|
|
31 endm
|
623
|
32
|
|
33
|
634
|
34 ;-----------------------------------------------------------------------------
|
|
35 ; Pass 2: generate String Table
|
|
36 ;-----------------------------------------------------------------------------
|
|
37
|
604
|
38 TCODE_2 macro label, text
|
|
39 tcode_idx set tcode_idx+1
|
0
|
40 t#v(LANG)_#v(tcode_idx):
|
604
|
41 db text, 0
|
|
42 endm
|
623
|
43
|
634
|
44 ;-----------------------------------------------------------------------------
|