Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1190 → Rev 1191

/localcfg/trunk/Makefile
2,18 → 2,21
# localcfg Makefile for OpenWatcom
#
 
SVARLANGVER=20220314
 
all: localcfg.com
 
localcfg.com: localcfg.c country.c deflang.c
wcl -0 -y -cc -wx -mt -lr -zp1 -we -d0 -ox localcfg.c country.c deflang.c svarlang.lib/svarlngs.lib
*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
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 maz pl_utf8.txt > pl.txt
..\svarlang.lib\tlumacz en de pl
..\svarlang.lib\tags\$SVARLANGVER\tlumacz en br de pl > tlumacz.log
move out.lng ..\localcfg.lng
move deflang.c ..\
cd ..
24,12 → 27,8
del deflang.c
del localcfg.lng
 
buildpkg: localcfg.com .SYMBOLIC
release: localcfg.com .SYMBOLIC
mkdir appinfo
mkdir source
mkdir source\localcfg
mkdir source\localcfg\nls_lang
mkdir source\localcfg\svarlang.lib
mkdir bin
mkdir doc
mkdir doc\localcfg
37,22 → 36,11
copy localcfg.lsm appinfo
copy localcfg.com bin
copy localcfg.lng nls
copy svarlang.lib\*.* source\localcfg\svarlang.lib
del source\localcfg\svarlang.lib\*.lib
del source\localcfg\svarlang.lib\*.exe
copy *.txt doc\localcfg
copy *.c source\localcfg
copy *.h source\localcfg
copy *.txt source\localcfg
copy makefile source\localcfg
copy nls_lang\*.* source\localcfg\nls_lang
if exist localcfg.zip del localcfg.zip
zip -9rkDX -m localcfg.zip appinfo bin doc nls source
zip -9rkDX -m localcfg.svp appinfo bin doc nls
zip -9rkDX localcfg.zip *.txt *.c *.h makefile svarlang.lib\tags\$SVARLANGVER nls_lang
rmdir appinfo
rmdir source\localcfg\svarlang.lib
rmdir source\localcfg\nls_lang
rmdir source\localcfg
rmdir source
rmdir bin
rmdir doc\localcfg
rmdir doc
/localcfg/trunk/history.txt
1,5 → 1,8
localcfg history file
 
* localcfg ver 20230208
- added BR translations, courtesy of Luzemario Dantes
 
* localcfg ver 20220203
- NLS (translations) support through the SvarLANG library
- memory usage optimizations
/localcfg/trunk/localcfg.c
1,7 → 1,7
/*
* Locales configuration for SvarDOS
*
* Copyright (C) Mateusz Viste 2015-2022
* Copyright (C) Mateusz Viste 2015-2023
*
* MIT license
*
28,12 → 28,12
#include <stdlib.h> /* atoi() */
#include <string.h> /* strchr */
 
#include "svarlang.lib/svarlang.h"
#include "svarlang.h"
 
#include "country.h"
 
#define PVER "20220203"
#define PDATE "2015-2022"
#define PVER "20230208"
#define PDATE "2015-2023"
 
 
enum NLS_STRINGS {
/localcfg/trunk/localcfg.lsm
1,2 → 1,2
version: 20220203
version: 20230208
description: locales preferences configuration tool (country.sys-like)
/localcfg/trunk/localcfg.txt
15,7 → 15,7
 
localcfg is written by Mateusz Viste, and published under the MIT license.
 
Copyright (C) 2015-2022 Mateusz Viste
Copyright (C) 2015-2023 Mateusz Viste
 
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal