diff options
Diffstat (limited to 'src/translator_pt.h')
-rw-r--r-- | src/translator_pt.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/translator_pt.h b/src/translator_pt.h index 2273c97..223ca53 100644 --- a/src/translator_pt.h +++ b/src/translator_pt.h @@ -27,7 +27,7 @@ * --------------- * History: * 20200112: - * - Updated to 1.9.1; + * - Updated to 1.9.1; * 20190203: * - Slice methods added; * 20180612: @@ -63,7 +63,7 @@ #define TRANSLATOR_PT_H -class TranslatorPortuguese : public Translator +class TranslatorPortuguese : public TranslatorAdapter_1_9_2 { public: @@ -165,9 +165,9 @@ class TranslatorPortuguese : public Translator /*! this is put at the author sections at the bottom of man pages. * parameter s is name of the project name. */ - QCString trGeneratedAutomatically(const char *s) + QCString trGeneratedAutomatically(const QCString &s) { QCString result="Gerado automaticamente por Doxygen"; - if (s) result+=(QCString)" para "+s; + if (!s.isEmpty()) result+=(QCString)" para "+s; result+=" a partir do código fonte."; return result; } @@ -515,16 +515,16 @@ class TranslatorPortuguese : public Translator /*! This is used in the standard footer of each page and indicates when * the page was generated */ - QCString trGeneratedAt(const char *date,const char *projName) + QCString trGeneratedAt(const QCString &date,const QCString &projName) { QCString result=(QCString)"Gerado em "+date; - if (projName) result+=(QCString)" para "+projName; + if (!projName.isEmpty()) result+=(QCString)" para "+projName; result+=(QCString)" por"; return result; } /*! this text is put before a class diagram */ - QCString trClassDiagram(const char *clName) + QCString trClassDiagram(const QCString &clName) { return (QCString)"Diagrama de heranças da classe "+clName; } @@ -603,7 +603,7 @@ class TranslatorPortuguese : public Translator ////////////////////////////////////////////////////////////////////////// /*! used as the title of the HTML page of a class/struct/union */ - virtual QCString trCompoundReference(const char *clName, + virtual QCString trCompoundReference(const QCString &clName, ClassDef::CompoundType compType, bool isTemplate) { @@ -625,7 +625,7 @@ class TranslatorPortuguese : public Translator } /*! used as the title of the HTML page of a file */ - virtual QCString trFileReference(const char *fileName) + virtual QCString trFileReference(const QCString &fileName) { QCString result= "Referência ao ficheiro "; result += fileName; @@ -633,7 +633,7 @@ class TranslatorPortuguese : public Translator } /*! used as the title of the HTML page of a namespace */ - virtual QCString trNamespaceReference(const char *namespaceName) + virtual QCString trNamespaceReference(const QCString &namespaceName) { QCString result= "Referência ao namespace "; result += namespaceName; @@ -834,12 +834,12 @@ class TranslatorPortuguese : public Translator ////////////////////////////////////////////////////////////////////////// /*! this text is put before a collaboration diagram */ - virtual QCString trCollaborationDiagram(const char *clName) + virtual QCString trCollaborationDiagram(const QCString &clName) { return (QCString)"Diagrama de colaboração para "+clName+":"; } /*! this text is put before an include dependency graph */ - virtual QCString trInclDepGraph(const char *fName) + virtual QCString trInclDepGraph(const QCString &fName) { return (QCString)"Diagrama de dependências de inclusão para "+fName+":"; } @@ -1112,7 +1112,7 @@ class TranslatorPortuguese : public Translator } } /*! Used as the title of a Java package */ - virtual QCString trPackage(const char *name) + virtual QCString trPackage(const QCString &name) { return (QCString)"Pacote "+name; } @@ -1504,7 +1504,7 @@ class TranslatorPortuguese : public Translator /*! This returns the title of a directory page. The name of the * directory is passed via \a dirName. */ - virtual QCString trDirReference(const char *dirName) + virtual QCString trDirReference(const QCString &dirName) { QCString result = "Referência do diretório "; result += dirName; @@ -1632,7 +1632,7 @@ class TranslatorPortuguese : public Translator } /*! used as the title of the HTML page of a module/type (Fortran) */ - virtual QCString trCompoundReferenceFortran(const char *clName, + virtual QCString trCompoundReferenceFortran(const QCString &clName, ClassDef::CompoundType compType, bool isTemplate) { @@ -1656,7 +1656,7 @@ class TranslatorPortuguese : public Translator return result; } /*! used as the title of the HTML page of a module (Fortran) */ - virtual QCString trModuleReference(const char *namespaceName) + virtual QCString trModuleReference(const QCString &namespaceName) { QCString result = "Referência do Módulo "; result += namespaceName; @@ -1761,7 +1761,7 @@ class TranslatorPortuguese : public Translator /*! directory relation for \a name */ - virtual QCString trDirRelation(const char *name) + virtual QCString trDirRelation(const QCString &name) { return "Relação " + QCString(name); } @@ -1798,7 +1798,7 @@ class TranslatorPortuguese : public Translator * table is shown. The heading for the first column mentions the * source file that has a relation to another file. */ - virtual QCString trFileIn(const char *name) + virtual QCString trFileIn(const QCString &name) { return (QCString)"Ficheiro em "+name; } @@ -1807,7 +1807,7 @@ class TranslatorPortuguese : public Translator * table is shown. The heading for the second column mentions the * destination file that is included. */ - virtual QCString trIncludesFileIn(const char *name) + virtual QCString trIncludesFileIn(const QCString &name) { return (QCString)"Inclui ficheiro em "+name; } @@ -1856,7 +1856,7 @@ class TranslatorPortuguese : public Translator } /*! Header for the graph showing the directory dependencies */ - virtual QCString trDirDepGraph(const char *name) + virtual QCString trDirDepGraph(const QCString &name) { return QCString("Grafo de dependências do directório ")+name+":"; } ////////////////////////////////////////////////////////////////////////// @@ -1887,14 +1887,14 @@ class TranslatorPortuguese : public Translator } /*! Header of a Java enum page (Java enums are represented as classes). */ - virtual QCString trEnumReference(const char *name) + virtual QCString trEnumReference(const QCString &name) { QCString result = "Referência da enumeração "; return result + name; } /*! Used for a section containing inherited members */ - virtual QCString trInheritedFrom(const char *members,const char *what) + virtual QCString trInheritedFrom(const QCString &members,const QCString &what) { return QCString(members)+" herdados de "+what; } /*! Header of the sections with inherited members specific for the @@ -1975,7 +1975,7 @@ class TranslatorPortuguese : public Translator { return "Grupos de Constantes"; } /** UNO IDL constant groups */ - virtual QCString trConstantGroupReference(const char *namespaceName) + virtual QCString trConstantGroupReference(const QCString &namespaceName) { QCString result = "Referência do grupo de constantes "; result += namespaceName; @@ -1983,7 +1983,7 @@ class TranslatorPortuguese : public Translator } /** UNO IDL service page title */ - virtual QCString trServiceReference(const char *sName) + virtual QCString trServiceReference(const QCString &sName) { QCString result = "Referência do serviço "; result += sName; @@ -1991,7 +1991,7 @@ class TranslatorPortuguese : public Translator } /** UNO IDL singleton page title */ - virtual QCString trSingletonReference(const char *sName) + virtual QCString trSingletonReference(const QCString &sName) { QCString result = "Referência do Singleton "; result += sName; @@ -2141,7 +2141,7 @@ class TranslatorPortuguese : public Translator return "Classe"; } } - virtual QCString trCustomReference(const char *name) + virtual QCString trCustomReference(const QCString &name) { return "Referência de " + QCString(name); } /* Slice */ @@ -2241,7 +2241,7 @@ class TranslatorPortuguese : public Translator { return "Exceções"; } - virtual QCString trCompoundReferenceSlice(const char *clName, ClassDef::CompoundType compType, bool isLocal) + virtual QCString trCompoundReferenceSlice(const QCString &clName, ClassDef::CompoundType compType, bool isLocal) { QCString result=(QCString)"Referência "; switch(compType) @@ -2279,11 +2279,11 @@ class TranslatorPortuguese : public Translator ////////////////////////////////////////////////////////////////////////// // new since 1.8.19 ////////////////////////////////////////////////////////////////////////// - + /** VHDL design unit documentation */ virtual QCString trDesignUnitDocumentation() - { - return "Documentação da Unidade de Projeto"; + { + return "Documentação da Unidade de Projeto"; } }; |