/****************************************************************************** * * * * Copyright (C) 1997-2005 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby * granted. No representations are made about the suitability of this software * for any purpose. It is provided "as is" without express or implied warranty. * See the GNU General Public License for more details. * * Documents produced by Doxygen are derivative works derived from the * input used in their production; they are not affected by this license. * */ #ifndef TRANSLATOR_CZ_H #define TRANSLATOR_CZ_H // // // The first translation from English to Czech was started by // Vlastimil Havran (1999--2000). The prototype version of Czech strings // with diacritics was implemented by Petr Prikryl (prikrylp@skil.cz), // 2000/06/20. Vlastimil agreed that Petr be the new maintainer. // // Updates: // -------- // 2000/06/20 - Prototype: with diacritics; based on ver. 1.1.4 (from scratch). // 2000/07/10 - Update to 1.1.5; conditionally decoding to iso-8859-2 for UNIX. // 2000/07/19 - Updates for "new since 1.1.5"; encoding conversion separated. // 2000/08/02 - Updated for 1.2.0 // 2000/08/24 - Corrections, updates. // 2000/08/30 - Macro DECODE replaced by the inline (thanks to Boris Bralo). // 2000/08/31 - ISOToWin() and WinToISO() moved to the base class. // 2000/09/06 - Reimplementation of trInheritsList(). // 2000/09/11 - Update for "new since 1.2.1" version. // 2000/10/17 - Update for "new since 1.2.2" version. // 2001/01/09 - Update for "new since 1.2.4" version. // 2001/02/15 - trMore() now returns only "..." (ellipsis). // 2001/02/26 - Update for "new since 1.2.5" version (trBug(), trBugList()). // 2001/03/12 - Minor correction of comments (synchronous with translator.h). // 2001/04/10 - Updates (1.2.6-20010408), cleaning. // 2001/04/20 - Update for "new since 1.2.6-20010422". Experimental version // introducing TranslatorAdapter class and the abstract base // class Translator. The English translator is now on the same // level as other translators. // 2001/05/02 - Decode() inline changed to decode(); cleaning. // 2001/05/18 - Updates, corrections. // 2001/05/25 - Corrections. // 2001/07/16 - trClassDocumentation() updated as in the English translator. // 2001/11/06 - trReferences() implemented. // 2002/01/23 - Two new methods "since 1.2.13" implemented. // 2002/03/05 - ... forgot to replace TranslatorAdapter... by Translator. // 2002/07/08 - The new trRTFTableOfContents() implemented. (my birthday! ;) // 2002/07/29 - The new trDeprecatedList() implemented. // 2002/10/15 - The new trEvents() and trEventDocumentation() implemented. // 2003/04/28 - Five new methods "since 1.3" implemented. // 2003/06/10 - Two new methods "since 1.3.1" implemented. // 2003/08/13 - Four new methods "since 1.3.3" implemented. // 2004/02/26 - trLegendDocs() updated. // 2004/02/27 - Text inside the trCallGraph() corrected. // 2004/06/16 - The new method "since 1.3.8" implemented. // 2004/09/14 - The new methods "since 1.3.9" implemented. // 2005/02/11 - The "never used" methods removed. // 2005/03/08 - Update for "new since 1.4.1" (trOverloadText()) // Todo // ---- // - The trReimplementedFromList() should pass the kind of the // reimplemented element. It can be method, typedef or possibly // something else. It is difficult to find the general translation // for all kinds in the Czech language. // // Notices: // -------- // The conditional compilation ensures or the neutral functionality // of the private inline decode(), or calling the WinToISO() method // for on-line encoding conversion. If you want to maintain the // source in the iso-8859-2, do convert the encoding of the source, // change the conditional definition of the inline decode() using the // method ISO88592ToWin1250() -- for conversion of strings for the // Windows version. The version which does not call the function is // probably slightly faster. class TranslatorCzech : public Translator { private: /*! The decode() inline assumes the source written in the Windows encoding (maintainer only dependent). */ inline QCString decode(const QCString & sInput) { if (Config_getBool("USE_WINDOWS_ENCODING")) { return sInput; } else { return Win1250ToISO88592(sInput); } } public: // --- Language control methods ------------------- virtual QCString idLanguage() { return "czech"; } virtual QCString latexLanguageSupportCommand() { return "\\usepackage{czech}\n"; } /*! return the language charset. This will be used for the HTML output */ virtual QCString idLanguageCharset() { if (Config_getBool("USE_WINDOWS_ENCODING")) { return "windows-1250"; } else { return "iso-8859-2"; } } // --- Language translation methods ------------------- /*! used in the compound documentation before a list of related functions. */ virtual QCString trRelatedFunctions() { return decode("Související funkce"); } /*! subscript for the related functions. */ virtual QCString trRelatedSubscript() { return decode("(Uvedené funkce nejsou členskými funkcemi.)"); } /*! header that is put before the detailed description of files, classes and namespaces. */ virtual QCString trDetailedDescription() { return decode("Detailní popis"); } /*! header that is put before the list of typedefs. */ virtual QCString trMemberTypedefDocumentation() { return decode("Dokumentace k členským typům"); } /*! header that is put before the list of enumerations. */ virtual QCString trMemberEnumerationDocumentation() { return decode("Dokumentace k členským výčtům"); } /*! header that is put before the list of member functions. */ virtual QCString trMemberFunctionDocumentation() { return decode("Dokumentace k metodám"); } /*! header that is put before the list of member attributes. */ virtual QCString trMemberDataDocumentation() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return decode("Dokumentace k položkám"); } else { return decode("Dokumentace k datovým členům"); } } /*! this is the text of a link put after brief descriptions. */ virtual QCString trMore() { return decode("..."); } /*! put in the class documentation */ virtual QCString trListOfAllMembers() { return decode("Seznam všech členů."); } /*! used as the title of the "list of all members" page of a class */ virtual QCString trMemberList() { return decode("Seznam členů třídy"); } /*! this is the first part of a sentence that is followed by a class name */ virtual QCString trThisIsTheListOfAllMembers() { return decode("Zde naleznete úplný seznam členů třídy "); } /*! this is the remainder of the sentence after the class name */ virtual QCString trIncludingInheritedMembers() { return decode(", včetně všech zděděných členů."); } /*! this is put at the author sections at the bottom of man pages. * parameter s is name of the project name. */ virtual QCString trGeneratedAutomatically(const char *s) { QCString result="Generováno automaticky programem Doxygen " "ze zdrojových textů"; if (s) result+=(QCString)" projektu "+s; result+="."; return decode(result); } /*! put after an enum name in the list of all members */ virtual QCString trEnumName() { return decode("jméno výčtu"); } /*! put after an enum value in the list of all members */ virtual QCString trEnumValue() { return decode("hodnota výčtu"); } /*! put after an undocumented member in the list of all members */ virtual QCString trDefinedIn() { return decode("definován v"); } // quick reference sections /*! This is put above each page as a link to the list of all groups of * compounds or files (see the \\group command). */ virtual QCString trModules() { return decode("Moduly"); } /*! This is put above each page as a link to the class hierarchy */ virtual QCString trClassHierarchy() { return decode("Hierarchie tříd"); } /*! This is put above each page as a link to the list of annotated classes */ virtual QCString trCompoundList() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return decode("Datové struktury"); } else { return decode("Seznam tříd"); } } /*! This is put above each page as a link to the list of documented files */ virtual QCString trFileList() { return decode("Seznam souborů"); } /*! This is put above each page as a link to all members of compounds. */ virtual QCString trCompoundMembers() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return decode("Datové položky"); } else { return decode("Seznam členů tříd"); } } /*! This is put above each page as a link to all members of files. */ virtual QCString trFileMembers() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return decode("Globální symboly"); } else { return decode("Symboly v souborech"); } } /*! This is put above each page as a link to all related pages. */ virtual QCString trRelatedPages() { return decode("Ostatní stránky"); } /*! This is put above each page as a link to all examples. */ virtual QCString trExamples() { return decode("Příklady"); } /*! This is put above each page as a link to the search engine. */ virtual QCString trSearch() { return decode("Hledat"); } /*! This is an introduction to the class hierarchy. */ virtual QCString trClassHierarchyDescription() { return decode("Zde naleznete seznam, vyjadřující vztah dědičnosti tříd. " "Je seřazen přibližně (ale ne úplně) podle abecedy:"); } /*! This is an introduction to the list with all files. */ virtual QCString trFileListDescription(bool extractAll) { QCString result="Zde naleznete seznam všech "; if (!extractAll) result+="dokumentovaných "; result+="souborů se stručnými popisy:"; return decode(result); } /*! This is an introduction to the annotated compound list. */ virtual QCString trCompoundListDescription() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return decode("Následující seznam obsahuje identifikace datových " "struktur a jejich stručné popisy:"); } else { return decode("Následující seznam obsahuje především identifikace " "tříd, ale nacházejí se zde i další netriviální prvky, " "jako jsou struktury (struct), unie (union) a rozhraní " "(interface). V seznamu jsou uvedeny jejich stručné " "popisy:"); } } /*! This is an introduction to the page with all class members. */ virtual QCString trCompoundMembersDescription(bool extractAll) { QCString result= "Zde naleznete seznam všech "; if (!extractAll) { result += "dokumentovaných "; } if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result += "položek struktur (struct) a unií (union) "; } else { result += "členů tříd "; } result += "s odkazy na "; if (extractAll) { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result += "dokumentaci struktur/unií, ke kterým příslušejí:"; } else { result += "dokumentaci tříd, ke kterým příslušejí:"; } } else { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result+="struktury/unie, ke kterým příslušejí:"; } else { result+="třídy, ke kterým příslušejí:"; } } return decode(result); } /*! This is an introduction to the page with all file members. */ virtual QCString trFileMembersDescription(bool extractAll) { QCString result="Zde naleznete seznam všech "; if (!extractAll) result+="dokumentovaných "; if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result+="funkcí, proměnných, maker, výčtů a definic typů (typedef) " "s odkazy na "; } else { result+="symbolů, které jsou definovány na úrovni svých souborů. " "Pro každý symbol je uveden odkaz na "; } if (extractAll) result+="soubory, ke kterým příslušejí:"; else result+="dokumentaci:"; return decode(result); } /*! This is an introduction to the page with the list of all examples */ virtual QCString trExamplesDescription() { return decode("Zde naleznete seznam všech příkladů:"); } /*! This is an introduction to the page with the list of related pages */ virtual QCString trRelatedPagesDescription() { return decode("Následující seznam odkazuje na další stránky projektu:"); } /*! This is an introduction to the page with the list of class/file groups */ virtual QCString trModulesDescription() { return decode("Zde naleznete seznam všech modulů:"); } // index titles (the project name is prepended for these) /*! This is used in HTML as the title of index.html. */ virtual QCString trDocumentation() { return decode("Dokumentace"); } /*! This is used in LaTeX as the title of the chapter with the * index of all groups. */ virtual QCString trModuleIndex() { return decode("Rejstřík modulů"); } /*! This is used in LaTeX as the title of the chapter with the * class hierarchy. */ virtual QCString trHierarchicalIndex() { return decode("Rejstřík hierarchie tříd"); } /*! This is used in LaTeX as the title of the chapter with the * annotated compound index. */ virtual QCString trCompoundIndex() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return decode("Rejstřík datových struktur"); } else { return decode("Rejstřík tříd"); } } /*! This is used in LaTeX as the title of the chapter with the * list of all files. */ virtual QCString trFileIndex() { return decode("Rejstřík souborů"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all groups. */ virtual QCString trModuleDocumentation() { return decode("Dokumentace modulů"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all classes, structs and unions. */ virtual QCString trClassDocumentation() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return decode("Dokumentace datových struktur"); } else { return decode("Dokumentace tříd"); } } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all files. */ virtual QCString trFileDocumentation() { return decode("Dokumentace souborů"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all examples. */ virtual QCString trExampleDocumentation() { return decode("Dokumentace příkladů"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all related pages. */ virtual QCString trPageDocumentation() { return decode("Dokumentace souvisejících stránek"); } /*! This is used in LaTeX as the title of the document */ virtual QCString trReferenceManual() { return decode("Referenční příručka"); } /*! This is used in the documentation of a file as a header before the * list of defines */ virtual QCString trDefines() { return decode("Definice maker"); } /*! This is used in the documentation of a file as a header before the * list of function prototypes */ virtual QCString trFuncProtos() { return decode("Prototypy"); } /*! This is used in the documentation of a file as a header before the * list of typedefs */ virtual QCString trTypedefs() { return decode("Definice typů"); } /*! This is used in the documentation of a file as a header before the * list of enumerations */ virtual QCString trEnumerations() { return decode("Výčty"); } /*! This is used in the documentation of a file as a header before the * list of (global) functions */ virtual QCString trFunctions() { return decode("Funkce"); } /*! This is used in the documentation of a file as a header before the * list of (global) variables */ virtual QCString trVariables() { return decode("Proměnné"); } /*! This is used in the documentation of a file as a header before the * list of (global) variables */ virtual QCString trEnumerationValues() { return decode("Hodnoty výčtu"); } /*! This is used in the documentation of a file before the list of * documentation blocks for defines */ virtual QCString trDefineDocumentation() { return decode("Dokumentace k definicím maker"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for function prototypes */ virtual QCString trFunctionPrototypeDocumentation() { return decode("Dokumentace prototypů"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for typedefs */ virtual QCString trTypedefDocumentation() { return decode("Dokumentace definic typů"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for enumeration types */ virtual QCString trEnumerationTypeDocumentation() { return decode("Dokumentace výčtových typů"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for functions */ virtual QCString trFunctionDocumentation() { return decode("Dokumentace funkcí"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for variables */ virtual QCString trVariableDocumentation() { return decode("Dokumentace proměnných"); } /*! This is used in the documentation of a file/namespace/group before * the list of links to documented compounds */ virtual QCString trCompounds() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return decode("Datové struktry"); } else { return decode("Třídy"); } } /*! This is used in the standard footer of each page and indicates when * the page was generated */ virtual QCString trGeneratedAt(const char *date,const char *projName) { QCString result=(QCString)"Generováno "+date; if (projName) result+=(QCString)" pro projekt "+projName; result+=(QCString)" programem"; return decode(result); } /*! This is part of the sentence used in the standard footer of each page. */ virtual QCString trWrittenBy() { return decode(" -- autor "); } /*! this text is put before a class diagram */ virtual QCString trClassDiagram(const char *clName) { return decode((QCString)"Diagram dědičnosti pro třídu "+clName); } /*! this text is generated when the \\internal command is used. */ virtual QCString trForInternalUseOnly() { return decode("Pouze pro vnitřní použití."); } /*! this text is generated when the \\warning command is used. */ virtual QCString trWarning() { return decode("Pozor"); } /*! this text is generated when the \\version command is used. */ virtual QCString trVersion() { return decode("Verze"); } /*! this text is generated when the \\date command is used. */ virtual QCString trDate() { return decode("Datum"); } /*! this text is generated when the \\return command is used. */ virtual QCString trReturns() { return decode("Návratová hodnota"); } /*! this text is generated when the \\sa command is used. */ virtual QCString trSeeAlso() { return decode("Viz také"); } /*! this text is generated when the \\param command is used. */ virtual QCString trParameters() { return decode("Parametry"); } /*! this text is generated when the \\exception command is used. */ virtual QCString trExceptions() { return decode("Výjimky"); } /*! this text is used in the title page of a LaTeX document. */ virtual QCString trGeneratedBy() { return decode("Generováno programem"); } // new since 0.49-990307 /*! used as the title of page containing all the index of all namespaces. */ virtual QCString trNamespaceList() { return decode("Seznam prostorů jmen"); } /*! used as an introduction to the namespace list */ virtual QCString trNamespaceListDescription(bool extractAll) { QCString result="Zde naleznete seznam všech "; if (!extractAll) result+="dokumentovaných "; result+="prostorů jmen se stručným popisem:"; return decode(result); } /*! used in the class documentation as a header before the list of all * friends of a class */ virtual QCString trFriends() { return decode("Friends"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990405 ////////////////////////////////////////////////////////////////////////// /*! used in the class documentation as a header before the list of all * related classes */ virtual QCString trRelatedFunctionDocumentation() { return decode("Dokumentace k friends"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990425 ////////////////////////////////////////////////////////////////////////// /*! used as the title of the HTML page of a class/struct/union */ virtual QCString trCompoundReference(const char *clName, ClassDef::CompoundType compType, bool isTemplate) { QCString result("Dokumentace "); if (isTemplate) result+="šablony "; switch(compType) { case ClassDef::Class: result+="třídy "; break; case ClassDef::Struct: result+="struktury "; break; case ClassDef::Union: result+="unie "; break; case ClassDef::Interface: result+="rozhraní "; break; case ClassDef::Protocol: result+="protocol "; break; // translate me! case ClassDef::Category: result+="category "; break; // translate me! case ClassDef::Exception: result+="výjimky "; break; } result+=clName; return decode(result); } /*! used as the title of the HTML page of a file */ virtual QCString trFileReference(const char *fileName) { QCString result("Dokumentace souboru "); result+=fileName; return decode(result); } /*! used as the title of the HTML page of a namespace */ virtual QCString trNamespaceReference(const char *namespaceName) { QCString result("Dokumentace prostoru jmen "); result+=namespaceName; return decode(result); } /* * these are for the member sections of a class, struct or union */ virtual QCString trPublicMembers() { return decode("Veřejné metody"); } virtual QCString trPublicSlots() { return decode("Veřejné sloty"); } virtual QCString trSignals() { return decode("Signály"); } virtual QCString trStaticPublicMembers() { return decode("Statické veřejné metody"); } virtual QCString trProtectedMembers() { return decode("Chráněné metody"); } virtual QCString trProtectedSlots() { return decode("Chráněné sloty"); } virtual QCString trStaticProtectedMembers() { return decode("Statické chráněné metody"); } virtual QCString trPrivateMembers() { return decode("Privátní metody"); } virtual QCString trPrivateSlots() { return decode("Privátní sloty"); } virtual QCString trStaticPrivateMembers() { return decode("Statické privátní metody"); } /*! this function is used to produce a comma-separated list of items. * use generateMarker(i) to indicate where item i should be put. */ virtual QCString trWriteList(int numEntries) { QCString result; int i; // the inherits list contain `numEntries' classes for (i=0;i