Well, except for adding package selection in FDI, all user facing text 
is ready for translation into any additional languages that the installer
should support. 

All translation text for FDI is contained in 3 text files per language and 
will be located under the installers directory in a subdirectory named
by language ID. 

For example, on the install boot media:

English:
A:\FDSETUP\SETUP\EN\FDSETUP.DEF
A:\FDSETUP\SETUP\EN\FDASK.DEF
A:\FDSETUP\SETUP\EN\FDINS.DEF

Spanish:
A:\FDSETUP\SETUP\ES\FDSETUP.DEF
A:\FDSETUP\SETUP\ES\FDASK.DEF
A:\FDSETUP\SETUP\ES\FDINS.DEF

So, if you wish to create custom language translations for FDI, this
is what you need:

Download the language template files from github at:
https://github.com/shidel/FDI/tree/master/LANGUAGE/TEMPLATE

These lines are included in the boot image and also are installed on 
the new system config files and translated by them. They also need 
more language translations.

( 

Notes on below:
        /s- means no spaces between text strings. (/s+ is default)
        /f? is foreground color change. (can use number instead of name)
        /a? sets text attribute, foreground and background to value.
        /b? set background (not used below)
        /p is perform a carriage return linefeed now. (not used below)

        There is no limit on the length of a translation string. However, it 
        will stop translating when it reaches 255 characters and ignore 
        the rest of the string. This limit includes all switches and variables
        that are expanded into the string. But, does not include options that
        were set prior to the activation of the string. (i.e., the command line)

        DONE %1 is FDCONFIG.SYS, %2 is AUTOEXEC.BAT
        “Done processing startup files C:\FDCONFIG.SYS and C:\AUTOEXEC.BAT”

        HELP %1 is the command HELP
        "Type HELP to get support on commands and navigation.”

        WELCOME %1 is FreeDOS, %2 is Version, “%3" is URL. 
        (%3 must be quoted contains / char)
        “Welcome to the FreeDOS 1.2 operating system (http://www.freedos.org)”
)

English (EN)
DONE.EN=Done processing startup files /fCyan %1 /a7 and /fCyan %2 /a7
HELP.EN=Type /fWhite %1 /fGray to get support on commands and navigation.
WELCOME.EN=Welcome to the /fGreen %1 /fCyan %2 /fGray operating system ( /s- 
/fYellow “%3" /fGray )

Spanish (ES)
DONE.ES=Inicio transformación efectuada archivos /fCyan %1 /a7 y /fCyan %2 /a7
HELP.ES=Escriba /fWhite %1 /fGray para conseguir el apoyo de los comandos y de 
navegación.
WELCOME.ES=Bienvenido al sistema operativo /fGreen %1 /fCyan %2 /fGray ( /s- 
/fYellow "%3" /fGray )

For best results, you probably should adjust some of the dialog 
boxes sizes and such things inside the translation files. To test the 
translation files.

Download the prototype FDI boot image at:
http://up.lod.bz/FDI/latest

Download Mateusz’s all_cd.iso at:
http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.1/repos/

Place the translations in the appropriate subdirectory on the floppy image.

Create a new virtual machine that has a CD, Floppy drive and uninitialized 
hard drive for DOS.

Boot the floppy image.

Exit the installer.

Set the LANG variable to your language. 

Make sure the CD is mounted.

Run setup. (or setup adv)

Also, you can use CTRL+C when FDI is waiting for user input to switch in/out of 
Advanced 
mode or to exit the installer.

Send me your translations.





------------------------------------------------------------------------------
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to