home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 October / PCpro_2006_10.ISO / files / wininside / ubcd / ubcd34-basic.exe / ubcd34-basic.iso / dosapps / freedos / nls / makecmd.bat < prev    next >
Encoding:
DOS Batch File  |  2003-09-12  |  814 b   |  27 lines

  1. @echo off
  2. if "%1"=="continue" goto loop
  3. set languages=EN English NL Dutch FR French DE German 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.dat del strings.dat
  24. if exist strings.h   del strings.h
  25. goto end
  26. :end
  27. if "%lang%"=="" echo Warning: nothing done due to LANG variable not set