Subversion Repositories SvarDOS

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1262 → Rev 1263

/localcfg/trunk/Makefile
2,32 → 2,16
# localcfg Makefile for OpenWatcom
#
 
SVARLANGVER=20230629
 
all: localcfg.com
 
localcfg.com: localcfg.c country.c deflang.c
*wcl -0 -y -cc -wx -mt -lr -zp1 -we -d0 -ox -I=svarlang.lib\tags\$SVARLANGVER localcfg.c country.c deflang.c svarlang.lib/tags/$SVARLANGVER/svarlngs.lib
*wcl -0 -y -cc -wx -mt -lr -zp1 -we -d0 -ox -I=svarlang.lib localcfg.c country.c deflang.c svarlang.lib/svarlngs.lib
del *.obj
upx --8086 -9 localcfg.com
 
deflang.c: nls_lang\*.txt
cd nls_lang
utf8tocp 850 br_utf8.txt > br.txt
utf8tocp 850 de_utf8.txt > de.txt
utf8tocp 850 fr_utf8.txt > fr.txt
utf8tocp maz pl_utf8.txt > pl.txt
utf8tocp 857 tr_utf8.txt > tr.txt
..\svarlang.lib\tags\$SVARLANGVER\tlumacz en br de fr pl tr > tlumacz.log
move /y out.lng ..\localcfg.lng
move /y deflang.c ..\
cd ..
 
clean: .SYMBOLIC
del *.obj
del *.com
del deflang.c
del localcfg.lng
 
