home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Complet / FreeDOS / fdbootcd.iso / FREEDOS / PACKAGES / BASE / DISK01 / COMMANDX.ZIP / NLS / makecmd.bat < prev    next >
Encoding:
DOS Batch File  |  2003-10-19  |  913 b   |  28 lines

  1. @echo off
  2. if "%1"=="continue" goto loop
  3. set languages=EN English NL Dutch ES Spanish DE German FR French IT Italian PTR PT_BR RU Russian Ser Serbian YUG YU437   
  4. call %0  continue %languages%
  5. goto end
  6.  
  7. :loop
  8. shift
  9. if "%1"=="" goto end
  10. if "%lang%"=="%1" goto compile
  11. if exist %1.lng del %1.lng
  12. shift
  13. goto loop
  14. goto end
  15.  
  16. :compile
  17. if "%2"=="" goto end
  18. for %%x in ( command.cln xmsswap.cln fixstrs.exe default.lng %2.lng ) do if not exist %%x goto end
  19. fixstrs %2.lng
  20. copy /b command.cln + strings.dat command.com
  21. copy /b xmsswap.cln + strings.dat xmsswap.com
  22. if exist strings.err echo Translation file out of date for language %2 [file: %2.lng]!
  23. if exist strings.log echo Translation file out of date for language %2 [file: %2.lng]!
  24. if exist strings.dat del strings.dat
  25. if exist strings.h   del strings.h
  26. goto end
  27. :end
  28. if "%lang%"=="" echo Warning: nothing done due to LANG variable not set