/****************************************************************************** * * * * 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. * * ---------------------------------------------------------------------------- * * Slovak translation by Stanislav Kudlac (skudlac@pobox.sk) * * ---------------------------------------------------------------------------- */ #ifndef TRANSLATOR_SK_H #define TRANSLATOR_SK_H class TranslatorSlovak : public TranslatorAdapter_1_2_18 { private: /*! The Decode() inline assumes the source written in the Windows encoding (maintainer only dependent). */ inline QCString Decode(const QCString & sInput) { #ifdef _WIN32 return sInput; #else return Win1250ToISO88592(sInput); #endif } public: // --- Language control methods ------------------- virtual QCString idLanguage() { return "slovak"; } virtual QCString latexLanguageSupportCommand() { return "\\usepackage{slovak}\n"; } /*! return the language charset. This will be used for the HTML output */ virtual QCString idLanguageCharset() { #ifdef _WIN32 return "windows-1250"; #else return "iso-8859-2"; #endif } // --- Language translation methods ------------------- /*! used in the compound documentation before a list of related functions. */ virtual QCString trRelatedFunctions() { return Decode("Súvisiace funkcie"); } /*! subscript for the related functions. */ virtual QCString trRelatedSubscript() { return Decode("(Uvedené funkcie niesú členskými funkciami.)"); } /*! 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("Dokumentácia k členským typom"); } /*! header that is put before the list of enumerations. */ virtual QCString trMemberEnumerationDocumentation() { return Decode("Dokumentácia k členským enumeráciám"); } /*! header that is put before the list of member functions. */ virtual QCString trMemberFunctionDocumentation() { return Decode("Dokumentácia k metódam"); } /*! header that is put before the list of member attributes. */ virtual QCString trMemberDataDocumentation() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return Decode("Dokumentácia k položkám"); } else { return Decode("Dokumentácia k dátovým členom"); } } /*! 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("Zoznam všetkých členov."); } /*! used as the title of the "list of all members" page of a class */ virtual QCString trMemberList() { return Decode("Zoznam členov triedy"); } /*! this is the first part of a sentence that is followed by a class name */ virtual QCString trThisIsTheListOfAllMembers() { return Decode("Tu nájdete úplný zoznam členov triedy "); } /*! this is the remainder of the sentence after the class name */ virtual QCString trIncludingInheritedMembers() { return Decode(", vrátane všetkých zdedených členov."); } /*! 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="Generované automaticky programom Doxygen " "zo zdrojových textov"; 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("meno enumerácie"); } /*! put after an enum value in the list of all members */ virtual QCString trEnumValue() { return Decode("hodnota enumerácie"); } /*! put after an undocumented member in the list of all members */ virtual QCString trDefinedIn() { return Decode("definovaný 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("Hierarchia tried"); } /*! 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("Dátové štruktúry"); } else { return Decode("Zoznam tried"); } } /*! This is put above each page as a link to the list of documented files */ virtual QCString trFileList() { return Decode("Zoznam súborov"); } /*! This is put above each page as a link to the list of all verbatim headers */ virtual QCString trHeaderFiles() { return Decode("Zoznam hlavičkových súborov"); } /*! 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("Dátové položky"); } else { return Decode("Zoznam členov tried"); } } /*! 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álne symboly"); } else { return Decode("Symboly v súboroch"); } } /*! 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("Príklady"); } /*! This is put above each page as a link to the search engine. */ virtual QCString trSearch() { return Decode("Hľadať"); } /*! This is an introduction to the class hierarchy. */ virtual QCString trClassHierarchyDescription() { return Decode("Tu nájdete zoznam, vyjadrujúci vzťah dedičnosti tried. " "Je zoradený približne (ale nie úplne) podľa abecedy:"); } /*! This is an introduction to the list with all files. */ virtual QCString trFileListDescription(bool extractAll) { QCString result="Tu nájdete zoznam všetkých "; if (!extractAll) result+="dokumentovaných "; result+="súborov so stručnými popismi:"; return Decode(result); } /*! This is an introduction to the annotated compound list. */ virtual QCString trCompoundListDescription() { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return Decode("Nasledujúci zoznam obsahuje identifikáciu dátových " "štruktúr a ich stručné popisy:"); } else { return Decode("Nasledujúci zoznam obsahuje predovšetkým identifikáciu " "tried, ale nachádzajú sa tu i ďalšie netriviálne prvky, " "ako sú štruktúry (struct), uniony (union) a rozhrania " "(interface). V zozname sú uvedené ich stručné " "popisy:"); } } /*! This is an introduction to the page with all class members. */ virtual QCString trCompoundMembersDescription(bool extractAll) { QCString result= "Tu nájdete zoznam všetkých "; if (!extractAll) { result += "dokumentovaných "; } if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result += "položiek štruktúr (struct) a unionov (union) "; } else { result += "členov tried "; } result += "s odkazmi na "; if (!extractAll) { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result += "dokumentáciu štruktúr/unionov, ku ktorým prislúchajú:"; } else { result += "dokumentáciu tried, ku ktorým prislúchajú:"; } } else { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result+="štruktúry/uniony, ku ktorým prislúchajú:"; } else { result+="triedy, ku ktorým prislúchajú:"; } } return Decode(result); } /*! This is an introduction to the page with all file members. */ virtual QCString trFileMembersDescription(bool extractAll) { QCString result="Tu nájdete zoznam všetkých "; if (!extractAll) result+="dokumentovaných "; if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result+="funkcií, premenných, makier, enumerácií a definícií typov (typedef) " "s odkazmi na "; } else { result+="symbolov, ktoré sú definované na úrovni svojich súborov. " "Pre každý symbol je uvedený odkaz na "; } if (extractAll) result+="súbory, ku ktorým prislúchajú:"; else result+="dokumentáciu:"; return Decode(result); } /*! This is an introduction to the page with the list of all header files. */ virtual QCString trHeaderFilesDescription() { return Decode("Tu nájdete hlavičkové súbory, ktoré tvoria " "aplikačné programové rozhranie (API):"); } /*! This is an introduction to the page with the list of all examples */ virtual QCString trExamplesDescription() { return Decode("Tu nájdete zoznam všetkých príkladov:"); } /*! This is an introduction to the page with the list of related pages */ virtual QCString trRelatedPagesDescription() { return Decode("Nasledujúci zoznam odkazuje na ďalšie stránky projektu, " "ktoré majú charakter usporiadaných zoznamov informácií, " "pozbieraných z rôznych miest v zdrojových súboroch:"); } /*! This is an introduction to the page with the list of class/file groups */ virtual QCString trModulesDescription() { return Decode("Tu nájdete zoznam všetkých modulov:"); } /*! This sentences is used in the annotated class/file lists if no brief * description is given. */ virtual QCString trNoDescriptionAvailable() { return Decode("Popis nieje k dispozícii"); } // 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("Dokumentácia"); } /*! This is used in LaTeX as the title of the chapter with the * index of all groups. */ virtual QCString trModuleIndex() { return Decode("Register modulov"); } /*! This is used in LaTeX as the title of the chapter with the * class hierarchy. */ virtual QCString trHierarchicalIndex() { return Decode("Register hierarchie tried"); } /*! 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("Register dátových štruktúr"); } else { return Decode("Register tried"); } } /*! This is used in LaTeX as the title of the chapter with the * list of all files. */ virtual QCString trFileIndex() { return Decode("Register súborov"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all groups. */ virtual QCString trModuleDocumentation() { return Decode("Dokumentácia modulov"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all classes, structs and unions. */ virtual QCString trClassDocumentation() { return Decode("Dokumentácia tried"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all files. */ virtual QCString trFileDocumentation() { return Decode("Dokumentácia súborov"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all examples. */ virtual QCString trExampleDocumentation() { return Decode("Dokumentácia príkladov"); } /*! This is used in LaTeX as the title of the chapter containing * the documentation of all related pages. */ virtual QCString trPageDocumentation() { return Decode("Dokumentácia súvisiacich stránok"); } /*! This is used in LaTeX as the title of the document */ virtual QCString trReferenceManual() { return Decode("Referenčná príručka"); } /*! This is used in the documentation of a file as a header before the * list of defines */ virtual QCString trDefines() { return Decode("Definícia makier"); } /*! 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("Definícia typov"); } /*! This is used in the documentation of a file as a header before the * list of enumerations */ virtual QCString trEnumerations() { return Decode("Enumerácie"); } /*! This is used in the documentation of a file as a header before the * list of (global) functions */ virtual QCString trFunctions() { return Decode("Funkcie"); } /*! This is used in the documentation of a file as a header before the * list of (global) variables */ virtual QCString trVariables() { return Decode("Premenné"); } /*! This is used in the documentation of a file as a header before the * list of (global) variables */ virtual QCString trEnumerationValues() { return Decode("Hodnoty enumerácií"); } /*! This is used in the documentation of a file before the list of * documentation blocks for defines */ virtual QCString trDefineDocumentation() { return Decode("Dokumentácia k definíciám makier"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for function prototypes */ virtual QCString trFunctionPrototypeDocumentation() { return Decode("Dokumentácia prototypov"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for typedefs */ virtual QCString trTypedefDocumentation() { return Decode("Dokumentácia definícií typov"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for enumeration types */ virtual QCString trEnumerationTypeDocumentation() { return Decode("Dokumentácia enumeračných typov"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for enumeration values */ virtual QCString trEnumerationValueDocumentation() { return Decode("Dokumentácia enumeračných hodnôt"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for functions */ virtual QCString trFunctionDocumentation() { return Decode("Dokumentácia funkcií"); } /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for variables */ virtual QCString trVariableDocumentation() { return Decode("Dokumentácia premenný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("Dátové štruktúry"); } else { return Decode("Triedy"); } } /*! 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)"Generované "+date; if (projName) result+=(QCString)" pre projekt "+projName; result+=(QCString)" programom"; 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 dedičnosti pre triedu "+clName); } /*! this text is generated when the \\internal command is used. */ virtual QCString trForInternalUseOnly() { return Decode("Iba pre interné použitie."); } /*! this text is generated when the \\reimp command is used. */ virtual QCString trReimplementedForInternalReasons() { return Decode("Reimplementované z interných dôvodov; " "aplikačné rozhranie zachované."); } /*! this text is generated when the \\warning command is used. */ virtual QCString trWarning() { return Decode("Pozor"); } /*! this text is generated when the \\bug command is used. */ virtual QCString trBugsAndLimitations() { return Decode("Chyby a obmedzenia"); } /*! this text is generated when the \\version command is used. */ virtual QCString trVersion() { return Decode("Verzia"); } /*! this text is generated when the \\date command is used. */ virtual QCString trDate() { return Decode("Dátum"); } /*! 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 tiež"); } /*! this text is generated when the \\param command is used. */ virtual QCString trParameters() { return Decode("Parametre"); } /*! this text is generated when the \\exception command is used. */ virtual QCString trExceptions() { return Decode("Výnimky"); } /*! this text is used in the title page of a LaTeX document. */ virtual QCString trGeneratedBy() { return Decode("Generované programom"); } // new since 0.49-990307 /*! used as the title of page containing all the index of all namespaces. */ virtual QCString trNamespaceList() { return Decode("Zoznam priestorov mien"); } /*! used as an introduction to the namespace list */ virtual QCString trNamespaceListDescription(bool extractAll) { QCString result="Tu nájdete zoznam všetkých "; if (!extractAll) result+="dokumentovaných "; result+="priestorov mien so stručným popisom:"; 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("Priatelia (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("Dokumentácia k priateľom (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("Dokumentácia "); if (isTemplate) result+="šablóny "; switch(compType) { case ClassDef::Class: result+="triedy "; break; case ClassDef::Struct: result+="štruktúry "; break; case ClassDef::Union: result+="unionu "; break; case ClassDef::Interface: result+="rozhrania "; break; case ClassDef::Protocol: result+="protocol "; break; // translate me! case ClassDef::Category: result+="category "; break; // translate me! case ClassDef::Exception: result+="výnimky "; 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("Dokumentácia súboru "); result+=fileName; return Decode(result); } /*! used as the title of the HTML page of a namespace */ virtual QCString trNamespaceReference(const char *namespaceName) { QCString result("Dokumentácia priestoru mien "); result+=namespaceName; return Decode(result); } /* these are for the member sections of a class, struct or union */ virtual QCString trPublicMembers() { return Decode("Verejné metódy"); } virtual QCString trPublicSlots() { return Decode("Verejné sloty"); } virtual QCString trSignals() { return Decode("Signály"); } virtual QCString trStaticPublicMembers() { return Decode("Statické verejné metódy"); } virtual QCString trProtectedMembers() { return Decode("Chránené metódy"); } virtual QCString trProtectedSlots() { return Decode("Chránené sloty"); } virtual QCString trStaticProtectedMembers() { return Decode("Statické chránené metódy"); } virtual QCString trPrivateMembers() { return Decode("Privátne metódy"); } virtual QCString trPrivateSlots() { return Decode("Privátne sloty"); } virtual QCString trStaticPrivateMembers() { return Decode("Statické privátne metódy"); } /*! 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