/****************************************************************************** * * * * Copyright (C) 1997-2000 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. * */ // translation by Boris Bralo // Updates: // -------- // 2000/08/20 // - Better handling of ISO-8859-2/ WIN 1250 stuff based on (actualy stolen from :-)) Czech translations // implemented by Petr Prikryl (prikrylp@skil.cz). // As opposed to Czech translation this one assumes that Doxygen strings are written in Linux ( it's true, // I don't have QT pro licence ) , and uses ISOToWin function when built in WIN32 // #ifndef TRANSLATOR_HR_H #define TRANSLATOR_HR_H #include "translator.h" class TranslatorCroatian : public Translator { private: /*! to avoid macro redefinition from translator_cz.h */ /* Speed loss is actualy less than in Czech version due to fewer QCString copying. */ inline QCString decode(const QCString& sInput) { #ifdef _WIN32 return ISO88592ToWin1250(sInput); #else return sInput; #endif } public: QCString idLanguage() { return "croatian"; } QCString idLanguageCharset() #ifdef _WIN32 { return "windows-1250"; } #else { return "iso-8859-2"; } #endif QCString latexBabelPackage() { return "croatian"; } QCString trRelatedFunctions() { return decode("Povezane funkcije"); } QCString trRelatedSubscript() { return decode("(To nisu member funkcije.)"); } QCString trDetailedDescription() { return decode("Detaljno objašnjenje"); } QCString trMemberTypedefDocumentation() { return decode("Dokumentacija typedef članova"); } QCString trMemberEnumerationDocumentation() { return decode("Dokumentacija enum članova"); } QCString trEnumerationValueDocumentation() { return decode("Dokumentacija enum vrijednosti"); } QCString trMemberFunctionDocumentation() { return decode("Dokumentacija funkcija"); } QCString trMemberDataDocumentation() { return decode("Documentacija varijabli"); } QCString trGeneratedFrom(const char *s,bool single) { QCString result= decode("Dokumentacija za ")+s+ decode("je generirana iz "); if (single) result+= decode("datoteke :"); else result+= decode("slijedećih datoteka:"); return result; } QCString trMore() { return decode("Opširnije..."); } QCString trListOfAllMembers() { return decode("Popis svih članova."); } QCString trMemberList() { return decode("Popis članova."); } QCString trThisIsTheListOfAllMembers() { return decode("Ovo je popis svih članova"); } QCString trIncludingInheritedMembers() { return decode(", uključujući naslijeđene članove."); } QCString trGeneratedAutomatically(const char *s) { QCString result=decode("generirano automatski Doxygen-om"); if (s) result+=(QCString)decode(" za ")+s; result+=decode(" iz programskog koda."); return result; } QCString trEnumName() { return decode("enum ime"); } QCString trEnumValue() { return decode("enum vrijednost"); } QCString trDefinedIn() { return decode("definirano u"); } QCString trVerbatimText(const char *f) { return (QCString)decode("Ovo je citirani tekst iz include datoteke ")+f+"."; } QCString trModules() { return decode("Moduli"); } QCString trClassHierarchy() { return decode("Stablo klasa"); } QCString trCompoundList() { return decode("Sve klase"); } QCString trFileList() { return decode("Popis datoteka"); } QCString trHeaderFiles() { return decode("Header datoteke"); } QCString trCompoundMembers() { return decode("Svi članovi"); } QCString trFileMembers() { return decode("Članovi(memberi) u datoteci"); } QCString trRelatedPages() { return decode("Povezane stranice"); } QCString trExamples() { return decode("Primjeri"); } QCString trSearch() { return decode("Traži"); } QCString trClassHierarchyDescription() { return decode("Stablo naslijeđivanja je posloženo " "približno po abecedi:"); } QCString trFileListDescription(bool extractAll) { QCString result=decode("Popis svih "); if (!extractAll) result+=decode("dokumentiranih "); result+=decode("datoteka, s kratkim opisom:"); return result; } QCString trCompoundListDescription() { return decode("Popis svih klasa, unija i struktura " "s kratkim opisom :"); } QCString trCompoundMembersDescription(bool extractAll) { QCString result=decode("Popis svih "); if (!extractAll) result+=decode("dokumentiranih "); result+=decode("članova klasa s linkovima na "); if (extractAll) result+=decode("dokumentaciju svakog člana:"); else result+=decode("dokumentaciju klase :"); return result; } QCString trFileMembersDescription(bool extractAll) { QCString result=decode("Popis svih "); if (!extractAll) result+=decode("dokumentiranih "); result+=decode("članova s linkovima na "); if (extractAll) result+=decode("dokumentaciju datoteke u kojima se nalaze:"); else result+=decode("datoteke u kojima se nalaze:"); return result; } QCString trHeaderFilesDescription() { return decode("Popis header datoteka koje čine API :"); } QCString trExamplesDescription() { return decode("Popis primjera :"); } QCString trRelatedPagesDescription() { return decode("Popis povezanih stranica:"); } QCString trModulesDescription() { return decode("Popis svih modula:"); } QCString trNoDescriptionAvailable() { return decode("Opis nije dostupan"); } QCString trDocumentation() { return decode("Dokumentacija"); } QCString trModuleIndex() { return decode("Indeks modula"); } QCString trHierarchicalIndex() { return decode("Hijerarhijski indeks"); } QCString trCompoundIndex() { return decode("Skupni indeks"); } QCString trFileIndex() { return decode("Indeks datoteka"); } QCString trModuleDocumentation() { return decode("Dokumentacija modula"); } QCString trClassDocumentation() { return decode("Dokumentacija klasa"); } QCString trFileDocumentation() { return decode("Dokumentacija datoteka"); } QCString trExampleDocumentation() { return decode("Dokumentacija primjera"); } QCString trPageDocumentation() { return decode("Dokumentacija za povezane stranice"); } QCString trReferenceManual() { return decode("Priručnik"); } QCString trDefines() { return decode("Define-ovi"); } QCString trFuncProtos() { return decode("Prototipi funkcija"); } QCString trTypedefs() { return decode("Typedef-ovi"); } QCString trEnumerations() { return decode("Enumeracije"); } QCString trFunctions() { return decode("Funkcije"); } QCString trVariables() { return decode("Varijable"); } QCString trEnumerationValues() { return decode("Vrijednosti enum-ova"); } QCString trAuthor() { return decode("autor"); } QCString trDefineDocumentation() { return decode("Dokumentacija define-a"); } QCString trFunctionPrototypeDocumentation() { return decode("Dokumentacija prototipa funkcije"); } QCString trTypedefDocumentation() { return decode("Dokumentacija typedef-a"); } QCString trEnumerationTypeDocumentation() { return decode("Dokumentacija enum tipa"); } QCString trFunctionDocumentation() { return decode("Dokumentacije funkcijs"); } QCString trVariableDocumentation() { return decode("Dokumentacija varijable"); } QCString trCompounds() { return decode("Strukture"); } QCString trFiles() { return decode("Datoteke"); } QCString trGeneratedAt(const char *date,const char *projName) { QCString result=(QCString)decode("Generirano ")+date; if (projName) result+=(QCString)decode(" projekt: ")+projName; result+=(QCString)decode(" generator: "); return result; } QCString trWrittenBy() { return decode("napisao "); } QCString trClassDiagram(const char *clName) { return decode("Dijagram klasa za ")+clName; } QCString trForInternalUseOnly() { return decode("Isključivo za internu uporabu."); } QCString trReimplementedForInternalReasons() { return decode("Reimplementirano zbog internih razloga; " "Nema utjecaja na API."); } QCString trWarning() { return decode("Upozorenje"); } QCString trBugsAndLimitations() { return decode("Greške i ograničenja"); } QCString trVersion() { return decode("Verzija"); } QCString trDate() { return decode("Datum"); } QCString trAuthors() { return decode("Autor(i)"); } QCString trReturns() { return decode("Povratne vrijednosti"); } QCString trSeeAlso() { return decode("Vidi također"); } QCString trParameters() { return decode("Parametri"); } QCString trExceptions() { return decode("Iznimke"); } QCString trGeneratedBy() { return decode("Generirao"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990307 ////////////////////////////////////////////////////////////////////////// QCString trNamespaceList() { return decode("Popis namespace-ova"); } QCString trNamespaceListDescription(bool extractAll) { QCString result=decode("Popis svih "); if (!extractAll) result+=decode("dokumentiranih "); result+=decode("namespace-ova s kratkim opisom:"); return result; } QCString trFriends() { return decode("Friend-ovi "); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990405 ////////////////////////////////////////////////////////////////////////// QCString trRelatedFunctionDocumentation() { return decode("Dokumentacija povezanih funkcija"); } ////////////////////////////////////////////////////////////////////////// // new since 0.49-990425 ////////////////////////////////////////////////////////////////////////// QCString trCompoundReference(const char *clName, ClassDef::CompoundType compType, bool /*isTemplate*/) // used as the title of the HTML page of a class/struct/union { QCString result=decode("Opis "); switch(compType) { case ClassDef::Class: result+=decode(" klase "); break; case ClassDef::Struct: result+=decode(" strukture "); break; case ClassDef::Union: result+=decode(" unije "); break; case ClassDef::Interface: result+=decode(" sučelja (interface) "); break; case ClassDef::Exception: result+=decode(" iznimke (exception) "); break; } result += (QCString)clName; return result; } QCString trFileReference(const char *fileName) // used as the title of the HTML page of a file { QCString result=decode("Opis datoteke "); result+=fileName; return result; } QCString trNamespaceReference(const char *namespaceName) // used as the title of the HTML page of a namespace { QCString result =decode("Opis namespace-a "); result+=namespaceName; return result; } // these are for the member sections of a class, struct or union QCString trPublicMembers() { return decode("Public članovi"); } QCString trPublicSlots() { return decode("Public slotovi"); } QCString trSignals() { return decode("Signali"); } QCString trStaticPublicMembers() { return decode("Static public članovi"); } QCString trProtectedMembers() { return decode("Protected članovi"); } QCString trProtectedSlots() { return decode("Protected slotovi"); } QCString trStaticProtectedMembers() { return decode("Static protected članovi"); } QCString trPrivateMembers() { return decode("Private članovi"); } QCString trPrivateSlots() { return decode("Private slotovi"); } QCString trStaticPrivateMembers() { return decode("Static private članovi"); } // end of member sections QCString trWriteList(int numEntries) { // this function is used to produce a comma-separated list of items. // use generateMarker(i) to indicate where item i should be put. QCString result; int i; // the inherits list contain `numEntries' classes for (i=0;i