Blame LANGUAGE.HOWTO

Packit Service 50c9f2
This short howto explains how to add support for a new language to Doxygen:
Packit Service 50c9f2
Packit Service 50c9f2
Just follow these steps:
Packit Service 50c9f2
Packit Service 50c9f2
1) Tell me which language you want to add support for. If no one else
Packit Service 50c9f2
   is already working on support for that language, you will be 
Packit Service 50c9f2
   assigned as the maintainer for the language. I'll create a 
Packit Service 50c9f2
   list on Doxygen's homepage, so everyone knows who is doing what.
Packit Service 50c9f2
2) Create a copy of translator_en.h and name it 
Packit Service 50c9f2
   translator_<your_2_letter_country_code>.h
Packit Service 50c9f2
   I'll use xx in the rest of this document.
Packit Service 50c9f2
3) Edit language.cpp:
Packit Service 50c9f2
   - Add a #include<translator_xx.h> 
Packit Service 50c9f2
   - In setTranslator() add
Packit Service 50c9f2
     
Packit Service 50c9f2
     else if (L_EQUAL("your_language_name"))
Packit Service 50c9f2
     {
Packit Service 50c9f2
       theTranslator = new TranslatorYourLanguage;
Packit Service 50c9f2
     }
Packit Service 50c9f2
   
Packit Service 50c9f2
     after the if { ... }
Packit Service 50c9f2
4) Edit libdoxygen.pro.in and add translator_xx.h to the HEADERS line.
Packit Service 50c9f2
5) Edit translator_xx.h:
Packit Service 50c9f2
   - Change TRANSLATOR_EN_H to TRANSLATOR_XX_H (in both the #include line and
Packit Service 50c9f2
     the #define line).
Packit Service 50c9f2
   - Change TranslatorEnglish to TranslatorYourLanguage 
Packit Service 50c9f2
   - In the member idLanguage() change "english" into the name of your
Packit Service 50c9f2
     language (use lower case characters only). Depending on the language you
Packit Service 50c9f2
     may also wish to change the member functions latexLanguageSupportCommand()
Packit Service 50c9f2
     and idLanguageCharset().
Packit Service 50c9f2
   - Edit all the strings that are returned by the members that start
Packit Service 50c9f2
     with tr. Try to match punctuation and capitals!
Packit Service 50c9f2
     To enter special characters (with accents) you can:
Packit Service 50c9f2
        a) Enter them directly if your keyboard supports that and you are 
Packit Service 50c9f2
           using a Latin-1 font.
Packit Service 50c9f2
           Doxygen will translate the characters to proper Latex and
Packit Service 50c9f2
           leave the Html and man output for what it is (which is fine, if
Packit Service 50c9f2
           idLanguageCharset() is set correctly).
Packit Service 226c13
        b) Use html codes like ä for an a with an umlaut (i.e. รค).
Packit Service 50c9f2
           See the HTML specification for the codes.
Packit Service 50c9f2
6) Run configure and make again from the root of the distribution, 
Packit Service 50c9f2
   in order to regenerate the Makefiles.
Packit Service 50c9f2
7) Now you can use OUTPUT_LANGUAGE = your_language_name 
Packit Service 50c9f2
   in the config file to generate output in your language.
Packit Service 50c9f2
8) Send translator_xx.h to me so I can add it to doxygen.
Packit Service 50c9f2
   Send also your name and e-mail address to be included in the
Packit Service 50c9f2
   maintainers.txt list.
Packit Service 50c9f2
Packit Service 50c9f2
Good luck, and let me know if there are problems.
Packit Service 50c9f2