Internationalisation


A special variable $LANGUAGE_TITLES in the initialisation or configuration files determines the language in which some section titles will appear. For example setting it to
$LANGUAGE_TITLES = 'french';
will cause LATEX2HTML to produce ``Table des matières'' instead of ``Table of Contents''. Furthermore, the value of the \today command is presented in a format customary in that language.


Languages currently supported are finnish, french, english, german and spanish. It is trivial to add support for another language by creating a file in the styles/ subdirectory, or by adding to the file latex2html.config. As a guide, here is the entry for French titles:

sub french_titles {
    $toc_title = "Table des mati\\`eres";
    $lof_title = "Liste des figures";
    $lot_title = "Liste des tableaux";
    $idx_title = "Index";
    $ref_title = "R\\'ef\\'erences";
    $bib_title = "R\\'ef\\'erences";
    $abs_title = "R\\'esum\\'e";
    $app_title = "Annexe";
    $pre_title = "Pr\\'eface";
    $fig_name = "Figure";
    $tab_name = "Tableau";
    $part_name = "Partie";
    $prf_name = "Preuve";
    $child_name = "Sous-sections";
    $info_title = "\\`Apropos de ce document...";
    @Month = ('', 'janvier', "f\\'evrier", 'mars', 'avril', 'mai',
              'juin', 'juillet', "ao\\^ut", 'septembre', 'octobre',
              'novembre', "d\\'ecembre");
    $GENERIC_WORDS = "a|au|aux|mais|ou|et|donc|or|ni|car|l|la|le|les"
        . "|c|ce|ces|un|une|d|de|du|des";
}
Notice how the backslash needs to be doubled, when a macro is needed (for accented characters, say). Also, the $GENERIC_WORDS are a list of short words to be excluded when filenames are specially requested to be created from section-headings. In order to provide full support for another language you may also replace the navigation buttons which come with LATEX2HTML (by default in English) with your own. As long as the new buttons have the same file-names as the old ones, there should not be a problem.



Subsections
Ross Moore
1999-03-26