LOCALIZE is released under the GPL2 license. If you are using
FreeDOS, you already have a copy of the license text in copying.txt
or similar. If not, read the "GNU Public License" (version 2 or newer)
at http://www.gnu.org/ ... LOCALIZE written by Eric Auer 2003.

The used KITTEN toolkit was started by Tom Ehlert (LOCALIZE uses a
special version by Eric Auer, as FIND does) as a smaller clone of
the CATS localization and i18n / NLS toolkit by Jim Hall.


LOCALIZE is a small helper to let you localize your batch scripts.

Check this example:


...
LOCALIZE 1.1 %LANG%
if [%errorlevel%]==[0] goto langset
echo Check your NLSPATH... There is no localize.%LANG% for
echo your language in the NLSPATH directories.
echo Your current language setting is: %LANG%

:langset
echo.
LOCALIZE 1.2
if [%errorlevel%]==[1] echo Welcome at the SOMETHING batch script

echo.
LOCALIZE 1.3
if [%errorlevel%]==[1] echo Your menu options are:
LOCALIZE 1.4 (1)
if [%errorlevel%]==[1] echo SOMETHING NICE (1)
LOCALIZE 1.5 (2)
if [%errorlevel%]==[1] echo SOMETHING ELSE (2)
choice /c:12
...


I hope you get the idea. The nice thing is that apart from a
localize.en file (in the path specified by the NLSPATH value
that you set before running LOCALIZE) you can also create
OTHER localize.* files with TRANSLATIONS of all the messages.

The LANG value (for example EN) then selects the used language
for your batch script - you no longer have to add lengthy "if
[lang]==[...]" code to your batch scripts.


localize.en for the above example:

1.1:Your current language setting is:
1.2:Welcome at the SOMETHING batch script
1.3:Your menu options are:
1.4:Something nice
1.5:Something else
99.0:Prints a localized message (from localize.*)
99.1:Prints message number x.y (and echoes the [etc.])
99.2:Errorlevel: 0 if okay, 1 if no localize.* found.


and a German localize.de for the same example:

1.1:Deine aktuelle Spracheinstellung ist:
1.2:Willkommen bei IRGENDEINEM Batch Skript
1.3:Deine Auswahl ist:
1.4:Irgendwas NETTES
1.5:Irgendwas ANDERES
99.0:Zeigt einen lokalisierten Text an (aus localize.*)
99.1:Zeigt Text nummer x.y (und dann das [etc.])
99.2:Errorlevel: 0 wenn okay, 1 wenn kein localize.* gefunden.

...

