From 279d9cf6d5a8291d94cf0f178c81858635969927 Mon Sep 17 00:00:00 2001 From: Petr Prikryl Date: Tue, 18 Jun 2013 10:04:05 +0200 Subject: Norwegian translator converted to utf-8. --- src/language.cpp | 2 +- src/translator_no.h | 414 ++++++++++++++++++++++++++-------------------------- 2 files changed, 208 insertions(+), 208 deletions(-) diff --git a/src/language.cpp b/src/language.cpp index d07a2bd..8dbd6d3 100644 --- a/src/language.cpp +++ b/src/language.cpp @@ -315,7 +315,7 @@ bool setTranslator(const char *langName) #ifdef LANG_NO else if (L_EQUAL("norwegian")) { - theTranslator=new TranslatorDecoder(new TranslatorNorwegian); + theTranslator=new TranslatorNorwegian; } #endif #ifdef LANG_BR diff --git a/src/translator_no.h b/src/translator_no.h index 5430538..dbc14dc 100644 --- a/src/translator_no.h +++ b/src/translator_no.h @@ -3,8 +3,8 @@ * Copyright (C) 1997-2013 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 + * 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. * @@ -15,27 +15,27 @@ /****************************************************************************** * Norwegian translation by Lars Erik Jordet , parts by Frode Nilsen - * + * * This is a new translation made from scratch, not based on my older Norwegian translation (for 1.2.2) * * Translation notes (in Norwegian) * - * Jeg har stort sett brukt ord som ligger ganske nær de engelske ekvivalentene, + * Jeg har stort sett brukt ord som ligger ganske nær de engelske ekvivalentene, * for eksempel "enumeration" -> "enumerasjon", og i enkelte tilfeller det engelske - * ordet direkte, der jeg finner det mer naturlig enn å prøve å stable en setning - * på beina på norsk, eller jeg selv foretrekker det engelske ordet (eks: "Header-fil"). - * Om noen ikke skulle like disse valgene, kontakt meg på mailadressen over. + * ordet direkte, der jeg finner det mer naturlig enn Ã¥ prøve Ã¥ stable en setning + * pÃ¥ beina pÃ¥ norsk, eller jeg selv foretrekker det engelske ordet (eks: "Header-fil"). + * Om noen ikke skulle like disse valgene, kontakt meg pÃ¥ mailadressen over. * - * Doxygen har mange strings som består av sammensatte ord ("Member function description", for eksempel), - * som ikke alltid ser like ryddig ut på norsk. Jeg har brukt bindestrek for å få - * det til å se presentabelt ut, men om noen har en bedre idé, send til mailadressen over. + * Doxygen har mange strings som bestÃ¥r av sammensatte ord ("Member function description", for eksempel), + * som ikke alltid ser like ryddig ut pÃ¥ norsk. Jeg har brukt bindestrek for Ã¥ fÃ¥ + * det til Ã¥ se presentabelt ut, men om noen har en bedre idé, send til mailadressen over. * * 2006-03-06: - * Jeg bruker ikke doxygen selv lenger, så det går nok litt i lengste laget mellom oppdateringer... + * Jeg bruker ikke doxygen selv lenger, sÃ¥ det gÃ¥r nok litt i lengste laget mellom oppdateringer... * * Changelog * - * 2003-12-18: Initial translation + * 2003-12-18: Initial translation * 2004-07-19: Fixup to prepare for 1.3.8 (I had forgotten some functions) * 2006-03-06: Added a .diff from Frode Nilsen, now compatible with 1.4.6. */ @@ -48,19 +48,19 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 public: // --- Language control methods ------------------- - - /*! Used for identification of the language. The identification - * should not be translated. It should be replaced by the name + + /*! Used for identification of the language. The identification + * should not be translated. It should be replaced by the name * of the language in English using lower-case characters only - * (e.g. "czech", "japanese", "russian", etc.). It should be equal to + * (e.g. "czech", "japanese", "russian", etc.). It should be equal to * the identification used in language.cpp. */ virtual QCString idLanguage() { return "norwegian"; } - - /*! Used to get the LaTeX command(s) for the language support. + + /*! Used to get the LaTeX command(s) for the language support. * This method should return string with commands that switch - * LaTeX to the desired language. For example + * LaTeX to the desired language. For example *
"\\usepackage[german]{babel}\n"
      *  