release: localcfg.com .SYMBOLIC
mkdir appinfo
41,7 → 25,7
copy *.txt doc\localcfg
if exist localcfg.zip del localcfg.zip
zip -9rkDX -m localcfg.svp appinfo bin doc nls
zip -9rkDX localcfg.zip *.txt *.c *.h makefile svarlang.lib\tags\$SVARLANGVER nls_lang
zip -9rkDX localcfg.zip *.txt *.c *.h makefile svarlang.lib nls_lang
rmdir appinfo
rmdir bin
rmdir doc\localcfg
/localcfg/trunk/deflang.c
0,0 → 1,109
/* THIS FILE HAS BEEN GENERATED BY TLUMACZ (PART OF THE SVARLANG LIBRARY) */
const unsigned short svarlang_memsz = 2047u;
char svarlang_mem[2047] = {
0,0,8,0,118,101,114,115,105,111,110,0,
1,0,47,0,99,114,101,97,116,101,115,32,111,114,32,101,100,105,116,115,
32,67,79,85,78,84,82,89,46,83,89,83,32,108,111,99,97,108,32,112,
114,101,102,101,114,101,110,99,101,115,0,
2,0,54,0,117,115,97,103,101,58,32,108,111,99,97,108,99,102,103,32,
91,100,114,105,118,101,58,93,91,112,97,116,104,93,91,67,79,85,78,84,
82,89,46,83,89,83,93,32,91,111,112,116,105,111,110,115,93,0,
3,0,9,0,111,112,116,105,111,110,115,58,0,
10,0,74,0,47,99,111,117,110,116,114,121,58,88,88,32,115,101,116,32,
116,104,101,32,99,111,117,110,116,114,121,32,99,111,100,101,32,116,111,32,
88,88,32,40,49,61,85,83,65,44,32,51,51,61,70,114,97,110,99,101,
44,32,52,56,61,80,111,108,97,110,100,44,32,101,116,99,41,0,
11,0,66,0,47,99,112,58,88,88,88,32,32,32,32,32,97,100,97,112,
116,115,32,99,111,117,110,116,114,121,32,100,97,116,97,32,102,111,114,32,
99,111,100,101,112,97,103,101,32,88,88,88,32,40,101,120,97,109,112,108,
101,58,32,39,52,51,55,39,41,0,
12,0,54,0,47,100,101,99,105,109,58,88,32,32,32,32,114,101,99,111,
110,102,105,103,117,114,101,115,32,116,104,101,32,100,101,99,105,109,97,108,
32,115,121,109,98,111,108,32,116,111,32,98,101,32,39,88,39,0,
13,0,56,0,47,116,104,111,117,115,58,88,32,32,32,32,114,101,99,111,
110,102,105,103,117,114,101,115,32,116,104,101,32,116,104,111,117,115,97,110,
100,115,32,115,121,109,98,111,108,32,116,111,32,98,101,32,39,88,39,0,
14,0,61,0,47,100,97,116,101,115,101,112,58,88,32,32,115,101,116,115,
32,116,104,101,32,100,97,116,101,32,115,101,112,97,114,97,116,111,114,32,
116,111,32,39,88,39,32,40,102,111,114,32,101,120,97,109,112,108,101,32,
39,47,39,41,0,
15,0,58,0,47,100,97,116,101,102,109,116,58,88,32,32,115,101,116,115,
32,116,104,101,32,100,97,116,101,32,102,111,114,109,97,116,44,32,99,97,
110,32,98,101,58,32,77,68,89,44,32,68,77,89,32,111,114,32,89,77,
68,0,
16,0,61,0,47,116,105,109,101,115,101,112,58,88,32,32,115,101,116,115,
32,116,104,101,32,116,105,109,101,32,115,101,112,97,114,97,116,111,114,32,
116,111,32,39,88,39,32,40,102,111,114,32,101,120,97,109,112,108,101,32,
39,58,39,41,0,
17,0,60,0,47,116,105,109,101,102,109,116,58,88,32,32,115,101,116,115,
32,116,104,101,32,116,105,109,101,32,102,111,114,109,97,116,58,32,48,61,
49,50,104,32,119,105,116,104,32,65,77,47,80,77,32,111,114,32,49,61,
50,52,104,0,
18,0,69,0,47,99,117,114,114,58,88,88,88,32,32,32,115,101,116,115,
32,116,104,101,32,99,117,114,114,101,110,99,121,32,116,111,32,88,88,88,
32,40,97,32,115,116,114,105,110,103,32,111,102,32,49,32,116,111,32,52,
32,99,104,97,114,97,99,116,101,114,115,41,0,
19,0,70,0,47,99,117,114,114,112,111,115,58,88,32,32,115,101,116,115,
32,116,104,101,32,99,117,114,114,101,110,99,121,32,115,121,109,98,111,108,
32,112,111,115,105,116,105,111,110,32,116,111,32,88,44,32,119,104,101,114,
101,32,88,32,105,115,32,101,105,116,104,101,114,0,
20,0,76,0,32,32,32,32,32,32,32,32,32,32,32,32,48,61,99,117,
114,114,101,110,99,121,32,112,114,101,99,101,100,101,115,32,116,104,101,32,
118,97,108,117,101,44,32,49,61,99,117,114,114,101,110,99,121,32,102,111,
108,108,111,119,115,32,116,104,101,32,118,97,108,117,101,32,97,110,100,0,
21,0,49,0,32,32,32,32,32,32,32,32,32,32,32,32,50,61,99,117,
114,114,101,110,99,121,32,114,101,112,108,97,99,101,115,32,116,104,101,32,
100,101,99,105,109,97,108,32,115,105,103,110,0,
22,0,67,0,47,99,117,114,114,115,112,99,58,88,32,32,115,112,97,99,
101,32,98,101,116,119,101,101,110,32,116,104,101,32,99,117,114,114,101,110,
99,121,32,97,110,100,32,116,104,101,32,118,97,108,117,101,32,40,48,61,
110,111,44,32,49,61,121,101,115,41,0,
23,0,66,0,47,99,117,114,114,112,114,101,99,58,88,32,99,117,114,114,
101,110,99,121,39,115,32,112,114,101,99,105,115,105,111,110,32,40,110,117,
109,98,101,114,32,111,102,32,100,101,99,105,109,97,108,32,100,105,103,105,
116,115,44,32,48,46,46,57,41,0,
24,0,57,0,47,121,101,115,110,111,58,88,89,32,32,32,115,101,116,115,
32,116,104,101,32,39,89,101,115,47,78,111,39,32,108,101,116,116,101,114,
32,116,111,32,88,89,32,40,100,101,102,97,117,108,116,58,32,89,78,41,
0,
50,0,72,0,73,102,32,67,79,85,78,84,82,89,46,83,89,83,32,108,
111,99,97,116,105,111,110,32,105,115,32,110,111,116,32,112,114,111,118,105,
100,101,100,44,32,116,104,101,110,32,108,111,99,97,108,99,102,103,32,116,
114,105,101,115,32,108,111,97,100,105,110,103,32,105,116,0,
51,0,28,0,102,114,111,109,32,37,68,79,83,68,73,82,37,67,70,71,
67,79,85,78,84,82,89,46,83,89,83,0,
0,7,21,0,67,111,117,110,116,114,121,32,99,111,100,101,46,46,46,46,
46,46,46,58,0,
1,7,21,0,67,111,100,101,112,97,103,101,46,46,46,46,46,46,46,46,
46,46,46,58,0,
2,7,21,0,68,101,99,105,109,97,108,32,115,101,112,97,114,97,116,111,
114,46,46,58,0,
3,7,21,0,84,104,111,117,115,97,110,100,115,32,115,101,112,97,114,97,
116,111,114,58,0,
4,7,21,0,68,97,116,101,32,102,111,114,109,97,116,46,46,46,46,46,
46,46,46,58,0,
5,7,21,0,84,105,109,101,32,102,111,114,109,97,116,46,46,46,46,46,
46,46,46,58,0,
6,7,21,0,89,101,115,47,78,111,32,99,104,97,114,97,99,116,101,114,
115,46,46,58,0,
7,7,21,0,67,117,114,114,101,110,99,121,32,101,120,97,109,112,108,101,
46,46,46,58,0,
9,7,56,0,77,97,107,101,32,115,117,114,101,32,116,104,97,116,32,121,
111,117,114,32,67,79,78,70,73,71,46,83,89,83,32,99,111,110,116,97,
105,110,115,32,116,104,105,115,32,100,105,114,101,99,116,105,118,101,58,0,
0,9,43,0,69,82,82,79,82,58,32,102,105,108,101,32,112,97,116,104,
32,99,97,110,32,98,101,32,112,114,111,118,105,100,101,100,32,111,110,108,
121,32,111,110,99,101,0,
1,9,24,0,69,82,82,79,82,58,32,98,97,100,32,112,97,116,104,32,
116,111,32,102,105,108,101,0,
2,9,31,0,69,82,82,79,82,58,32,102,97,105,108,101,100,32,116,111,
32,114,101,97,100,32,116,104,101,32,102,105,108,101,0,
3,9,32,0,69,82,82,79,82,58,32,105,110,118,97,108,105,100,32,112,
97,114,97,109,101,116,101,114,32,115,121,110,116,97,120,0,
4,9,43,0,69,82,82,79,82,58,32,116,104,101,32,102,105,108,101,32,
105,115,32,110,111,116,32,97,32,118,97,108,105,100,32,67,79,85,78,84,
82,89,46,83,89,83,0,
5,9,51,0,69,82,82,79,82,58,32,116,104,101,32,102,105,108,101,32,
104,97,115,32,110,111,116,32,98,101,101,110,32,99,114,101,97,116,101,100,
32,119,105,116,104,32,76,79,67,65,76,67,70,71,0,
0,0,0,0,0};
/localcfg/trunk/localcfg.lng
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/localcfg/trunk/nls_lang/en.txt
File deleted
/localcfg/trunk/nls_lang/en_utf8.txt
0,0 → 1,56
#
# LOCALCFG language file
#
# Language...: English
# Authors....: Mateusz Viste, Robert Riebisch
# Last update: 27 Feb 2022
#
 
