1 /******************************************************************************
5 * Copyright (C) 1997-2012 by Dimitri van Heesch.
7 * Permission to use, copy, modify, and distribute this software and its
8 * documentation under the terms of the GNU General Public License is hereby
9 * granted. No representations are made about the suitability of this software
10 * for any purpose. It is provided "as is" without express or implied warranty.
11 * See the GNU General Public License for more details.
13 * Documents produced by Doxygen are derivative works derived from the
14 * input used in their production; they are not affected by this license.
18 /******************************************************************************
19 * Norwegian translation by Lars Erik Jordet <lejordet@gmail.com>, parts by Frode Nilsen
21 * This is a new translation made from scratch, not based on my older Norwegian translation (for 1.2.2)
23 * Translation notes (in Norwegian)
25 * Jeg har stort sett brukt ord som ligger ganske nær de engelske ekvivalentene,
26 * for eksempel "enumeration" -> "enumerasjon", og i enkelte tilfeller det engelske
27 * ordet direkte, der jeg finner det mer naturlig enn å prøve å stable en setning
28 * på beina på norsk, eller jeg selv foretrekker det engelske ordet (eks: "Header-fil").
29 * Om noen ikke skulle like disse valgene, kontakt meg på mailadressen over.
31 * Doxygen har mange strings som består av sammensatte ord ("Member function description", for eksempel),
32 * som ikke alltid ser like ryddig ut på norsk. Jeg har brukt bindestrek for å få
33 * det til å se presentabelt ut, men om noen har en bedre idé, send til mailadressen over.
36 * Jeg bruker ikke doxygen selv lenger, så det går nok litt i lengste laget mellom oppdateringer...
40 * 2003-12-18: Initial translation
41 * 2004-07-19: Fixup to prepare for 1.3.8 (I had forgotten some functions)
42 * 2006-03-06: Added a .diff from Frode Nilsen, now compatible with 1.4.6.
45 #ifndef TRANSLATOR_NO_H
46 #define TRANSLATOR_NO_H
48 class TranslatorNorwegian : public TranslatorAdapter_1_4_6
52 // --- Language control methods -------------------
54 /*! Used for identification of the language. The identification
55 * should not be translated. It should be replaced by the name
56 * of the language in English using lower-case characters only
57 * (e.g. "czech", "japanese", "russian", etc.). It should be equal to
58 * the identification used in language.cpp.
60 virtual QCString idLanguage()
61 { return "norwegian"; }
63 /*! Used to get the LaTeX command(s) for the language support.
64 * This method should return string with commands that switch
65 * LaTeX to the desired language. For example
66 * <pre>"\\usepackage[german]{babel}\n"
69 * <pre>"\\usepackage{polski}\n"
70 * "\\usepackage[latin2]{inputenc}\n"
71 * "\\usepackage[T1]{fontenc}\n"
74 virtual QCString latexLanguageSupportCommand()
77 "\\usepackage[norwegian]{babel}\n"
78 "\\usepackage[T1]{fontenc}\n";
81 /*! return the language charset. This will be used for the HTML output */
82 virtual QCString idLanguageCharset()
87 // --- Language translation methods -------------------
89 /*! used in the compound documentation before a list of related functions. */
90 virtual QCString trRelatedFunctions()
91 { return "Relaterte funksjoner"; }
93 /*! subscript for the related functions. */
94 virtual QCString trRelatedSubscript()
95 { return "(Merk at disse ikke er medlemsfunksjoner.)"; }
97 /*! header that is put before the detailed description of files, classes and namespaces. */
98 virtual QCString trDetailedDescription()
99 { return "Detaljert beskrivelse"; }
101 /*! header that is put before the list of typedefs. */
102 virtual QCString trMemberTypedefDocumentation()
103 { return "Medlemstypedef-dokumentasjon"; }
105 /*! header that is put before the list of enumerations. */
106 virtual QCString trMemberEnumerationDocumentation()
107 { return "Medlemsenumerasjon-dokumentasjon"; }
109 /*! header that is put before the list of member functions. */
110 virtual QCString trMemberFunctionDocumentation()
111 { return "Medlemsfunksjon-dokumentasjon"; }
113 /*! header that is put before the list of member attributes. */
114 virtual QCString trMemberDataDocumentation()
116 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
118 return "Feltdokumentasjon";
122 return "Medlemsdata-dokumentasjon";
126 /*! this is the text of a link put after brief descriptions. */
127 virtual QCString trMore()
130 /*! put in the class documentation */
131 virtual QCString trListOfAllMembers()
132 { return "Liste over alle medlemmer"; }
134 /*! used as the title of the "list of all members" page of a class */
135 virtual QCString trMemberList()
136 { return "Medlemsliste"; }
138 /*! this is the first part of a sentence that is followed by a class name */
139 virtual QCString trThisIsTheListOfAllMembers()
140 { return "Dette er den fullstendige listen over medlemmer for "; }
142 /*! this is the remainder of the sentence after the class name */
143 virtual QCString trIncludingInheritedMembers()
144 { return ", alle arvede medlemmer inkludert."; }
146 /*! this is put at the author sections at the bottom of man pages.
147 * parameter s is name of the project name.
149 virtual QCString trGeneratedAutomatically(const char *s)
150 { QCString result="Generert automatisk av Doxygen";
151 if (s) result+=(QCString)" for "+s;
152 result+=" fra kildekoden.";
156 /*! put after an enum name in the list of all members */
157 virtual QCString trEnumName()
158 { return "enum-navn"; }
160 /*! put after an enum value in the list of all members */
161 virtual QCString trEnumValue()
162 { return "enum-verdi"; }
164 /*! put after an undocumented member in the list of all members */
165 virtual QCString trDefinedIn()
166 { return "definert i"; }
168 // quick reference sections
170 /*! This is put above each page as a link to the list of all groups of
171 * compounds or files (see the \\group command).
173 virtual QCString trModules()
174 { return "Moduler"; }
176 /*! This is put above each page as a link to the class hierarchy */
177 virtual QCString trClassHierarchy()
178 { return "Klassehierarki"; }
180 /*! This is put above each page as a link to the list of annotated classes */
181 virtual QCString trCompoundList()
183 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
185 return "Datastrukturer";
189 return "Klasseliste";
193 /*! This is put above each page as a link to the list of documented files */
194 virtual QCString trFileList()
195 { return "Fil-liste"; }
197 /*! This is put above each page as a link to the list of all verbatim headers */
198 virtual QCString trHeaderFiles()
199 { return "Header-filer"; }
201 /*! This is put above each page as a link to all members of compounds. */
202 virtual QCString trCompoundMembers()
204 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
210 return "Klassemedlemmer";
214 /*! This is put above each page as a link to all members of files. */
215 virtual QCString trFileMembers()
217 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
223 return "Filmedlemmer";
227 /*! This is put above each page as a link to all related pages. */
228 virtual QCString trRelatedPages()
229 { return "Relaterte sider"; }
231 /*! This is put above each page as a link to all examples. */
232 virtual QCString trExamples()
233 { return "Eksempler"; }
235 /*! This is put above each page as a link to the search engine. */
236 virtual QCString trSearch()
239 /*! This is an introduction to the class hierarchy. */
240 virtual QCString trClassHierarchyDescription()
241 { return "Denne arvelisten er grovsortert alfabetisk "
242 "(ikke nødvendigvis korrekt):";
245 /*! This is an introduction to the list with all files. */
246 virtual QCString trFileListDescription(bool extractAll)
248 QCString result="Her er en liste over alle ";
249 if (!extractAll) result+="dokumenterte ";
250 result+="filer med korte beskrivelser:";
254 /*! This is an introduction to the annotated compound list. */
255 virtual QCString trCompoundListDescription()
258 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
260 return "Her er datastrukturene med korte beskrivelser:";
264 return "Her er klasser, struct'er, "
265 "unioner og interface'er med korte beskrivelser:";
269 /*! This is an introduction to the page with all class members. */
270 virtual QCString trCompoundMembersDescription(bool extractAll)
272 QCString result="Her er en liste over alle ";
275 result+="dokumenterte ";
277 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
279 result+="struct- og unionfelter";
283 result+="klassemedlemmer";
285 result+=" med koblinger til ";
288 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
290 result+="struct/union dokumentasjon for hvert felt:";
294 result+="klassedokumentasjonen for hvert medlem:";
299 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
301 result+="struct'ene/unionene de hører til:";
305 result+="klassene de hører til:";
310 /*! This is an introduction to the page with all file members. */
311 virtual QCString trFileMembersDescription(bool extractAll)
313 QCString result="Her er en liste over alle ";
314 if (!extractAll) result+="dokumenterte ";
316 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
318 result+="funksjoner, variabler, definisjoner, enum'er, og typedef'er";
322 result+="filmedlemmer";
324 result+=" med koblinger til ";
326 result+="filene de hører til:";
328 result+="dokumentasjonen:";
332 /*! This is an introduction to the page with the list of all header files. */
333 virtual QCString trHeaderFilesDescription()
334 { return "Her er alle header-filene som utgjør API'et:"; }
336 /*! This is an introduction to the page with the list of all examples */
337 virtual QCString trExamplesDescription()
338 { return "Her er en liste over alle eksemplene:"; }
340 /*! This is an introduction to the page with the list of related pages */
341 virtual QCString trRelatedPagesDescription()
342 { return "Her er en liste over alle relaterte dokumentasjonssider:"; }
344 /*! This is an introduction to the page with the list of class/file groups */
345 virtual QCString trModulesDescription()
346 { return "Her er en liste over alle moduler:"; }
348 /*! This sentences is used in the annotated class/file lists if no brief
349 * description is given.
351 virtual QCString trNoDescriptionAvailable()
352 { return "Ingen beskrivelse tilgjengelig"; }
354 // index titles (the project name is prepended for these)
357 /*! This is used in HTML as the title of index.html. */
358 virtual QCString trDocumentation()
359 { return "Dokumentasjon"; }
361 /*! This is used in LaTeX as the title of the chapter with the
362 * index of all groups.
364 virtual QCString trModuleIndex()
365 { return "Modulindeks"; }
367 /*! This is used in LaTeX as the title of the chapter with the
370 virtual QCString trHierarchicalIndex()
371 { return "Hierarkisk indeks"; }
373 /*! This is used in LaTeX as the title of the chapter with the
374 * annotated compound index.
376 virtual QCString trCompoundIndex()
378 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
380 return "Datastrukturindeks";
384 return "Klasseindeks";
388 /*! This is used in LaTeX as the title of the chapter with the
391 virtual QCString trFileIndex()
392 { return "Filindeks"; }
394 /*! This is used in LaTeX as the title of the chapter containing
395 * the documentation of all groups.
397 virtual QCString trModuleDocumentation()
398 { return "Moduldokumentasjon"; }
400 /*! This is used in LaTeX as the title of the chapter containing
401 * the documentation of all classes, structs and unions.
403 virtual QCString trClassDocumentation()
405 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
407 return "Datastrukturdokumentasjon";
411 return "Klassedokumentasjon";
415 /*! This is used in LaTeX as the title of the chapter containing
416 * the documentation of all files.
418 virtual QCString trFileDocumentation()
419 { return "Fildokumentasjon"; }
421 /*! This is used in LaTeX as the title of the chapter containing
422 * the documentation of all examples.
424 virtual QCString trExampleDocumentation()
425 { return "Eksempeldokumentasjon"; }
427 /*! This is used in LaTeX as the title of the chapter containing
428 * the documentation of all related pages.
430 virtual QCString trPageDocumentation()
431 { return "Sidedokumentasjon"; }
433 /*! This is used in LaTeX as the title of the document */
434 virtual QCString trReferenceManual()
435 { return "Referansemanual"; }
437 /*! This is used in the documentation of a file as a header before the
440 virtual QCString trDefines()
441 { return "Definisjoner"; }
443 /*! This is used in the documentation of a file as a header before the
444 * list of function prototypes
446 virtual QCString trFuncProtos()
447 { return "Funksjonprototyper"; }
449 /*! This is used in the documentation of a file as a header before the
452 virtual QCString trTypedefs()
453 { return "Typedef'er"; }
455 /*! This is used in the documentation of a file as a header before the
456 * list of enumerations
458 virtual QCString trEnumerations()
459 { return "Enumerasjoner"; }
461 /*! This is used in the documentation of a file as a header before the
462 * list of (global) functions
464 virtual QCString trFunctions()
465 { return "Funksjoner"; }
467 /*! This is used in the documentation of a file as a header before the
468 * list of (global) variables
470 virtual QCString trVariables()
471 { return "Variabler"; }
473 /*! This is used in the documentation of a file as a header before the
474 * list of (global) variables
476 virtual QCString trEnumerationValues()
477 { return "Enumerasjonsverdier"; }
479 /*! This is used in the documentation of a file before the list of
480 * documentation blocks for defines
482 virtual QCString trDefineDocumentation()
483 { return "Define-dokumentasjon"; }
485 /*! This is used in the documentation of a file/namespace before the list
486 * of documentation blocks for function prototypes
488 virtual QCString trFunctionPrototypeDocumentation()
489 { return "Funksjonsprototypedokumentasjon"; }
491 /*! This is used in the documentation of a file/namespace before the list
492 * of documentation blocks for typedefs
494 virtual QCString trTypedefDocumentation()
495 { return "Typedef-dokumentasjon"; }
497 /*! This is used in the documentation of a file/namespace before the list
498 * of documentation blocks for enumeration types
500 virtual QCString trEnumerationTypeDocumentation()
501 { return "Enumerasjontype dokumentasjon"; }
503 /*! This is used in the documentation of a file/namespace before the list
504 * of documentation blocks for enumeration values
506 virtual QCString trEnumerationValueDocumentation()
507 { return "Enumerasjonsverdi dokumentasjon"; }
509 /*! This is used in the documentation of a file/namespace before the list
510 * of documentation blocks for functions
512 virtual QCString trFunctionDocumentation()
513 { return "Funksjonsdokumentasjon"; }
515 /*! This is used in the documentation of a file/namespace before the list
516 * of documentation blocks for variables
518 virtual QCString trVariableDocumentation()
519 { return "Variabeldokumentasjon"; }
521 /*! This is used in the documentation of a file/namespace/group before
522 * the list of links to documented compounds
524 virtual QCString trCompounds()
526 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
528 return "Datastrukturer";
536 /*! This is used in the standard footer of each page and indicates when
537 * the page was generated
539 virtual QCString trGeneratedAt(const char *date,const char *projName)
541 QCString result=(QCString)"Generert "+date;
542 if (projName) result+=(QCString)" for "+projName;
543 result+=(QCString)" av";
546 /*! This is part of the sentence used in the standard footer of each page.
548 virtual QCString trWrittenBy()
553 /*! this text is put before a class diagram */
554 virtual QCString trClassDiagram(const char *clName)
556 return (QCString)"Arvediagram for "+clName+":";
559 /*! this text is generated when the \\internal command is used. */
560 virtual QCString trForInternalUseOnly()
561 { return "Kun for intern bruk."; }
563 /*! this text is generated when the \\reimp command is used. */
564 virtual QCString trReimplementedForInternalReasons()
565 { return "Reimplementert av interne grunner; API er ikke påvirket."; }
567 /*! this text is generated when the \\warning command is used. */
568 virtual QCString trWarning()
569 { return "Advarsel"; }
571 /*! this text is generated when the \\bug command is used. */
572 virtual QCString trBugsAndLimitations()
573 { return "Feil og begrensninger"; }
575 /*! this text is generated when the \\version command is used. */
576 virtual QCString trVersion()
577 { return "Versjon"; }
579 /*! this text is generated when the \\date command is used. */
580 virtual QCString trDate()
583 /*! this text is generated when the \\return command is used. */
584 virtual QCString trReturns()
585 { return "Returnerer"; }
587 /*! this text is generated when the \\sa command is used. */
588 virtual QCString trSeeAlso()
589 { return "Se også"; }
591 /*! this text is generated when the \\param command is used. */
592 virtual QCString trParameters()
593 { return "Parametre"; }
595 /*! this text is generated when the \\exception command is used. */
596 virtual QCString trExceptions()
599 /*! this text is used in the title page of a LaTeX document. */
600 virtual QCString trGeneratedBy()
601 { return "Generert av"; }
603 //////////////////////////////////////////////////////////////////////////
604 // new since 0.49-990307
605 //////////////////////////////////////////////////////////////////////////
607 /*! used as the title of page containing all the index of all namespaces. */
608 virtual QCString trNamespaceList()
609 { return "Navneromsliste"; }
611 /*! used as an introduction to the namespace list */
612 virtual QCString trNamespaceListDescription(bool extractAll)
614 QCString result="Her er en liste over alle ";
615 if (!extractAll) result+="dokumenterte ";
616 result+="navnerom med korte beskrivelser:";
620 /*! used in the class documentation as a header before the list of all
623 virtual QCString trFriends()
626 //////////////////////////////////////////////////////////////////////////
627 // new since 0.49-990405
628 //////////////////////////////////////////////////////////////////////////
630 /*! used in the class documentation as a header before the list of all
633 virtual QCString trRelatedFunctionDocumentation()
634 { return "Venner og relatert funksjonsdokumentasjon"; }
636 //////////////////////////////////////////////////////////////////////////
637 // new since 0.49-990425
638 //////////////////////////////////////////////////////////////////////////
640 /*! used as the title of the HTML page of a class/struct/union */
641 virtual QCString trCompoundReference(const char *clName,
642 ClassDef::CompoundType compType,
645 QCString result=(QCString)clName;
648 case ClassDef::Class: result+=" Klasse"; break;
649 case ClassDef::Struct: result+=" Struct"; break;
650 case ClassDef::Union: result+=" Union"; break;
651 case ClassDef::Interface: result+=" Grensesnitt"; break;
652 case ClassDef::Exception: result+=" Unntak"; break;
653 case ClassDef::Protocol: result+=" Protocol"; break;
654 case ClassDef::Category: result+=" Category"; break;
656 if (isTemplate) result+=" Mal";
657 result+=" Referanse";
661 /*! used as the title of the HTML page of a file */
662 virtual QCString trFileReference(const char *fileName)
664 QCString result=fileName;
665 result+=" filreferanse";
669 /*! used as the title of the HTML page of a namespace */
670 virtual QCString trNamespaceReference(const char *namespaceName)
672 QCString result=namespaceName;
673 result+=" navneromsreferanse";
677 virtual QCString trPublicMembers()
678 { return "Public medlemsfunksjoner"; }
679 virtual QCString trPublicSlots()
680 { return "Public slots"; }
681 virtual QCString trSignals()
682 { return "Signaler"; }
683 virtual QCString trStaticPublicMembers()
684 { return "Statiske public medlemsfunksjoner"; }
685 virtual QCString trProtectedMembers()
686 { return "Protected memdlemsfunksjoner"; }
687 virtual QCString trProtectedSlots()
688 { return "Protected slots"; }
689 virtual QCString trStaticProtectedMembers()
690 { return "Statiske protected medlemsfunksjoner"; }
691 virtual QCString trPrivateMembers()
692 { return "Private medlemsfunksjoner"; }
693 virtual QCString trPrivateSlots()
694 { return "Private slots"; }
695 virtual QCString trStaticPrivateMembers()
696 { return "Statiske private medlemsfunksjoner"; }
698 /*! this function is used to produce a comma-separated list of items.
699 * use generateMarker(i) to indicate where item i should be put.
701 virtual QCString trWriteList(int numEntries)
705 // the inherits list contain `numEntries' classes
706 for (i=0;i<numEntries;i++)
708 // use generateMarker to generate placeholders for the class links!
709 result+=generateMarker(i); // generate marker for entry i in the list
710 // (order is left to right)
712 if (i!=numEntries-1) // not the last entry, so we need a separator
714 if (i<numEntries-2) // not the fore last entry
716 else // the fore last entry
723 /*! used in class documentation to produce a list of base classes,
724 * if class diagrams are disabled.
726 virtual QCString trInheritsList(int numEntries)
728 return "Arver "+trWriteList(numEntries)+".";
731 /*! used in class documentation to produce a list of super classes,
732 * if class diagrams are disabled.
734 virtual QCString trInheritedByList(int numEntries)
736 return "Arvet av "+trWriteList(numEntries)+".";
739 /*! used in member documentation blocks to produce a list of
740 * members that are hidden by this one.
742 virtual QCString trReimplementedFromList(int numEntries)
744 return "Reimplementert fra "+trWriteList(numEntries)+".";
747 /*! used in member documentation blocks to produce a list of
748 * all member that overwrite the implementation of this member.
750 virtual QCString trReimplementedInList(int numEntries)
752 return "Reimplementert i "+trWriteList(numEntries)+".";
755 /*! This is put above each page as a link to all members of namespaces. */
756 virtual QCString trNamespaceMembers()
757 { return "Navneromsmedlemmer"; }
759 /*! This is an introduction to the page with all namespace members */
760 virtual QCString trNamespaceMemberDescription(bool extractAll)
762 QCString result="Her er en liste over alle ";
763 if (!extractAll) result+="dokumenterte ";
764 result+="navneromsmedlemmer med koblinger til ";
766 result+="navneromsdokumentasjonen for hvert medlem:";
768 result+="navnerommet de hører til:";
771 /*! This is used in LaTeX as the title of the chapter with the
772 * index of all namespaces.
774 virtual QCString trNamespaceIndex()
775 { return "Navneromsindeks"; }
777 /*! This is used in LaTeX as the title of the chapter containing
778 * the documentation of all namespaces.
780 virtual QCString trNamespaceDocumentation()
781 { return "Navneromsdokumentasjon"; }
783 //////////////////////////////////////////////////////////////////////////
784 // new since 0.49-990522
785 //////////////////////////////////////////////////////////////////////////
787 /*! This is used in the documentation before the list of all
788 * namespaces in a file.
790 virtual QCString trNamespaces()
791 { return "Navnerom"; }
793 //////////////////////////////////////////////////////////////////////////
794 // new since 0.49-990728
795 //////////////////////////////////////////////////////////////////////////
797 /*! This is put at the bottom of a class documentation page and is
798 * followed by a list of files that were used to generate the page.
800 virtual QCString trGeneratedFromFiles(ClassDef::CompoundType compType,
802 { // here s is one of " Class", " Struct" or " Union"
803 // single is true implies a single file
804 QCString result=(QCString)"Dokumentasjonen for ";
807 case ClassDef::Class: result+="denne klasse"; break;
808 case ClassDef::Struct: result+="denne struct"; break;
809 case ClassDef::Union: result+="denne union"; break;
810 case ClassDef::Interface: result+="dette interface"; break;
811 case ClassDef::Exception: result+="dette unntak"; break;
812 case ClassDef::Protocol: result+="denne protocol"; break;
813 case ClassDef::Category: result+="denne category"; break;
815 result+=" ble generert fra følgende fil";
816 if (single) result+=":"; else result+="er:";
820 /*! This is in the (quick) index as a link to the alphabetical compound
823 virtual QCString trAlphabeticalList()
824 { return "Alfabetisk Liste"; }
826 //////////////////////////////////////////////////////////////////////////
827 // new since 0.49-990901
828 //////////////////////////////////////////////////////////////////////////
830 /*! This is used as the heading text for the retval command. */
831 virtual QCString trReturnValues()
832 { return "Returverdier"; }
834 /*! This is in the (quick) index as a link to the main page (index.html)
836 virtual QCString trMainPage()
837 { return "Hovedside"; }
839 /*! This is used in references to page that are put in the LaTeX
840 * documentation. It should be an abbreviation of the word page.
842 virtual QCString trPageAbbreviation()
845 //////////////////////////////////////////////////////////////////////////
846 // new since 0.49-991003
847 //////////////////////////////////////////////////////////////////////////
849 virtual QCString trSources()
853 virtual QCString trDefinedAtLineInSourceFile()
855 return "Definisjon på linje @0 i filen @1.";
857 virtual QCString trDefinedInSourceFile()
859 return "Definisjon i filen @0.";
862 //////////////////////////////////////////////////////////////////////////
863 // new since 0.49-991205
864 //////////////////////////////////////////////////////////////////////////
866 virtual QCString trDeprecated()
871 //////////////////////////////////////////////////////////////////////////
873 //////////////////////////////////////////////////////////////////////////
875 /*! this text is put before a collaboration diagram */
876 virtual QCString trCollaborationDiagram(const char *clName)
878 return (QCString)"Samarbeidsdiagram for "+clName+":";
880 /*! this text is put before an include dependency graph */
881 virtual QCString trInclDepGraph(const char *fName)
883 return (QCString)"Avhengighetsgraf for "+fName+":";
886 /*! header that is put before the list of constructor/destructors. */
887 virtual QCString trConstructorDocumentation()
889 return "Konstruktør- & destruktør-dokumentasjon";
891 /*! Used in the file documentation to point to the corresponding sources. */
892 virtual QCString trGotoSourceCode()
894 return "Gå til kildekoden til denne filen.";
896 /*! Used in the file sources to point to the corresponding documentation. */
897 virtual QCString trGotoDocumentation()
899 return "Gå til dokumentasjonen til denne filen.";
901 /*! Text for the \\pre command */
902 virtual QCString trPrecondition()
904 return "Forhåndsbetingelse";
906 /*! Text for the \\post command */
907 virtual QCString trPostcondition()
909 return "Etterbetingelse";
911 /*! Text for the \\invariant command */
912 virtual QCString trInvariant()
916 /*! Text shown before a multi-line variable/enum initialization */
917 virtual QCString trInitialValue()
919 return "Startverdi:";
921 /*! Text used the source code in the file index */
922 virtual QCString trCode()
926 virtual QCString trGraphicalHierarchy()
928 return "Grafisk klassehierarki";
930 virtual QCString trGotoGraphicalHierarchy()
932 return "Gå til det grafiske klasse hierarkiet";
934 virtual QCString trGotoTextualHierarchy()
936 return "Gå til tekst-klassehierarki";
938 virtual QCString trPageIndex()
943 //////////////////////////////////////////////////////////////////////////
945 //////////////////////////////////////////////////////////////////////////
947 virtual QCString trNote()
951 virtual QCString trPublicTypes()
953 return "Public typer";
955 virtual QCString trPublicAttribs()
957 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
963 return "Public attributter";
966 virtual QCString trStaticPublicAttribs()
968 return "Statiske public attributter";
970 virtual QCString trProtectedTypes()
972 return "Protected typer";
974 virtual QCString trProtectedAttribs()
976 return "Protected attributter";
978 virtual QCString trStaticProtectedAttribs()
980 return "Statiske protected attributter";
982 virtual QCString trPrivateTypes()
984 return "Private typer";
986 virtual QCString trPrivateAttribs()
988 return "Private attributter";
990 virtual QCString trStaticPrivateAttribs()
992 return "Statiske private attributter";
995 //////////////////////////////////////////////////////////////////////////
997 //////////////////////////////////////////////////////////////////////////
999 /*! Used as a marker that is put before a todo item */
1000 virtual QCString trTodo()
1004 /*! Used as the header of the todo list */
1005 virtual QCString trTodoList()
1007 return "Todo-liste";
1010 //////////////////////////////////////////////////////////////////////////
1012 //////////////////////////////////////////////////////////////////////////
1014 virtual QCString trReferencedBy()
1016 return "Referert av";
1018 virtual QCString trRemarks()
1022 virtual QCString trAttention()
1026 virtual QCString trInclByDepGraph()
1028 return "Denne grafen viser hvilke filer som direkte eller "
1029 "indirekte inkluderer denne filen:";
1031 virtual QCString trSince()
1036 //////////////////////////////////////////////////////////////////////////
1038 //////////////////////////////////////////////////////////////////////////
1040 /*! title of the graph legend page */
1041 virtual QCString trLegendTitle()
1043 return "Symbolforklaring";
1045 /*! page explaining how the dot graph's should be interpreted */
1046 virtual QCString trLegendDocs()
1049 "Denne siden forklarer hvordan man tolker grafene doxygen genererer.<p>\n"
1050 "Vi baserer oss på følgende eksempel:\n"
1052 "/*! Usynlig klasse pga. trunkasjon */\n"
1053 "class Invisible { };\n\n"
1054 "/*! Trunkert klasse, arve-relasjon er skjult */\n"
1055 "class Truncated : public Invisible { };\n\n"
1056 "/* Klasse som ikke er dokumentert med doxygen-kommentarer */"
1057 "class Undocumented { };\n\n"
1058 "/*! Klasse med public-arv */\n"
1059 "class PublicBase : public Truncated { };\n\n"
1060 "/*! A template class */\n"
1061 "template<class T> class Templ { };\n\n"
1062 "/*! Klasse med protected-arv */\n"
1063 "class ProtectedBase { };\n\n"
1064 "/*! Klasse med private-arv */\n"
1065 "class PrivateBase { };\n\n"
1066 "/*! Klasse som blir brukt av klassen Inherited */\n"
1067 "class Used { };\n\n"
1068 "/*! Super-klasse som arver flere andre klasser */\n"
1069 "class Inherited : public PublicBase,\n"
1070 " protected ProtectedBase,\n"
1071 " private PrivateBase,\n"
1072 " public Undocumented,\n"
1073 " public Templ<int>\n"
1076 " Used *m_usedClass;\n"
1079 "Hvis \\c MAX_DOT_GRAPH_HEIGHT er satt til 200 i "
1080 "konfigurasjonsfila vil dette resultere i følgende graf:"
1081 "<p><center><img src=\"graph_legend."+Config_getEnum("DOT_IMAGE_FORMAT")+"\"></center>\n"
1083 "Boksene i grafen over betyr følgende:\n"
1085 "<li>En fylt svart boks representerer klassen grafen "
1086 "er generert for.\n"
1087 "<li>En boks med svart ramme angir en dokumentert struct eller klasse.\n"
1088 "<li>En boks med grå ramme angir en udokumentert struct eller klasse.\n"
1089 "<li>En boks med rød ramme angir en dokumentert struct eller klasse "
1090 "der ikke alle relasjoner er vist. En graf blir trunkert om den ikke "
1091 "passer innenfor de spesifiserte rammene.\n"
1093 "Pilene i grafen har følgende betydning:\n"
1095 "<li>En mørk blå pil brukes til å visualisere public-arv mellom to klasser.\n"
1096 "<li>En mørk grønn pil brukes for protected-arv.\n"
1097 "<li>En mørk rød pil angir private-arv.\n"
1098 "<li>En stiplet lilla pil angir at en klasse er inkludert eller brukt "
1099 "i en annen klasse. Pilen er merket med variablen(e) klassen "
1100 "er tilgjengelig gjennom.\n"
1103 /*! text for the link to the legend page */
1104 virtual QCString trLegend()
1106 return "symbolforklaring";
1109 //////////////////////////////////////////////////////////////////////////
1111 //////////////////////////////////////////////////////////////////////////
1113 /*! Used as a marker that is put before a test item */
1114 virtual QCString trTest()
1118 /*! Used as the header of the test list */
1119 virtual QCString trTestList()
1121 return "Test-liste";
1124 //////////////////////////////////////////////////////////////////////////
1126 //////////////////////////////////////////////////////////////////////////
1128 /*! Used as a section header for KDE-2 IDL methods */
1129 virtual QCString trDCOPMethods()
1131 return "DCOP-metoder";
1134 //////////////////////////////////////////////////////////////////////////
1136 //////////////////////////////////////////////////////////////////////////
1138 /*! Used as a section header for IDL properties */
1139 virtual QCString trProperties()
1141 return "Egenskaper";
1143 /*! Used as a section header for IDL property documentation */
1144 virtual QCString trPropertyDocumentation()
1146 return "Egenskaps-dokumentasjon";
1149 //////////////////////////////////////////////////////////////////////////
1151 //////////////////////////////////////////////////////////////////////////
1153 /*! Used for Java interfaces in the summary section of Java packages */
1154 virtual QCString trInterfaces()
1156 return "Grensesnitt";
1158 /*! Used for Java classes in the summary section of Java packages */
1159 virtual QCString trClasses()
1161 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
1163 return "Datastrukturer";
1170 /*! Used as the title of a Java package */
1171 virtual QCString trPackage(const char *name)
1173 return (QCString)"Package "+name;
1175 /*! Title of the package index page */
1176 virtual QCString trPackageList()
1178 return "Pakke-liste";
1180 /*! The description of the package index page */
1181 virtual QCString trPackageListDescription()
1183 return "Her er pakkene med korte beskrivelser (om tilgjengelig):";
1185 /*! The link name in the Quick links header for each page */
1186 virtual QCString trPackages()
1190 /*! Used as a chapter title for Latex & RTF output */
1191 virtual QCString trPackageDocumentation()
1193 return "Pakke-dokumentasjon";
1195 /*! Text shown before a multi-line define */
1196 virtual QCString trDefineValue()
1201 //////////////////////////////////////////////////////////////////////////
1203 //////////////////////////////////////////////////////////////////////////
1205 /*! Used as a marker that is put before a \\bug item */
1206 virtual QCString trBug()
1210 /*! Used as the header of the bug list */
1211 virtual QCString trBugList()
1213 return "Feil-liste";
1216 //////////////////////////////////////////////////////////////////////////
1218 //////////////////////////////////////////////////////////////////////////
1220 /*! Used as ansicpg for RTF file
1222 * The following table shows the correlation of Charset name, Charset Value and
1225 * Charset Name Charset Value(hex) Codepage number
1226 * ------------------------------------------------------
1227 * DEFAULT_CHARSET 1 (x01)
1228 * SYMBOL_CHARSET 2 (x02)
1229 * OEM_CHARSET 255 (xFF)
1230 * ANSI_CHARSET 0 (x00) 1252
1231 * RUSSIAN_CHARSET 204 (xCC) 1251
1232 * EE_CHARSET 238 (xEE) 1250
1233 * GREEK_CHARSET 161 (xA1) 1253
1234 * TURKISH_CHARSET 162 (xA2) 1254
1235 * BALTIC_CHARSET 186 (xBA) 1257
1236 * HEBREW_CHARSET 177 (xB1) 1255
1237 * ARABIC _CHARSET 178 (xB2) 1256
1238 * SHIFTJIS_CHARSET 128 (x80) 932
1239 * HANGEUL_CHARSET 129 (x81) 949
1240 * GB2313_CHARSET 134 (x86) 936
1241 * CHINESEBIG5_CHARSET 136 (x88) 950
1245 virtual QCString trRTFansicp()
1251 /*! Used as ansicpg for RTF fcharset
1252 * \see trRTFansicp() for a table of possible values.
1254 virtual QCString trRTFCharSet()
1259 /*! Used as header RTF general index */
1260 virtual QCString trRTFGeneralIndex()
1265 /*! This is used for translation of the word that will possibly
1266 * be followed by a single name or by a list of names
1269 virtual QCString trClass(bool first_capital, bool singular)
1271 QCString result((first_capital ? "Klasse" : "klasse"));
1272 if (!singular) result+="r";
1276 /*! This is used for translation of the word that will possibly
1277 * be followed by a single name or by a list of names
1280 virtual QCString trFile(bool first_capital, bool singular)
1282 QCString result((first_capital ? "Fil" : "fil"));
1283 if (!singular) result+="er";
1287 /*! This is used for translation of the word that will possibly
1288 * be followed by a single name or by a list of names
1291 virtual QCString trNamespace(bool first_capital, bool singular)
1293 QCString result((first_capital ? "Navnerom" : "navnerom"));
1294 if (!singular) result+="";
1298 /*! This is used for translation of the word that will possibly
1299 * be followed by a single name or by a list of names
1302 virtual QCString trGroup(bool first_capital, bool singular)
1304 QCString result((first_capital ? "Gruppe" : "gruppe"));
1305 if (!singular) result+="r";
1309 /*! This is used for translation of the word that will possibly
1310 * be followed by a single name or by a list of names
1313 virtual QCString trPage(bool first_capital, bool singular)
1315 QCString result((first_capital ? "Side" : "side"));
1316 if (!singular) result+="r";
1320 /*! This is used for translation of the word that will possibly
1321 * be followed by a single name or by a list of names
1324 virtual QCString trMember(bool first_capital, bool singular)
1326 QCString result((first_capital ? "Medlem" : "medlem"));
1327 if (!singular) result+="mer";
1331 /*! This is used for translation of the word that will possibly
1332 * be followed by a single name or by a list of names
1335 virtual QCString trField(bool first_capital, bool singular)
1337 QCString result((first_capital ? "Felt" : "felt"));
1338 if (!singular) result+="";
1342 /*! This is used for translation of the word that will possibly
1343 * be followed by a single name or by a list of names
1346 virtual QCString trGlobal(bool first_capital, bool singular)
1348 QCString result((first_capital ? "Global" : "global"));
1349 if (!singular) result+="e";
1353 //////////////////////////////////////////////////////////////////////////
1355 //////////////////////////////////////////////////////////////////////////
1357 /*! This text is generated when the \\author command is used and
1358 * for the author section in man pages. */
1359 virtual QCString trAuthor(bool first_capital, bool singular)
1361 QCString result((first_capital ? "Forfatter" : "forfatter"));
1362 if (!singular) result+="e";
1366 //////////////////////////////////////////////////////////////////////////
1368 //////////////////////////////////////////////////////////////////////////
1370 /*! This text is put before the list of members referenced by a member
1372 virtual QCString trReferences()
1374 return "Referanser";
1377 //////////////////////////////////////////////////////////////////////////
1379 //////////////////////////////////////////////////////////////////////////
1381 /*! used in member documentation blocks to produce a list of
1382 * members that are implemented by this one.
1384 virtual QCString trImplementedFromList(int numEntries)
1386 return "Implementerer "+trWriteList(numEntries)+".";
1389 /*! used in member documentation blocks to produce a list of
1390 * all members that implement this abstract member.
1392 virtual QCString trImplementedInList(int numEntries)
1394 return "Implementert i "+trWriteList(numEntries)+".";
1397 //////////////////////////////////////////////////////////////////////////
1399 //////////////////////////////////////////////////////////////////////////
1401 /*! used in RTF documentation as a heading for the Table
1404 virtual QCString trRTFTableOfContents()
1406 return "Innholdsfortegnelse";
1409 //////////////////////////////////////////////////////////////////////////
1411 //////////////////////////////////////////////////////////////////////////
1413 /*! Used as the header of the list of item that have been
1414 * flagged deprecated
1416 virtual QCString trDeprecatedList()
1418 return "Liste over foreldede enheter";
1421 //////////////////////////////////////////////////////////////////////////
1423 //////////////////////////////////////////////////////////////////////////
1425 /*! Used as a header for declaration section of the events found in
1428 virtual QCString trEvents()
1432 /*! Header used for the documentation section of a class' events. */
1433 virtual QCString trEventDocumentation()
1435 return "Hendelsesdokumentasjon";
1438 //////////////////////////////////////////////////////////////////////////
1440 //////////////////////////////////////////////////////////////////////////
1442 /*! Used as a heading for a list of Java class types with package scope.
1444 virtual QCString trPackageTypes()
1446 return "Pakketyper";
1448 /*! Used as a heading for a list of Java class functions with package
1451 virtual QCString trPackageMembers()
1453 return "Pakkefunksjoner";
1455 /*! Used as a heading for a list of static Java class functions with
1458 virtual QCString trStaticPackageMembers()
1460 return "Statiske Pakkefunksjoner";
1462 /*! Used as a heading for a list of Java class variables with package
1465 virtual QCString trPackageAttribs()
1467 return "Pakkeattributter";
1469 /*! Used as a heading for a list of static Java class variables with
1472 virtual QCString trStaticPackageAttribs()
1474 return "Statiske Pakkeattributter";
1477 //////////////////////////////////////////////////////////////////////////
1479 //////////////////////////////////////////////////////////////////////////
1481 /*! Used in the quick index of a class/file/namespace member list page
1482 * to link to the unfiltered list of all members.
1484 virtual QCString trAll()
1488 /*! Put in front of the call graph for a function. */
1489 virtual QCString trCallGraph()
1491 return "Her er kall-grafen for denne funksjonen:";
1494 //////////////////////////////////////////////////////////////////////////
1496 //////////////////////////////////////////////////////////////////////////
1498 /*! When the search engine is enabled this text is put in the header
1499 * of each page before the field where one can enter the text to search
1502 virtual QCString trSearchForIndex()
1506 /*! This string is used as the title for the page listing the search
1509 virtual QCString trSearchResultsTitle()
1511 return "Søkeresultater";
1513 /*! This string is put just before listing the search results. The
1514 * text can be different depending on the number of documents found.
1515 * Inside the text you can put the special marker $num to insert
1516 * the number representing the actual number of search results.
1517 * The @a numDocuments parameter can be either 0, 1 or 2, where the
1518 * value 2 represents 2 or more matches. HTML markup is allowed inside
1519 * the returned string.
1521 virtual QCString trSearchResults(int numDocuments)
1523 if (numDocuments==0)
1525 return "Beklager, men ingen dokumenter ble funnet.";
1527 else if (numDocuments==1)
1529 return "Fant <b>ett</b> dokument som passet ditt søk.";
1533 return "Fant <b>$num</b> dokumenter som passet ditt søk. "
1534 "Viser beste treff først.";
1537 /*! This string is put before the list of matched words, for each search
1538 * result. What follows is the list of words that matched the query.
1540 virtual QCString trSearchMatches()
1545 //////////////////////////////////////////////////////////////////////////
1547 //////////////////////////////////////////////////////////////////////////
1549 /*! This is used in HTML as the title of page with source code for file filename
1551 virtual QCString trSourceFile(QCString& filename)
1553 return "Kildefil " + filename;
1556 //////////////////////////////////////////////////////////////////////////
1558 //////////////////////////////////////////////////////////////////////////
1560 /*! This is used as the name of the chapter containing the directory
1563 virtual QCString trDirIndex()
1564 { return "Katalog hierarki"; }
1566 /*! This is used as the name of the chapter containing the documentation
1567 * of the directories.
1569 virtual QCString trDirDocumentation()
1570 { return "Katalogdokumentasjon"; }
1572 /*! This is used as the title of the directory index and also in the
1573 * Quick links of an HTML page, to link to the directory hierarchy.
1575 virtual QCString trDirectories()
1576 { return "Kataloger"; }
1578 /*! This returns a sentences that introduces the directory hierarchy.
1579 * and the fact that it is sorted alphabetically per level
1581 virtual QCString trDirDescription()
1582 { return "Denne katalogen er grovsortert alfabetisk "
1583 "(ikke nødvendigvis korrekt).";
1586 /*! This returns the title of a directory page. The name of the
1587 * directory is passed via \a dirName.
1589 virtual QCString trDirReference(const char *dirName)
1590 { QCString result=dirName; result+=" Katalog referanse"; return result; }
1592 /*! This returns the word directory with or without starting capital
1593 * (\a first_capital) and in sigular or plural form (\a singular).
1595 virtual QCString trDir(bool first_capital, bool singular)
1597 QCString result((first_capital ? "Katalog" : "katalog"));
1598 if (!singular) result+="er";
1602 //////////////////////////////////////////////////////////////////////////
1604 //////////////////////////////////////////////////////////////////////////
1606 /*! This text is added to the documentation when the \\overload command
1607 * is used for a overloaded function.
1609 virtual QCString trOverloadText()
1611 return "Dette er en overloaded medlemsfunksjon, "
1612 "generert for deg. Den skiller seg ut fra "
1613 "funksjonen ovenfor i argument(ene) den aksepterer.";