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.
19 ==================================================================================
20 Svensk översättning av:
21 Samuel Hägglund <sahag96@ite.mh.se>
22 Xet Erixon <xet@xeqt.com>
23 Mikael Hallin <mikaelhallin@yahoo.se> 2003-07-28
24 ==================================================================================
27 * Omskrivningar av en hel del ordval, t.ex.
29 compound inhängnad sammansatt
30 structs structs strukter
35 * Alla översättnings-strängar returnerar i alla fall en något så när vettig
39 * Det verkade som vi glömt en del mellanslag i vissa strängar vilket resulterade
40 i att en del ord blev ihopskrivna.
42 * Bytt en del ordval igen...
44 reference manual Uppslagsbok referensmanual
46 * Skrivit ihop en del ord som innan hade bindestreck
47 * En del nya översättningar är tillagda.
48 * Gamla översättningar borttagna
50 ===================================================================================
52 Slot: nån hygglig svensk översättning???
54 Skicka gärna synpunkter.
55 ===================================================================================
57 * Det verkar som om "namnrymd" är en hyggligt vedertagen svensk översättning
58 av "namespace", så jag kör med det från och med nu.
59 * "interface" heter numera "gränssnitt"
62 * Jag har updaterat översättningen efter ett par års träda..
64 Deprecated: nån hygglig svensk översättning???
66 Skicka gärna synpunkter.
69 #ifndef TRANSLATOR_SE_H
70 #define TRANSLATOR_SE_H
72 class TranslatorSwedish : public TranslatorAdapter_1_6_0
76 virtual QCString idLanguage()
79 /*! Used to get the LaTeX command(s) for the language support.
80 * This method should return string with commands that switch
81 * LaTeX to the desired language. For example
82 * <pre>"\\usepackage[german]{babel}\n"
85 * <pre>"\\usepackage{polski}\n"
86 * "\\usepackage[latin2]{inputenc}\n"
87 * "\\usepackage[T1]{fontenc}\n"
90 * The English LaTeX does not use such commands. Because of this
91 * the empty string is returned in this implementation.
93 virtual QCString latexLanguageSupportCommand()
95 return "\\usepackage[swedish]{babel}\n";
98 /*! return the language charset. This will be used for the HTML output */
99 virtual QCString idLanguageCharset()
104 virtual QCString trRelatedFunctions()
105 { return "Besläktade funktioner"; }
107 virtual QCString trRelatedSubscript()
108 { return "(Observera att dessa inte är medlemsfunktioner)"; }
110 virtual QCString trDetailedDescription()
111 { return "Detaljerad beskrivning"; }
113 virtual QCString trMemberTypedefDocumentation()
114 { return "Dokumentation av typdefinierade medlemmar"; }
116 virtual QCString trMemberEnumerationDocumentation()
117 { return "Dokumentation av egenuppräknande medlemmar"; }
119 virtual QCString trMemberFunctionDocumentation()
120 { return "Dokumentation av medlemsfunktioner"; }
122 virtual QCString trMemberDataDocumentation()
124 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
126 return "Fält dokumentation";
130 return "Dokumentation av datamedlemmar";
134 virtual QCString trMore()
137 virtual QCString trListOfAllMembers()
138 { return "Lista över alla medlemmar"; }
140 virtual QCString trMemberList()
141 { return "Medlemslista"; }
143 virtual QCString trThisIsTheListOfAllMembers()
144 { return "Det här är en fullständig lista över medlemmar för "; }
146 virtual QCString trIncludingInheritedMembers()
147 { return " med alla ärvda medlemmar."; }
149 virtual QCString trGeneratedAutomatically(const char *s)
150 { QCString result="Automatiskt skapad av Doxygen";
151 if (s) result+=(QCString)" för "+s;
152 result+=" från källkoden.";
156 virtual QCString trEnumName()
157 { return "enum namn"; }
159 virtual QCString trEnumValue()
160 { return "enum värde"; }
162 virtual QCString trDefinedIn()
163 { return "definierad i"; }
166 QCString trVerbatimText(const char *f)
167 { return (QCString)"Detta är den ordagranna texten från inkluderingsfilen "+f; }
169 virtual QCString trModules()
170 { return "Moduler"; }
172 virtual QCString trClassHierarchy()
173 { return "Klasshierarki"; }
175 virtual QCString trCompoundList()
177 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
179 return "Datastrukturer";
183 return "Sammansatt klasslista";
187 virtual QCString trFileList()
188 { return "Fillista"; }
190 virtual QCString trCompoundMembers()
192 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
198 return "Sammansatta klassmedlemmar";
202 virtual QCString trFileMembers()
204 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
206 return "Globala symboler";
210 return "Filmedlemmar";
214 virtual QCString trRelatedPages()
215 { return "Besläktade sidor"; }
217 virtual QCString trExamples()
218 { return "Exempel"; }
220 virtual QCString trSearch()
223 virtual QCString trClassHierarchyDescription()
224 { return "Denna lista över arv är grovt, men inte helt, "
225 "sorterad i alfabetisk ordning:";
228 virtual QCString trFileListDescription(bool extractAll)
230 QCString result="Här följer en lista över alla ";
231 if (!extractAll) result+="dokumenterade ";
232 result+="filer, med en kort beskrivning:";
236 virtual QCString trCompoundListDescription()
239 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
241 return "Här följer datastrukturerna med korta beskrivningar:";
245 return "Här följer klasserna, strukterna, unionerna och "
246 "gränssnitten med korta beskrivningar:";
250 /*! This is an introduction to the page with all class members. */
251 virtual QCString trCompoundMembersDescription(bool extractAll)
253 QCString result="Här är en lista över alla ";
256 result+="dokumenterade ";
258 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
260 result+="struktur- och unions-fält";
264 result+="klassmedlemmar";
266 result+=" med länkar till ";
269 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
271 result+="struktur/unions-dokumentationen för varje fält:";
275 result+="klassdokumentationen för varje medlem:";
280 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
282 result+=" strukturerna/unionerna de tillhör:";
286 result+="klasserna de tillhör:";
292 virtual QCString trFileMembersDescription(bool extractAll)
294 QCString result="Här följer en lista över alla ";
295 if (!extractAll) result+="dokumenterade ";
297 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
299 result+="funktioner, variabler, definitioner, enumerationer "
300 "och typdefinitioner";
304 result+= "filmedlemmar";
306 result+= " med länkar till ";
308 result+= "filerna som de tillhör:";
310 result+= "dokumentationen:";
314 virtual QCString trExamplesDescription()
315 { return "Här följer en lista med alla exempel:"; }
317 virtual QCString trRelatedPagesDescription()
318 { return "Här följer en lista över alla besläktade dokumentationssidor:";}
320 virtual QCString trModulesDescription()
321 { return "Här följer en lista över alla moduler:"; }
323 virtual QCString trDocumentation()
324 { return "Dokumentation"; }
326 virtual QCString trModuleIndex()
327 { return "Modulindex"; }
329 virtual QCString trHierarchicalIndex()
330 { return "Hierarkiskt Index"; }
332 /*! This is used in LaTeX as the title of the chapter with the
333 * annotated compound index.
335 virtual QCString trCompoundIndex()
337 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) {
338 return "Index över datastrukturer";
340 return "Index över sammensatta typer";
344 virtual QCString trFileIndex()
345 { return "Filindex"; }
347 virtual QCString trModuleDocumentation()
348 { return "Dokumentation över moduler"; }
350 /*! This is used in LaTeX as the title of the chapter containing
351 * the documentation of all classes, structs and unions.
353 virtual QCString trClassDocumentation()
355 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
357 return "Dokumentation över datastrukturer";
361 return "Documentation över klasser";
365 virtual QCString trFileDocumentation()
366 { return "Dokumentation över filer"; }
368 virtual QCString trExampleDocumentation()
369 { return "Dokumentation över exempel"; }
371 virtual QCString trPageDocumentation()
372 { return "Dokumentation av sidor"; }
374 virtual QCString trReferenceManual()
375 { return "Referensmanual"; }
377 virtual QCString trDefines()
378 { return "Definitioner"; }
379 virtual QCString trFuncProtos()
380 { return "Funktionsprototyper"; }
381 virtual QCString trTypedefs()
382 { return "Typdefinitioner"; }
383 virtual QCString trEnumerations()
384 { return "Egenuppräknande typer"; }
385 virtual QCString trFunctions()
386 { return "Funktioner"; }
387 virtual QCString trVariables()
388 { return "Variabler"; }
390 virtual QCString trEnumerationValues()
391 { return "Egenuppräknade typers värden"; }
393 virtual QCString trDefineDocumentation()
394 { return "Dokumentation över definitioner"; }
396 virtual QCString trFunctionPrototypeDocumentation()
397 { return "Dokumentation över funktionsprototyper"; }
399 virtual QCString trTypedefDocumentation()
400 { return "Dokumentation över typdefinitioner"; }
402 virtual QCString trEnumerationTypeDocumentation()
403 { return "Dokumentation över egenuppräknande typer"; }
405 virtual QCString trFunctionDocumentation()
406 { return "Dokumentation över funktioner"; }
408 virtual QCString trVariableDocumentation()
409 { return "Dokumentation över variabler"; }
411 /*! This is used in the documentation of a file/namespace/group before
412 * the list of links to documented compounds
414 virtual QCString trCompounds()
416 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
418 return "Datastrukturer";
422 return "Sammansättning";
426 virtual QCString trGeneratedAt(const char *date,const char *projName)
428 QCString result=(QCString)"Skapad "+date;
429 if (projName) result+=(QCString)" för "+projName;
430 result+=(QCString)" av";
434 virtual QCString trWrittenBy()
439 virtual QCString trClassDiagram(const char *clName)
441 return (QCString)"Klassdiagram för "+clName;
444 virtual QCString trForInternalUseOnly()
445 { return "Endast för internt bruk."; }
447 virtual QCString trWarning()
448 { return "Varning"; }
450 virtual QCString trVersion()
451 { return "Version"; }
453 virtual QCString trDate()
456 virtual QCString trReturns()
457 { return "Returnerar"; }
459 virtual QCString trSeeAlso()
460 { return "Se även"; }
462 virtual QCString trParameters()
463 { return "Parametrar"; }
465 virtual QCString trExceptions()
466 { return "Undantag"; }
468 virtual QCString trGeneratedBy()
469 { return "Skapad av"; }
471 // new since 0.49-990307
473 virtual QCString trNamespaceList()
474 { return "Namnrymdslista"; }
476 virtual QCString trNamespaceListDescription(bool extractAll)
478 QCString result="Här är en lista över alla ";
479 if (!extractAll) result+="dokumenterade ";
480 result+="namnrymder med en kort beskrivning:";
484 virtual QCString trFriends()
487 //////////////////////////////////////////////////////////////////////////
488 // new since 0.49-990405
489 //////////////////////////////////////////////////////////////////////////
491 virtual QCString trRelatedFunctionDocumentation()
492 { return "Vänners och besläktade funktioners dokumentation"; }
494 //////////////////////////////////////////////////////////////////////////
495 // new since 0.49-990425
496 //////////////////////////////////////////////////////////////////////////
498 virtual QCString trCompoundReference(const char *clName,
499 ClassDef::CompoundType compType,
502 QCString result=(QCString)clName+" ";
505 case ClassDef::Class: result+=" klass"; break;
506 case ClassDef::Struct: result+=" strukt"; break;
507 case ClassDef::Union: result+=" union"; break;
508 case ClassDef::Interface: result+=" gränssnitt"; break;
509 case ClassDef::Protocol: result+=" protocol"; break; // translate me!
510 case ClassDef::Category: result+=" category"; break; // translate me!
511 case ClassDef::Exception: result+=" undantag"; break;
513 if (isTemplate) result+="template";
518 virtual QCString trFileReference(const char *fileName)
520 QCString result=fileName;
521 result+=" filreferens";
525 virtual QCString trNamespaceReference(const char *namespaceName)
527 QCString result=namespaceName;
528 result+=" namnrymdreferens";
532 virtual QCString trPublicMembers()
533 { return "Publika medlemmar"; }
534 virtual QCString trPublicSlots()
535 { return "Publika slots"; }
536 virtual QCString trSignals()
537 { return "Signaler"; }
538 virtual QCString trStaticPublicMembers()
539 { return "Statiska publika medlemmar"; }
540 virtual QCString trProtectedMembers()
541 { return "Skyddade medlemmar"; }
542 virtual QCString trProtectedSlots()
543 { return "Skyddade slots"; }
544 virtual QCString trStaticProtectedMembers()
545 { return "Statiska skyddade medlemmar"; }
546 virtual QCString trPrivateMembers()
547 { return "Privata medlemmar"; }
548 virtual QCString trPrivateSlots()
549 { return "Privata slots"; }
550 virtual QCString trStaticPrivateMembers()
551 { return "Statiska privata medlemmar"; }
552 // end of member sections
554 virtual QCString trWriteList(int numEntries)
556 // this function is used to produce a comma-separated list of items.
557 // use generateMarker(i) to indicate where item i should be put.
560 // the inherits list contain `numEntries' classes
561 for (i=0;i<numEntries;i++)
563 // use generateMarker to generate placeholders for the class links!
564 result+=generateMarker(i); // generate marker for entry i in the list
565 // (order is left to right)
567 if (i!=numEntries-1) // not the last entry, so we need a separator
569 if (i<numEntries-2) // not the fore last entry
571 else // the fore last entry
578 virtual QCString trInheritsList(int numEntries)
579 // used in class documentation to produce a list of base classes,
580 // if class diagrams are disabled.
582 return "Ärver "+trWriteList(numEntries)+".";
584 virtual QCString trInheritedByList(int numEntries)
585 // used in class documentation to produce a list of super classes,
586 // if class diagrams are disabled.
588 return "Ärvd av "+trWriteList(numEntries)+".";
590 virtual QCString trReimplementedFromList(int numEntries)
591 // used in member documentation blocks to produce a list of
592 // members that are hidden by this one.
594 return "Återskapad från "+trWriteList(numEntries)+".";
596 virtual QCString trReimplementedInList(int numEntries)
598 // used in member documentation blocks to produce a list of
599 // all member that overwrite the implementation of this member.
600 return "Återskapad i "+trWriteList(numEntries)+".";
603 virtual QCString trNamespaceMembers()
604 { return "Namnrymdsmedlemmar"; }
605 virtual QCString trNamespaceMemberDescription(bool extractAll)
607 QCString result="Här är en lista över alla ";
608 if (!extractAll) result+="dokumenterade ";
609 result+="namnrymdsmedlemmar med länkar till ";
611 result+=" namnrymd-dokumentationen för varje medlem:";
613 result+="de namnrymder de tillhör:";
617 virtual QCString trNamespaceIndex()
618 { return "Namnrymdsindex"; }
620 virtual QCString trNamespaceDocumentation()
621 { return "Namnrymd-dokumentation"; }
622 //////////////////////////////////////////////////////////////////////////
623 // new since 0.49-990522
624 //////////////////////////////////////////////////////////////////////////
626 /*! This is used in the documentation before the list of all
627 * namespaces in a file.
629 virtual QCString trNamespaces()
630 { return "Namnrymder"; }
632 //////////////////////////////////////////////////////////////////////////
633 // new since 0.49-990728
634 //////////////////////////////////////////////////////////////////////////
636 /*! This is put at the bottom of a class documentation page and is
637 * followed by a list of files that were used to generate the page.
639 virtual QCString trGeneratedFromFiles(ClassDef::CompoundType compType,
641 { // here s is one of " Class", " Struct" or " Union"
642 // single is true implies a single file
643 QCString result=(QCString)"Dokumentationen för ";
646 case ClassDef::Class: result+="denna klass "; break;
647 case ClassDef::Struct: result+="denna strukt "; break;
648 case ClassDef::Union: result+="denna union "; break;
649 case ClassDef::Interface: result+="detta gränssnitt "; break;
650 case ClassDef::Protocol: result+="protocol"; break; // translate me!
651 case ClassDef::Category: result+="category"; break; // translate me!
652 case ClassDef::Exception: result+="detta undantag "; break;
654 result+="var genererad från följande fil";
655 if (single) result+=":"; else result+="er:";
659 /*! This is in the (quick) index as a link to the alphabetical compound
662 virtual QCString trAlphabeticalList()
664 return "Alfabetisk lista";
666 //////////////////////////////////////////////////////////////////////////
667 // new since 0.49-990901
668 //////////////////////////////////////////////////////////////////////////
670 /*! This is used as the heading text for the retval command. */
671 virtual QCString trReturnValues()
672 { return "Returvärden"; }
674 /*! This is in the (quick) index as a link to the main page (index.html)
676 virtual QCString trMainPage()
677 { return "Huvudsida"; }
679 /*! This is used in references to page that are put in the LaTeX
680 * documentation. It should be an abbreviation of the word page.
682 virtual QCString trPageAbbreviation()
685 //////////////////////////////////////////////////////////////////////////
686 // new since 0.49-991003
687 //////////////////////////////////////////////////////////////////////////
689 virtual QCString trDefinedAtLineInSourceFile()
691 return "Definition på rad @0 i filen @1.";
693 virtual QCString trDefinedInSourceFile()
695 return "Definition i filen @0.";
698 //////////////////////////////////////////////////////////////////////////
699 // new since 0.49-991205
700 //////////////////////////////////////////////////////////////////////////
702 virtual QCString trDeprecated()
707 //////////////////////////////////////////////////////////////////////////
709 //////////////////////////////////////////////////////////////////////////
711 /*! this text is put before a collaboration diagram */
712 virtual QCString trCollaborationDiagram(const char *clName)
714 return (QCString)"Samarbetsdiagram för "+clName+":";
717 /*! this text is put before an include dependency graph */
718 virtual QCString trInclDepGraph(const char *fName)
720 return (QCString)"Include-beroendediagram för "+fName+":";
723 /*! header that is put before the list of constructor/destructors. */
724 virtual QCString trConstructorDocumentation()
726 return "Dokumentation av konstruktorer och destruktorer";
729 /*! Used in the file documentation to point to the corresponding sources. */
730 virtual QCString trGotoSourceCode()
732 return "Gå till denna fils källkod.";
735 /*! Used in the file sources to point to the corresponding documentation. */
736 virtual QCString trGotoDocumentation()
738 return "Gå till denna fils dokumentation.";
741 /*! Text for the \\pre command */
742 virtual QCString trPrecondition()
744 return "Förhandsvillkor";
747 /*! Text for the \\post command */
748 virtual QCString trPostcondition()
750 return "Resultat"; //"Postcondition";
753 /*! Text for the \\invariant command */
754 virtual QCString trInvariant()
759 /*! Text shown before a multi-line variable/enum initialization */
760 virtual QCString trInitialValue()
762 return "Begynnelsevärde:";
764 /*! Text used the source code in the file index */
765 virtual QCString trCode()
770 virtual QCString trGraphicalHierarchy()
772 return "Grafisk klasshierarki";
774 virtual QCString trGotoGraphicalHierarchy()
776 return "Gå till den grafiska klasshierarkin";
778 virtual QCString trGotoTextualHierarchy()
780 return "Gå till den textbaserade klasshierarkin";
782 virtual QCString trPageIndex()
787 //////////////////////////////////////////////////////////////////////////
789 //////////////////////////////////////////////////////////////////////////
791 virtual QCString trNote()
795 virtual QCString trPublicTypes()
797 return "Publika typer";
799 virtual QCString trPublicAttribs()
801 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
807 return "Publika attribut";
810 virtual QCString trStaticPublicAttribs()
812 return "Statiska publika attribut";
814 virtual QCString trProtectedTypes()
816 return "Skyddade typer";
818 virtual QCString trProtectedAttribs()
820 return "Skyddade attribut";
822 virtual QCString trStaticProtectedAttribs()
824 return "Statiska skyddade attribut";
826 virtual QCString trPrivateTypes()
828 return "Privata typer";
830 virtual QCString trPrivateAttribs()
832 return "Privata attribut";
834 virtual QCString trStaticPrivateAttribs()
836 return "Statiska privata attribut";
839 //////////////////////////////////////////////////////////////////////////
841 //////////////////////////////////////////////////////////////////////////
843 /*! Used as a marker that is put before a \\todo item */
844 virtual QCString trTodo()
848 /*! Used as the header of the todo list */
849 virtual QCString trTodoList()
851 return "Att-göra lista";
854 //////////////////////////////////////////////////////////////////////////
856 //////////////////////////////////////////////////////////////////////////
858 virtual QCString trReferencedBy()
860 return "Refererad av";
862 virtual QCString trRemarks()
864 return "Lägg märke till";
866 virtual QCString trAttention()
870 virtual QCString trInclByDepGraph()
872 return "Den här grafen visar vilka filer som direkt eller "
873 "indirekt inkluderar denna filen.";
875 virtual QCString trSince()
880 //////////////////////////////////////////////////////////////////////////
882 //////////////////////////////////////////////////////////////////////////
884 /*! title of the graph legend page */
885 virtual QCString trLegendTitle()
887 return "Grafförklaring";
890 /*! page explaining how the dot graph's should be interpreted
891 * The %A in the text below are to prevent link to classes called "A".
893 virtual QCString trLegendDocs()
896 "Den här sidan förklarar hur man ska tolka de grafer som doxygen "
898 "Tag följande exempel:\n"
900 "/*! Osynlig klass på grund av stympning */\n"
901 "class Invisible { };\n\n"
902 "/*! Stympad klass, ärvningsrelationen är dold */\n"
903 "class Truncated : public Invisible { };\n\n"
904 "/* Klass utan doxygen-kommentarer */\n"
905 "class Undocumented { };\n\n"
906 "/*! Klass som ärvs med publikt arv */\n"
907 "class PublicBase : public Truncated { };\n\n"
908 "/*! En template-klass */\n"
909 "template<class T> class Templ { };\n\n"
910 "/*! Klass som ärvs med skyddat arv */\n"
911 "class ProtectedBase { };\n\n"
912 "/*! Klass som ärvs med privat arv */\n"
913 "class PrivateBase { };\n\n"
914 "/*! Klass som används av Inherited klassen */\n"
915 "class Used { };\n\n"
916 "/*! Super klassen som ärver ett antal andra klasser */\n"
917 "class Inherited : public PublicBase,\n"
918 " protected ProtectedBase,\n"
919 " private PrivateBase,\n"
920 " public Undocumented,\n"
921 " public Templ<int>\n"
924 " Used *m_usedClass;\n"
927 "Om \\c MAX_DOT_GRAPH_HEIGHT är satt till 240 i konfigurationsfilen, "
928 "kommer följande graf att generas:"
929 "<p><center><img alt=\"\" src=\"graph_legend."+Config_getEnum("DOT_IMAGE_FORMAT")+"\"></center>\n"
931 "Rektanglarna i den ovanstående grafen har följande betydelser:\n"
933 "<li>%En fylld svart rektangel representerar den strukt eller klass "
934 "som har genererat grafen.\n"
935 "<li>%En rektangel med svart kant symboliserar en dokumenterad "
936 "strukt eller klass.\n"
937 "<li>%En rektangel med grå kant symboliserar en odokumenterad strukt "
939 "<li>%En klass med röd kant symboliserar en strukt eller klass där "
940 "alla dess relationer inte visas. %En graf stympas om den inte får "
941 "plats inom de givna gränserna.\n"
943 "Pilarna har följande betydelser:\n"
945 "<li>%En mörkblå pil används för att visualisera en publik arvrelation "
946 "mellan två klasser.\n"
947 "<li>%En mörkgrön pil används för en skyddad arvsrelation.\n"
948 "<li>%En mörkröd pil används för en privat arvsrelation.\n"
949 "<li>%En sträckad lila pil används om en klass är innesluten eller "
950 "använd av en annan klass. Vid pilen står namnet på den eller de "
951 "variabler som klassen pilen pekar på kommer åt.\n"
952 "<li>%En sträckad gul pil symboliserar förhållandet mellan en "
953 "template-instans och template-klassen, som den instantierades från.\n"
954 "Vid pilen står instansens template-parametrar.\n"
958 /*! text for the link to the legend page */
959 virtual QCString trLegend()
964 //////////////////////////////////////////////////////////////////////////
966 //////////////////////////////////////////////////////////////////////////
968 /*! Used as a marker that is put before a test item */
969 virtual QCString trTest()
973 /*! Used as the header of the test list */
974 virtual QCString trTestList()
979 //////////////////////////////////////////////////////////////////////////
981 //////////////////////////////////////////////////////////////////////////
983 /*! Used as a section header for KDE-2 IDL methods */
984 virtual QCString trDCOPMethods()
986 return "DCOP metoder";
989 //////////////////////////////////////////////////////////////////////////
991 //////////////////////////////////////////////////////////////////////////
993 /*! Used as a section header for IDL properties */
994 virtual QCString trProperties()
998 /*! Used as a section header for IDL property documentation */
999 virtual QCString trPropertyDocumentation()
1001 return "Egenskapsdokumentation";
1004 //////////////////////////////////////////////////////////////////////////
1006 //////////////////////////////////////////////////////////////////////////
1008 /*! Used for Java classes in the summary section of Java packages */
1009 virtual QCString trClasses()
1011 if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
1013 return "Datastrukturer";
1020 /*! Used as the title of a Java package */
1021 virtual QCString trPackage(const char *name)
1023 return (QCString)"Paket "+name;
1025 /*! Title of the package index page */
1026 virtual QCString trPackageList()
1028 return "Paketlista";
1030 /*! The description of the package index page */
1031 virtual QCString trPackageListDescription()
1033 return "Här är en lista över paketen med en kort beskrivning "
1034 "(om sådan finns):";
1036 /*! The link name in the Quick links header for each page */
1037 virtual QCString trPackages()
1041 /*! Text shown before a multi-line define */
1042 virtual QCString trDefineValue()
1047 //////////////////////////////////////////////////////////////////////////
1049 //////////////////////////////////////////////////////////////////////////
1051 /*! Used as a marker that is put before a \\bug item */
1052 virtual QCString trBug()
1056 /*! Used as the header of the bug list */
1057 virtual QCString trBugList()
1062 //////////////////////////////////////////////////////////////////////////
1064 //////////////////////////////////////////////////////////////////////////
1066 /*! Used as ansicpg for RTF file
1067 * (used table extract:)
1069 * Charset Name Charset Value(hex) Codepage number
1070 * ------------------------------------------------------
1071 * ANSI_CHARSET 0 (x00) 1252
1074 virtual QCString trRTFansicp()
1079 /*! Used as ansicpg for RTF fcharset */
1080 virtual QCString trRTFCharSet()
1085 /*! Used as header RTF general index */
1086 virtual QCString trRTFGeneralIndex()
1091 /*! This is used for translation of the word that will possibly
1092 * be followed by a single name or by a list of names
1095 virtual QCString trClass(bool first_capital, bool singular)
1097 QCString result((first_capital ? "Klass" : "klass"));
1098 if (!singular) result+="er";
1102 /*! This is used for translation of the word that will possibly
1103 * be followed by a single name or by a list of names
1106 virtual QCString trFile(bool first_capital, bool singular)
1108 QCString result((first_capital ? "Fil" : "fil"));
1109 if (!singular) result+="er";
1113 /*! This is used for translation of the word that will possibly
1114 * be followed by a single name or by a list of names
1117 virtual QCString trNamespace(bool first_capital, bool singular)
1119 QCString result((first_capital ? "Namnrymd" : "namnrynd"));
1120 if (!singular) result+="er";
1124 /*! This is used for translation of the word that will possibly
1125 * be followed by a single name or by a list of names
1128 virtual QCString trGroup(bool first_capital, bool singular)
1130 QCString result((first_capital ? "Grupp" : "grupp"));
1131 if (!singular) result+="er";
1135 /*! This is used for translation of the word that will possibly
1136 * be followed by a single name or by a list of names
1139 virtual QCString trPage(bool first_capital, bool singular)
1141 QCString result((first_capital ? "Sid" : "sid"));
1149 /*! This is used for translation of the word that will possibly
1150 * be followed by a single name or by a list of names
1153 virtual QCString trMember(bool first_capital, bool singular)
1155 QCString result((first_capital ? "Medlem" : "medlem"));
1156 if (!singular) result+="mar";
1160 /*! This is used for translation of the word that will possibly
1161 * be followed by a single name or by a list of names
1164 virtual QCString trGlobal(bool first_capital, bool singular)
1166 QCString result((first_capital ? "Global" : "global"));
1167 if (!singular) result+="er";
1171 //////////////////////////////////////////////////////////////////////////
1173 //////////////////////////////////////////////////////////////////////////
1175 /*! This text is generated when the \\author command is used and
1176 * for the author section in man pages. */
1177 virtual QCString trAuthor(bool first_capital, bool /*singular*/)
1179 QCString result((first_capital ? "Författare" : "författare"));
1183 //////////////////////////////////////////////////////////////////////////
1185 //////////////////////////////////////////////////////////////////////////
1187 /*! This text is put before the list of members referenced by a member
1189 virtual QCString trReferences()
1191 return "Referenser";
1194 //////////////////////////////////////////////////////////////////////////
1196 //////////////////////////////////////////////////////////////////////////
1198 /*! used in member documentation blocks to produce a list of
1199 * members that are implemented by this one.
1201 virtual QCString trImplementedFromList(int numEntries)
1203 return "Implementerar "+trWriteList(numEntries)+".";
1206 /*! used in member documentation blocks to produce a list of
1207 * all members that implement this abstract member.
1209 virtual QCString trImplementedInList(int numEntries)
1211 return "Implementerad i "+trWriteList(numEntries)+".";
1214 //////////////////////////////////////////////////////////////////////////
1216 //////////////////////////////////////////////////////////////////////////
1218 /*! used in RTF documentation as a heading for the Table
1221 virtual QCString trRTFTableOfContents()
1223 return "Innehållsförteckning";
1226 //////////////////////////////////////////////////////////////////////////
1228 //////////////////////////////////////////////////////////////////////////
1230 /*! Used as the header of the list of item that have been
1231 * flagged deprecated
1233 virtual QCString trDeprecatedList()
1235 return "Lista över föråldrade";
1238 //////////////////////////////////////////////////////////////////////////
1240 //////////////////////////////////////////////////////////////////////////
1242 /*! Used as a header for declaration section of the events found in
1245 virtual QCString trEvents()
1249 /*! Header used for the documentation section of a class' events. */
1250 virtual QCString trEventDocumentation()
1252 return "Händelse Dokumentation";
1255 //////////////////////////////////////////////////////////////////////////
1257 //////////////////////////////////////////////////////////////////////////
1259 /*! Used as a heading for a list of Java class types with package scope.
1261 virtual QCString trPackageTypes()
1263 return "Paket typer";
1265 /*! Used as a heading for a list of Java class functions with package
1268 virtual QCString trPackageMembers()
1270 return "Paket funktioner";
1272 /*! Used as a heading for a list of static Java class functions with
1275 virtual QCString trStaticPackageMembers()
1277 return "Statiska paket funktioner";
1279 /*! Used as a heading for a list of Java class variables with package
1282 virtual QCString trPackageAttribs()
1284 return "Paket attribut";
1286 /*! Used as a heading for a list of static Java class variables with
1289 virtual QCString trStaticPackageAttribs()
1291 return "Statiska paket attribut";
1294 //////////////////////////////////////////////////////////////////////////
1296 //////////////////////////////////////////////////////////////////////////
1298 /*! Used in the quick index of a class/file/namespace member list page
1299 * to link to the unfiltered list of all members.
1301 virtual QCString trAll()
1305 /*! Put in front of the call graph for a function. */
1306 virtual QCString trCallGraph()
1308 return "Här är anropnings diagrammet för den här funktionen:";
1311 //////////////////////////////////////////////////////////////////////////
1313 //////////////////////////////////////////////////////////////////////////
1315 /*! When the search engine is enabled this text is put in the header
1316 * of each page before the field where one can enter the text to search
1319 virtual QCString trSearchForIndex()
1323 /*! This string is used as the title for the page listing the search
1326 virtual QCString trSearchResultsTitle()
1328 return "Sökresultat";
1330 /*! This string is put just before listing the search results. The
1331 * text can be different depending on the number of documents found.
1332 * Inside the text you can put the special marker $num to insert
1333 * the number representing the actual number of search results.
1334 * The @a numDocuments parameter can be either 0, 1 or 2, where the
1335 * value 2 represents 2 or more matches. HTML markup is allowed inside
1336 * the returned string.
1338 virtual QCString trSearchResults(int numDocuments)
1340 if (numDocuments==0)
1342 return "Tyvärr finns det inga dokument som matchar din sökning.";
1344 else if (numDocuments==1)
1346 return "Hittade <b>1</b> dokument som matchar din sökning.";
1350 return "Hittade <b>$num</b> dokument som matchar din sökning. "
1351 "Visar de bästa träffarna först.";
1354 /*! This string is put before the list of matched words, for each search
1355 * result. What follows is the list of words that matched the query.
1357 virtual QCString trSearchMatches()
1362 //////////////////////////////////////////////////////////////////////////
1364 //////////////////////////////////////////////////////////////////////////
1366 /*! This is used in HTML as the title of page with source code for file filename
1368 virtual QCString trSourceFile(QCString& filename)
1370 return "Källkodsfilen " + filename;
1373 //////////////////////////////////////////////////////////////////////////
1375 //////////////////////////////////////////////////////////////////////////
1377 /*! This is used as the name of the chapter containing the directory
1380 virtual QCString trDirIndex()
1381 { return "Katalogstruktur"; }
1383 /*! This is used as the name of the chapter containing the documentation
1384 * of the directories.
1386 virtual QCString trDirDocumentation()
1387 { return "Katalogdokumentation"; }
1389 /*! This is used as the title of the directory index and also in the
1390 * Quick links of a HTML page, to link to the directory hierarchy.
1392 virtual QCString trDirectories()
1393 { return "Kataloger"; }
1395 /*! This returns a sentences that introduces the directory hierarchy.
1396 * and the fact that it is sorted alphabetically per level
1398 virtual QCString trDirDescription()
1399 { return "Den här katalogen är grovt sorterad, "
1400 "men inte helt, i alfabetisk ordning:";
1403 /*! This returns the title of a directory page. The name of the
1404 * directory is passed via \a dirName.
1406 virtual QCString trDirReference(const char *dirName)
1407 { QCString result=dirName; result+=" Katalogreferens"; return result; }
1409 /*! This returns the word directory with or without starting capital
1410 * (\a first_capital) and in sigular or plural form (\a singular).
1412 virtual QCString trDir(bool first_capital, bool singular)
1414 QCString result((first_capital ? "Katalog" : "katalog"));
1415 if (!singular) result+="er";
1419 //////////////////////////////////////////////////////////////////////////
1421 //////////////////////////////////////////////////////////////////////////
1423 /*! This text is added to the documentation when the \\overload command
1424 * is used for a overloaded function.
1426 virtual QCString trOverloadText()
1428 return "Det här är en överlagrad medlemsfunktion "
1429 "tillhandahållen för bekvämlighet. Den enda som "
1430 "skiljer sig från ovanstående funktion är vilka "
1431 "argument den tar emot.";
1434 //////////////////////////////////////////////////////////////////////////
1436 //////////////////////////////////////////////////////////////////////////
1438 /*! This is used to introduce a caller (or called-by) graph */
1439 virtual QCString trCallerGraph()
1441 return "Här är katalog-grafen för denna funktion:";
1444 /*! This is used in the documentation of a file/namespace before the list
1445 * of documentation blocks for enumeration values
1447 virtual QCString trEnumerationValueDocumentation()
1449 return "Uppräknings-dokumentation";
1452 //////////////////////////////////////////////////////////////////////////
1453 // new since 1.5.4 (mainly for Fortran)
1454 //////////////////////////////////////////////////////////////////////////
1456 /*! header that is put before the list of member subprograms (Fortran). */
1457 virtual QCString trMemberFunctionDocumentationFortran()
1458 { return "Memlems-function/Subroutins Dokumentation"; }
1460 /*! This is put above each page as a link to the list of annotated data types (Fortran). */
1461 virtual QCString trCompoundListFortran()
1462 { return "Datatyplista"; }
1464 /*! This is put above each page as a link to all members of compounds (Fortran). */
1465 virtual QCString trCompoundMembersFortran()
1466 { return "Data fält"; }
1468 /*! This is an introduction to the annotated compound list (Fortran). */
1469 virtual QCString trCompoundListDescriptionFortran()
1470 { return "Här är datatyperna med en kort beskrivning:"; }
1472 /*! This is an introduction to the page with all data types (Fortran). */
1473 virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
1475 QCString result="Här är en lista av alla ";
1478 result+="dokumenterade ";
1480 result+="datatyps medlemmar";
1481 result+=" med länkar till ";
1484 result+="datastrukturs documentation för varje medlem";
1488 result+="klasserna de hör till:";
1493 /*! This is used in LaTeX as the title of the chapter with the
1494 * annotated compound index (Fortran).
1496 virtual QCString trCompoundIndexFortran()
1497 { return "Datatyps Index"; }
1499 /*! This is used in LaTeX as the title of the chapter containing
1500 * the documentation of all data types (Fortran).
1502 virtual QCString trTypeDocumentation()
1503 { return "Dataryps Dokumentation"; }
1505 /*! This is used in the documentation of a file as a header before the
1506 * list of (global) subprograms (Fortran).
1508 virtual QCString trSubprograms()
1509 { return "Funktions/Subroutins"; }
1511 /*! This is used in the documentation of a file/namespace before the list
1512 * of documentation blocks for subprograms (Fortran)
1514 virtual QCString trSubprogramDocumentation()
1515 { return "Funktion/Subroutin Dokumentation"; }
1517 /*! This is used in the documentation of a file/namespace/group before
1518 * the list of links to documented compounds (Fortran)
1520 virtual QCString trDataTypes()
1521 { return "Datatyper"; }
1523 /*! used as the title of page containing all the index of all modules (Fortran). */
1524 virtual QCString trModulesList()
1525 { return "Modullista"; }
1527 /*! used as an introduction to the modules list (Fortran) */
1528 virtual QCString trModulesListDescription(bool extractAll)
1530 QCString result="Här är en lista på alla ";
1531 if (!extractAll) result+="dokumenterade ";
1532 result+="moduler med en kort beskrivning:";
1536 /*! used as the title of the HTML page of a module/type (Fortran) */
1537 virtual QCString trCompoundReferenceFortran(const char *clName,
1538 ClassDef::CompoundType compType,
1541 QCString result=(QCString)clName;
1544 case ClassDef::Class: result+=" Modul"; break;
1545 case ClassDef::Struct: result+=" Typ"; break;
1546 case ClassDef::Union: result+=" Union"; break;
1547 case ClassDef::Interface: result+=" Gränssnitt"; break;
1548 case ClassDef::Protocol: result+=" Protokoll"; break;
1549 case ClassDef::Category: result+=" Kategori"; break;
1550 case ClassDef::Exception: result+=" Undantag"; break;
1552 if (isTemplate) result+=" Mall";
1553 result+=" Referens";
1556 /*! used as the title of the HTML page of a module (Fortran) */
1557 virtual QCString trModuleReference(const char *namespaceName)
1559 QCString result=namespaceName;
1560 result+=" Modul Referens";
1564 /*! This is put above each page as a link to all members of modules. (Fortran) */
1565 virtual QCString trModulesMembers()
1566 { return "Modul Medlemmar"; }
1568 /*! This is an introduction to the page with all modules members (Fortran) */
1569 virtual QCString trModulesMemberDescription(bool extractAll)
1571 QCString result="Här är en lista på alla ";
1572 if (!extractAll) result+="documented ";
1573 result+="modul medlemmar med länkar till ";
1576 result+="modul dokumentationen för varje medlem:";
1580 result+="modulerna de hör till:";
1585 /*! This is used in LaTeX as the title of the chapter with the
1586 * index of all modules (Fortran).
1588 virtual QCString trModulesIndex()
1589 { return "Modul Index"; }
1591 /*! This is used for translation of the word that will possibly
1592 * be followed by a single name or by a list of names
1595 virtual QCString trModule(bool first_capital, bool singular)
1597 return createNoun(first_capital, singular, "modul", "er");
1599 /*! This is put at the bottom of a module documentation page and is
1600 * followed by a list of files that were used to generate the page.
1602 virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
1605 // single is true implies a single file
1606 QCString result=(QCString)"Dokumentationen för denna ";
1609 case ClassDef::Class: result+="modul"; break;
1610 case ClassDef::Struct: result+="typ"; break;
1611 case ClassDef::Union: result+="union"; break;
1612 case ClassDef::Interface: result+="gränssnitt"; break;
1613 case ClassDef::Protocol: result+="protokoll"; break;
1614 case ClassDef::Category: result+="kategori"; break;
1615 case ClassDef::Exception: result+="undantag"; break;
1617 result+=" genererades från följade fil";
1618 if (single) result+=":"; else result+="er:";
1621 /*! This is used for translation of the word that will possibly
1622 * be followed by a single name or by a list of names
1625 virtual QCString trType(bool first_capital, bool singular)
1627 return createNoun(first_capital, singular, "typ", "er");
1629 /*! This is used for translation of the word that will possibly
1630 * be followed by a single name or by a list of names
1633 virtual QCString trSubprogram(bool first_capital, bool /*singular*/)
1635 QCString result((first_capital ? "Subprogram" : "subprogram"));
1639 /*! C# Type Constraint list */
1640 virtual QCString trTypeConstraints()
1642 return "Typbegränsningar";
1645 /*---------- For internal use: ----------------------------------------*/
1647 /*! For easy flexible-noun implementation.
1650 QCString createNoun(bool first_capital, bool singular,
1651 const char* base, const char* plurSuffix)
1653 QCString result(base);
1654 if (first_capital) result.at(0) = toupper(result.at(0));
1655 if (!singular) result+=plurSuffix;