### HELP SCREEN ###########################################################
 
0.0:version
0.1:creates or edits COUNTRY.SYS local preferences
0.2:usage: localcfg [drive:][path][COUNTRY.SYS] [options]
0.3:options:
 
0.10:/country:XX set the country code to XX (1=USA, 33=France, 48=Poland, etc)
0.11:/cp:XXX adapts country data for codepage XXX (example: '437')
0.12:/decim:X reconfigures the decimal symbol to be 'X'
0.13:/thous:X reconfigures the thousands symbol to be 'X'
0.14:/datesep:X sets the date separator to 'X' (for example '/')
0.15:/datefmt:X sets the date format, can be: MDY, DMY or YMD
0.16:/timesep:X sets the time separator to 'X' (for example ':')
0.17:/timefmt:X sets the time format: 0=12h with AM/PM or 1=24h
0.18:/curr:XXX sets the currency to XXX (a string of 1 to 4 characters)
0.19:/currpos:X sets the currency symbol position to X, where X is either
0.20: 0=currency precedes the value, 1=currency follows the value and
0.21: 2=currency replaces the decimal sign
0.22:/currspc:X space between the currency and the value (0=no, 1=yes)
0.23:/currprec:X currency's precision (number of decimal digits, 0..9)
0.24:/yesno:XY sets the 'Yes/No' letter to XY (default: YN)
 
0.50:If COUNTRY.SYS location is not provided, then localcfg tries loading it
0.51:from %DOSDIR%\CFG\COUNTRY.SYS
 
 
### INFO SCREEN ###########################################################
 
7.0:Country code.......:
7.1:Codepage...........:
7.2:Decimal separator..:
7.3:Thousands separator:
7.4:Date format........:
7.5:Time format........:
7.6:Yes/No characters..:
7.7:Currency example...:
 
7.9:Make sure that your CONFIG.SYS contains this directive:
 
### ERROR MESSAGES ########################################################
 
9.0:ERROR: file path can be provided only once
9.1:ERROR: bad path to file
9.2:ERROR: failed to read the file
9.3:ERROR: invalid parameter syntax
9.4:ERROR: the file is not a valid COUNTRY.SYS
9.5:ERROR: the file has not been created with LOCALCFG
/localcfg/trunk/nls_lang/regen.bat
0,0 → 1,17
@ECHO OFF
 
:: This processes all translation files and regenerates the LOCALCFG.LNG and
:: DEFLANG.C files.
 
utf8tocp 437 en_utf8.txt > en.txt
utf8tocp 850 br_utf8.txt > br.txt
utf8tocp 850 de_utf8.txt > de.txt
utf8tocp 850 fr_utf8.txt > fr.txt
utf8tocp maz pl_utf8.txt > pl.txt
utf8tocp 857 tr_utf8.txt > tr.txt
 
..\svarlang.lib\tlumacz en br de fr pl tr > tlumacz.log
 
del ??.txt
move /y out.lng ..\localcfg.lng
move /y deflang.c ..\
/localcfg/trunk/svarlang.lib
1,0 → 0,0
link ../../svarlang.lib
link ../../svarlang.lib/tags/20230629