Eric Auer,

A little follow up on the vecho strings stuff.

I don’t know if you realized this. But, with the way vecho handles string 
lookups (localizations), 
the following demo is not only possible, but works pretty good and is very 
portable. Obviously,
it would need to be set up to handle fallbacks for other languages. :^)

@echo off

goto StartBatch

* Englishess Stuff *

HELLO.EN="Hello my friend."
WORK.EN="Doing Stuff..."
BYE.EN="Later Dude!"

* Broken Spanish Stuff *

HELLO.ES="Buenos dias amigo."
WORK.ES="Por favor..."
BYE.ES="Asta la vista!"

:StartBatch
set MYSELF=%0
if not exist %MYSELF% set MYSELF=%0.BAT
if not exist %MYSELF% goto Missing

vecho /t %MYSELF% HELLO.%LANG%
vecho /t %MYSELF% WORK.%LANG%
vecho /t %MYSELF% BYE.%LANG%
goto Done

:Missing
vecho /fRed "Unable to find myself."

:Done
set MYSELF=
------------------------------------------------------------------------------
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to