* or @@ -79,7 +79,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! return the language charset. This will be used for the HTML output */ virtual QCString idLanguageCharset() { - return "iso-8859-1"; + return "utf-8"; } // --- Language translation methods ------------------- @@ -99,7 +99,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! header that is put before the list of typedefs. */ virtual QCString trMemberTypedefDocumentation() { return "Medlemstypedef-dokumentasjon"; } - + /*! header that is put before the list of enumerations. */ virtual QCString trMemberEnumerationDocumentation() { return "Medlemsenumerasjon-dokumentasjon"; } @@ -107,22 +107,22 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! header that is put before the list of member functions. */ virtual QCString trMemberFunctionDocumentation() { return "Medlemsfunksjon-dokumentasjon"; } - + /*! header that is put before the list of member attributes. */ virtual QCString trMemberDataDocumentation() - { + { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { - return "Feltdokumentasjon"; + return "Feltdokumentasjon"; } else { - return "Medlemsdata-dokumentasjon"; + return "Medlemsdata-dokumentasjon"; } } /*! this is the text of a link put after brief descriptions. */ - virtual QCString trMore() + virtual QCString trMore() { return "Mer..."; } /*! put in the class documentation */ @@ -140,14 +140,14 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! this is the remainder of the sentence after the class name */ virtual QCString trIncludingInheritedMembers() { return ", alle arvede medlemmer inkludert."; } - + /*! 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="Generert automatisk av Doxygen"; if (s) result+=(QCString)" for "+s; - result+=" fra kildekoden."; + result+=" fra kildekoden."; return result; } @@ -158,36 +158,36 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! put after an enum value in the list of all members */ virtual QCString trEnumValue() { return "enum-verdi"; } - + /*! put after an undocumented member in the list of all members */ virtual QCString trDefinedIn() { return "definert i"; } // quick reference sections - /*! This is put above each page as a link to the list of all groups of + /*! 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 "Moduler"; } - + /*! This is put above each page as a link to the class hierarchy */ virtual QCString trClassHierarchy() { return "Klassehierarki"; } - + /*! 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 "Datastrukturer"; } else { - return "Klasseliste"; + return "Klasseliste"; } } - + /*! This is put above each page as a link to the list of documented files */ virtual QCString trFileList() { return "Fil-liste"; } @@ -198,27 +198,27 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! 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 "Datafelt"; + return "Datafelt"; } else { - return "Klassemedlemmer"; + return "Klassemedlemmer"; } } /*! 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 "Globale"; + return "Globale"; } else { - return "Filmedlemmer"; + return "Filmedlemmer"; } } @@ -232,12 +232,12 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! This is put above each page as a link to the search engine. */ virtual QCString trSearch() - { return "Søk"; } + { return "Søk"; } /*! This is an introduction to the class hierarchy. */ virtual QCString trClassHierarchyDescription() { return "Denne arvelisten er grovsortert alfabetisk " - "(ikke nødvendigvis korrekt):"; + "(ikke nødvendigvis korrekt):"; } /*! This is an introduction to the list with all files. */ @@ -251,8 +251,8 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! This is an introduction to the annotated compound list. */ virtual QCString trCompoundListDescription() - { - + { + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return "Her er datastrukturene med korte beskrivelser:"; @@ -281,7 +281,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 result+="klassemedlemmer"; } result+=" med koblinger til "; - if (!extractAll) + if (!extractAll) { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { @@ -292,15 +292,15 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 result+="klassedokumentasjonen for hvert medlem:"; } } - else + else { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { - result+="struct'ene/unionene de hører til:"; + result+="struct'ene/unionene de hører til:"; } else { - result+="klassene de hører til:"; + result+="klassene de hører til:"; } } return result; @@ -310,7 +310,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 { QCString result="Her er en liste over alle "; if (!extractAll) result+="dokumenterte "; - + if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { result+="funksjoner, variabler, definisjoner, enum'er, og typedef'er"; @@ -320,16 +320,16 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 result+="filmedlemmer"; } result+=" med koblinger til "; - if (extractAll) - result+="filene de hører til:"; - else + if (extractAll) + result+="filene de hører til:"; + else result+="dokumentasjonen:"; return result; } /*! This is an introduction to the page with the list of all header files. */ virtual QCString trHeaderFilesDescription() - { return "Her er alle header-filene som utgjør API'et:"; } + { return "Her er alle header-filene som utgjør API'et:"; } /*! This is an introduction to the page with the list of all examples */ virtual QCString trExamplesDescription() @@ -344,37 +344,37 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 { return "Her er en liste over alle moduler:"; } /*! This sentences is used in the annotated class/file lists if no brief - * description is given. + * description is given. */ virtual QCString trNoDescriptionAvailable() { return "Ingen beskrivelse tilgjengelig"; } - - // index titles (the project name is prepended for these) + + // index titles (the project name is prepended for these) /*! This is used in HTML as the title of index.html. */ virtual QCString trDocumentation() { return "Dokumentasjon"; } - /*! This is used in LaTeX as the title of the chapter with the + /*! This is used in LaTeX as the title of the chapter with the * index of all groups. */ virtual QCString trModuleIndex() { return "Modulindeks"; } - /*! This is used in LaTeX as the title of the chapter with the + /*! This is used in LaTeX as the title of the chapter with the * class hierarchy. */ virtual QCString trHierarchicalIndex() { return "Hierarkisk indeks"; } - /*! This is used in LaTeX as the title of the chapter with the + /*! 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 "Datastrukturindeks"; } else @@ -386,7 +386,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! This is used in LaTeX as the title of the chapter with the * list of all files. */ - virtual QCString trFileIndex() + virtual QCString trFileIndex() { return "Filindeks"; } /*! This is used in LaTeX as the title of the chapter containing @@ -399,14 +399,14 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 * the documentation of all classes, structs and unions. */ virtual QCString trClassDocumentation() - { + { if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) { return "Datastrukturdokumentasjon"; } else { - return "Klassedokumentasjon"; + return "Klassedokumentasjon"; } } @@ -431,111 +431,111 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! This is used in LaTeX as the title of the document */ virtual QCString trReferenceManual() { return "Referansemanual"; } - - /*! This is used in the documentation of a file as a header before the + + /*! This is used in the documentation of a file as a header before the * list of defines */ virtual QCString trDefines() { return "Definisjoner"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of function prototypes */ virtual QCString trFuncProtos() { return "Funksjonprototyper"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of typedefs */ virtual QCString trTypedefs() { return "Typedef'er"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of enumerations */ virtual QCString trEnumerations() { return "Enumerasjoner"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of (global) functions */ virtual QCString trFunctions() { return "Funksjoner"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of (global) variables */ virtual QCString trVariables() { return "Variabler"; } - /*! This is used in the documentation of a file as a header before the + /*! This is used in the documentation of a file as a header before the * list of (global) variables */ virtual QCString trEnumerationValues() { return "Enumerasjonsverdier"; } - + /*! This is used in the documentation of a file before the list of * documentation blocks for defines */ virtual QCString trDefineDocumentation() { return "Define-dokumentasjon"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for function prototypes */ virtual QCString trFunctionPrototypeDocumentation() { return "Funksjonsprototypedokumentasjon"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for typedefs */ virtual QCString trTypedefDocumentation() { return "Typedef-dokumentasjon"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for enumeration types */ virtual QCString trEnumerationTypeDocumentation() { return "Enumerasjontype dokumentasjon"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for enumeration values */ virtual QCString trEnumerationValueDocumentation() { return "Enumerasjonsverdi dokumentasjon"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for functions */ virtual QCString trFunctionDocumentation() { return "Funksjonsdokumentasjon"; } - /*! This is used in the documentation of a file/namespace before the list + /*! This is used in the documentation of a file/namespace before the list * of documentation blocks for variables */ virtual QCString trVariableDocumentation() { return "Variabeldokumentasjon"; } - /*! This is used in the documentation of a file/namespace/group before + /*! 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 "Datastrukturer"; + return "Datastrukturer"; } else { - return "Klasser"; + return "Klasser"; } } - /*! This is used in the standard footer of each page and indicates when - * the page was generated + /*! 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)"Generert "+date; if (projName) result+=(QCString)" for "+projName; result+=(QCString)" av"; @@ -553,14 +553,14 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 { return (QCString)"Arvediagram for "+clName+":"; } - + /*! this text is generated when the \\internal command is used. */ virtual QCString trForInternalUseOnly() { return "Kun for intern bruk."; } /*! this text is generated when the \\reimp command is used. */ virtual QCString trReimplementedForInternalReasons() - { return "Reimplementert av interne grunner; API er ikke påvirket."; } + { return "Reimplementert av interne grunner; API er ikke pÃ¥virket."; } /*! this text is generated when the \\warning command is used. */ virtual QCString trWarning() @@ -584,7 +584,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! this text is generated when the \\sa command is used. */ virtual QCString trSeeAlso() - { return "Se også"; } + { return "Se ogsÃ¥"; } /*! this text is generated when the \\param command is used. */ virtual QCString trParameters() @@ -593,7 +593,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 /*! this text is generated when the \\exception command is used. */ virtual QCString trExceptions() { return "Unntak"; } - + /*! this text is used in the title page of a LaTeX document. */ virtual QCString trGeneratedBy() { return "Generert av"; } @@ -601,7 +601,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 ////////////////////////////////////////////////////////////////////////// // new since 0.49-990307 ////////////////////////////////////////////////////////////////////////// - + /*! used as the title of page containing all the index of all namespaces. */ virtual QCString trNamespaceList() { return "Navneromsliste"; } @@ -620,17 +620,17 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 */ virtual QCString trFriends() { return "Venner"; } - + ////////////////////////////////////////////////////////////////////////// // new since 0.49-990405 ////////////////////////////////////////////////////////////////////////// - + /*! used in the class documentation as a header before the list of all - * related classes + * related classes */ virtual QCString trRelatedFunctionDocumentation() { return "Venner og relatert funksjonsdokumentasjon"; } - + ////////////////////////////////////////////////////////////////////////// // new since 0.49-990425 ////////////////////////////////////////////////////////////////////////// @@ -672,7 +672,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 result+=" navneromsreferanse"; return result; } - + virtual QCString trPublicMembers() { return "Public medlemsfunksjoner"; } virtual QCString trPublicSlots() @@ -693,7 +693,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 { return "Private slots"; } virtual QCString trStaticPrivateMembers() { return "Statiske private medlemsfunksjoner"; } - + /*! this function is used to produce a comma-separated list of items. * use generateMarker(i) to indicate where item i should be put. */ @@ -702,23 +702,23 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6 QCString result; int i; // the inherits list contain `numEntries' classes - for (i=0;i