Doxygen
Loading...
Searching...
No Matches
translator_fa.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Copyright (C) 1997-2026 by Dimitri van Heesch.
4 *
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation under the terms of the GNU General Public License is hereby
7 * granted. No representations are made about the suitability of this software
8 * for any purpose. It is provided "as is" without express or implied warranty.
9 * See the GNU General Public License for more details.
10 *
11 * Documents produced by Doxygen are derivative works derived from the
12 * input used in their production; they are not affected by this license.
13 *
14 *
15 * Description : Doxygen Persian (Farsi) Translator
16 * Author : Ali Nadalizadeh < nadalizadeh at gmail dot com >
17 *
18 * ChangeLog :
19 * Thu 06 Jul 2006 11:54:09 PM IRDT <nadalizadeh at gmail dot com>
20 * >> First version of persian language support has been completed.
21 *
22 * Mon 04 Feb 2008 11:52:09 AM IRDT <nadalizadeh at gmail dot com>
23 * >> Obsolete methods removed. Translated more string(s) to persian. Upgraded to 1_5_4 adapter.
24 *
25 * Fri 04 Jun 2010 04:05:24 PM IRDT <nadalizadeh at gmail dot com>
26 * >> Implement missing new methods since 1.6.0.
27 * >> Add English to Persian digit converter. (for date/time digits)
28 *
29 * Translation feedbacks are really appreciated.
30 */
31
32#ifndef TRANSLATOR_FA_H
33#define TRANSLATOR_FA_H
34
35#define HtmlRightToLeft DString("<div dir=\"rtl\">")
36#define HtmlLeftToRight DString("<div dir=\"ltr\">")
37#define HtmlDivEnd DString("</div>")
38
39
41{
42 private:
43 /** Converts english digits of an input string to persian equivalents. */
45 {
46 DString output;
47 const char * PersianDigits[] = { "۰", "۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹" };
48 for(unsigned i=0; i<str.length(); i++)
49 {
50 if (str.at(i) >= '0' && str.at(i) <= '9')
51 output += PersianDigits[ str.at(i) - '0' ];
52 else
53 output += str.at(i);
54 }
55
56 return output;
57 }
58
59 public:
60
61 // --- Language control methods -------------------
62
63 /*! Used for identification of the language. The identification
64 * should not be translated. It should be replaced by the name
65 * of the language in Persian using lower-case characters only
66 * (e.g. "czech", "japanese", "russian", etc.). It should be equal to
67 * the identification used in language.cpp.
68 */
70 { return "persian"; }
71
72 /*! Used to get the LaTeX command(s) for the language support.
73 * This method should return string with commands that switch
74 * LaTeX to the desired language. For example
75 * <pre>"\\usepackage[german]{babel}\n"
76 * </pre>
77 * or
78 * <pre>"\\usepackage{polski}\n"
79 * "\\usepackage[latin2]{inputenc}\n"
80 * "\\usepackage[T1]{fontenc}\n"
81 * </pre>
82 *
83 * The Persian LaTeX does not use such commands. Because of this
84 * the empty string is returned in this implementation.
85 */
87 {
88 return "";
89 }
90
92 {
93 return p_latexCommandName("xelatex");
94 }
95
96 DString trISOLang() override
97 {
98 return "fa";
99 }
100
102 {
103 return "0x429 Persian (Iran)";
104 }
105 // --- Language translation methods -------------------
106
107 /*! used in the compound documentation before a list of related functions. */
109 { return "توابع مربوط"; }
110
111 /*! subscript for the related functions. */
113 { return "(لازم به ذکر است که اينها توابع عضو نيستند)"; }
114
115 /*! header that is put before the detailed description of files, classes and namespaces. */
117 { return "توضيحات جزئی"; }
118
119 /*! header that is used when the summary tag is missing inside the details tag */
121 { return "جزئیات"; }
122
123 /*! header that is put before the list of typedefs. */
125 { return "مستندات تعریف گونه ها"; }
126
127 /*! header that is put before the list of enumerations. */
129 { return "های عضو Enumeration مستندات"; }
130
131 /*! header that is put before the list of member functions. */
133 { return "توضيحات توابع عضو"; }
134
135 /*! header that is put before the list of member attributes. */
137 {
138 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
139 {
140 return "Field مستندات";
141 }
142 else
143 {
144 return "مستندات متغيير های عضو";
145 }
146 }
147
148 /*! this is the text of a link put after brief descriptions. */
149 DString trMore() override
150 { return "بيشتر..."; }
151
152 /*! put in the class documentation */
154 { return "ليست تمام اعضاء "; }
155
156 /*! used as the title of the "list of all members" page of a class */
158 { return "ليست اعضاء"; }
159
160 /*! this is the first part of a sentence that is followed by a class name */
162 { return "اين ليستی کامل از همه اعضای"; }
163
164 /*! this is the remainder of the sentence after the class name */
166 { return "شامل همه ی اعضای به ارث برده شده می باشد."; }
167
168 /*! this is put at the author sections at the bottom of man pages.
169 * parameter s is name of the project name.
170 */
172 { DString result="تولید شده توسط نرم افزار دی اکسیژن ";
173 if (!s.empty()) result+=" برای "+s;
174 result+=" از کد برنامه ";
175 return result;
176 }
177
178 /*! put after an enum name in the list of all members */
180 { return "enum نام"; }
181
182 /*! put after an enum value in the list of all members */
184 { return "enum مقدار"; }
185
186 /*! put after an undocumented member in the list of all members */
188 { return "تعریف شده در"; }
189
190 // quick reference sections
191
192 /*! This is put above each page as a link to the list of all groups of
193 * compounds or files (see the \\group command).
194 */
196 { return "Modules"; }
197
198 /*! This is put above each page as a link to the class hierarchy */
200 { return "سلسله مراتب کلاس ها"; }
201
202 /*! This is put above each page as a link to the list of annotated classes */
204 {
205 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
206 {
207 return "ساختار های داده ";
208 }
209 else
210 {
211 return "ليست کلاس ها ";
212 }
213 }
214
215 /*! This is put above each page as a link to the list of documented files */
217 { return "ليست فايل ها"; }
218
219 /*! This is put above each page as a link to all members of compounds. */
221 {
222 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
223 {
224 return "فضاهای داده ها";
225 }
226 else
227 {
228 return "اعضاء کلاس ها";
229 }
230 }
231
232 /*! This is put above each page as a link to all members of files. */
234 {
235 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
236 {
237 return "Globals";
238 }
239 else
240 {
241 return "اعضاء پرونده";
242 }
243 }
244
245 /*! This is put above each page as a link to all related pages. */
247 { return "صفحات مربوط"; }
248
249 /*! This is put above each page as a link to all examples. */
251 { return "مثال ها"; }
252
253 /*! This is put above each page as a link to the search engine. */
254 DString trSearch() override
255 { return "جستجو"; }
256
257 /*! This is an introduction to the class hierarchy. */
259 { return "ليست و سلسله مراتب درختی کلاس ها به صورت مرتب شده :";
260 }
261
262 /*! This is an introduction to the list with all files. */
263 DString trFileListDescription(bool extractAll) override
264 {
265 DString result="ليست همه ي پرونده های ";
266 if (!extractAll) result+="(مستند شده) ";
267 result+=" :";
268 return result;
269 }
270
271 /*! This is an introduction to the annotated compound list. */
273 {
274
275 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
276 {
277 return "ليست ساختارهای داده به همراه توضيحی کوتاه :";
278 }
279 else
280 {
281 return "ليست کلاس ها ، ساختارهای داده و ... به همراه توضيحات مختصر راجع به آنها :";
282 }
283 }
284
285 /*! This is an introduction to the page with all class members. */
286 DString trCompoundMembersDescription(bool extractAll) override
287 {
288 DString result=" در ذيل ليست ";
289 if (!extractAll)
290 {
291 result+="آن اعضايي که مستند شده اند ";
292 }
293 else
294 {
295 result+="همه ی اعضاء ";
296 }
297 result+=" به همراه ارتباطشان با ";
298 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
299 {
300 result+="ساختارهای داده ";
301 }
302 else
303 {
304 result+="كلاس ها ";
305 }
306
307 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
308 {
309 result+="و مستندات ساختار داده برای هر عضو ";
310 }
311 else
312 {
313 result+="و مستندات کلاس برای هر عضو ";
314 }
315 result+="را مشاهده ميکنيد :";
316 return result;
317 }
318
319 /*! This is an introduction to the page with all file members. */
320 DString trFileMembersDescription(bool extractAll) override
321 {
322 DString result="ليست همه ی توابع ، متغيير ها، تعاريف و ... ";
323 if (!extractAll) result+="(مستند شده) ";
324
325 result+=" به همراه ارتباط آنها ";
326 result+="با پرونده هايی که به آن مربوط اند :";
327 return result;
328 }
329
330 /*! This is an introduction to the page with the list of all examples */
332 { return "ليست همه ی مثال ها :"; }
333
334 /*! This is an introduction to the page with the list of related pages */
336 { return "لیست تمام صفحات و مستندات مربوطه :"; }
337
338 /*! This is an introduction to the page with the list of class/file groups */
340 { return "لیست تمام ماژول ها:"; }
341
342 // index titles (the project name is prepended for these)
343
344
345 /*! This is used in HTML as the title of index.html. */
346 DString trDocumentation(const DString &projName) override
347 { return "مستندات" + (!projName.empty()?" " + projName : ""); }
348
349 /*! This is used in LaTeX as the title of the chapter with the
350 * index of all groups.
351 */
353 { return "فهرست ماژول ها"; }
354
355 /*! This is used in LaTeX as the title of the chapter with the
356 * class hierarchy.
357 */
359 { return "فهرست سلسله مراتب"; }
360
361 /*! This is used in LaTeX as the title of the chapter with the
362 * annotated compound index.
363 */
365 {
366 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
367 {
368 return "فهرست ساختار داده ها";
369 }
370 else
371 {
372 return "فهرست کلاس های";
373 }
374 }
375
376 /*! This is used in LaTeX as the title of the chapter with the
377 * list of all files.
378 */
380 { return "فهرست پرونده ها"; }
381
382 /*! This is used in LaTeX as the title of the chapter containing
383 * the documentation of all groups.
384 */
386 { return "مستندات ماژول"; }
387
388 /*! This is used in LaTeX as the title of the chapter containing
389 * the documentation of all classes, structs and unions.
390 */
392 {
393 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
394 {
395 return "مستندات ساختار داده ها";
396 }
397 else if (Config_getBool(OPTIMIZE_OUTPUT_VHDL))
398 {
400 }
401 else
402 {
403 return "مستندات کلاس ها";
404 }
405 }
406
407 /*! This is used in LaTeX as the title of the chapter containing
408 * the documentation of all files.
409 */
411 { return "مستندات فایل"; }
412
413 /*! This is used in LaTeX as the title of the document */
415 { return "راهنمای مرجع"; }
416
417 /*! This is used in the documentation of a file as a header before the
418 * list of defines
419 */
421 { return "تعاريف"; }
422
423 /*! This is used in the documentation of a file as a header before the
424 * list of typedefs
425 */
427 { return "تعریف گونه ها"; }
428
429 /*! This is used in the documentation of a file as a header before the
430 * list of enumerations
431 */
433 { return "تعاريف"; }
434
435 /*! This is used in the documentation of a file as a header before the
436 * list of (global) functions
437 */
439 { return "توابع"; }
440
441 /*! This is used in the documentation of a file as a header before the
442 * list of (global) variables
443 */
445 { return "متغيير ها"; }
446
447 /*! This is used in the documentation of a file as a header before the
448 * list of (global) variables
449 */
451 { return "معرف ها"; }
452
453 /*! This is used in the documentation of a file before the list of
454 * documentation blocks for defines
455 */
457 { return "Define Documentation"; }
458
459 /*! This is used in the documentation of a file/namespace before the list
460 * of documentation blocks for typedefs
461 */
463 { return "Typedef"; }
464
465 /*! This is used in the documentation of a file/namespace before the list
466 * of documentation blocks for enumeration types
467 */
469 { return "مستندات تعريف"; }
470
471 /*! This is used in the documentation of a file/namespace before the list
472 * of documentation blocks for enumeration values
473 */
475 { return "مستندات معرف"; }
476
477 /*! This is used in the documentation of a file/namespace before the list
478 * of documentation blocks for functions
479 */
481 { return "توضيح تابع"; }
482
483 /*! This is used in the documentation of a file/namespace before the list
484 * of documentation blocks for variables
485 */
487 { return "توضيح متغير"; }
488
489 /*! This is used in the documentation of a file/namespace/group before
490 * the list of links to documented compounds
491 */
493 {
494 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
495 {
496 return "ساختارهای داده";
497 }
498 else
499 {
500 return "کلاس ها";
501 }
502 }
503
504 /*! This is used in the standard footer of each page and indicates when
505 * the page was generated
506 */
507 DString trGeneratedAt(const DString &date,const DString &projName) override
508 {
509 DString result = HtmlDivEnd + HtmlRightToLeft + DString("توليد شده در ") +date ;
510 if (!projName.empty()) result+=" برای "+projName;
511 result+=" توسط";
512 return result;
513 }
514
515 /*! this text is put before a class diagram */
516 DString trClassDiagram(const DString &clName) override
517 {
518 return ""+clName+" نمودار وراثت برای :";
519 }
520
521 /*! this text is generated when the \\warning command is used. */
523 { return "اخطار"; }
524
525 /*! this text is generated when the \\version command is used. */
527 { return "نسخه"; }
528
529 /*! this text is generated when the \\date command is used. */
530 DString trDate() override
531 { return "تاريخ"; }
532
533 /*! this text is generated when the \\return command is used. */
535 { return "خروجی"; }
536
537 /*! this text is generated when the \\sa command is used. */
539 { return "See also"; }
540
541 /*! this text is generated when the \\param command is used. */
543 { return "پارامترها"; }
544
545 /*! this text is generated when the \\exception command is used. */
547 { return "استثناء ها"; }
548
549 /*! this text is used in the title page of a LaTeX document. */
551 { return "توليد شده توسط"; }
552
553//////////////////////////////////////////////////////////////////////////
554// new since 0.49-990307
555//////////////////////////////////////////////////////////////////////////
556
557 /*! used as the title of page containing all the index of all namespaces. */
559 { return "ليست فضاهای نام"; }
560
561 /*! used as an introduction to the namespace list */
562 DString trNamespaceListDescription(bool extractAll) override
563 {
564 DString result="در ذيل ليستی از همه ی فضاهای نام ";
565 if (!extractAll) result+="(مستند سازی شده) ";
566 result+="به همراه توضيح کوتاه آنها مشاهده می کنيد :";
567 return result;
568 }
569
570 /*! used in the class documentation as a header before the list of all
571 * friends of a class
572 */
574 { return "کلاس های دوست"; }
575
576//////////////////////////////////////////////////////////////////////////
577// new since 0.49-990405
578//////////////////////////////////////////////////////////////////////////
579
580 /*! used in the class documentation as a header before the list of all
581 * related classes
582 */
584 { return "مستندات توابع مربوط و دوست"; }
585
586//////////////////////////////////////////////////////////////////////////
587// new since 0.49-990425
588//////////////////////////////////////////////////////////////////////////
589
590 /*! used as the title of the HTML page of a class/struct/union */
592 ClassDef::CompoundType compType,
593 bool isTemplate) override
594 {
595 DString result;
596 switch(compType)
597 {
598 case ClassDef::Class: result=" کلاس"; break;
599 case ClassDef::Struct: result=" ساختار داده"; break;
600 case ClassDef::Union: result=" Union"; break;
601 case ClassDef::Interface: result=" Interface"; break;
602 case ClassDef::Protocol: result=" Protocol"; break;
603 case ClassDef::Category: result=" Category"; break;
604 case ClassDef::Exception: result=" استثناء"; break;
605 default: break;
606 }
607 if (isTemplate) result+=" قالب";
608 result=clName + " مرجع" +result ;
609 return result;
610 }
611
612 /*! used as the title of the HTML page of a file */
613 DString trFileReference(const DString &fileName) override
614 {
615 DString result=fileName;
616 result+=" مرجع پرونده";
617 return result;
618 }
619
620 /*! used as the title of the HTML page of a namespace */
621 DString trNamespaceReference(const DString &namespaceName) override
622 {
623 DString result=namespaceName;
624 result+=" مرجع فضای نام";
625 return result;
626 }
627
629 { return "توابع عمومی عضو کلاس"; }
631 { return "های عمومی Slot"; }
633 { return "سيگنال ها"; }
635 { return "توابع ثابت عمومی عضو کلاس"; }
637 { return "توابع خصوصی عضو کلاس"; }
639 { return "های محافظت شده Slot"; }
641 { return "توابع ثابت محافظت شده عضو کلاس"; }
643 { return "توابع خصوصی عضو کلاس"; }
645 { return "های خصوصی Slot"; }
647 { return "توابع خصوصی ثابت عضو کلاس"; }
648
649 /*! this function is used to produce a comma-separated list of items.
650 * use generateMarker(i) to indicate where item i should be put.
651 */
652 DString trWriteList(int numEntries) override
653 {
654 DString result;
655 // the inherits list contain `numEntries' classes
656 for (int i=0;i<numEntries;i++)
657 {
658 // use generateMarker to generate placeholders for the class links!
659 result+=generateMarker(i); // generate marker for entry i in the list
660 // (order is left to right)
661
662 if (i!=numEntries-1) // not the last entry, so we need a separator
663 {
664 if (i<numEntries-2) // not the fore last entry
665 result+=", ";
666 else // the fore last entry
667 result+=" و ";
668 }
669 }
670 return result;
671 }
672
673 /*! used in class documentation to produce a list of base classes,
674 * if class diagrams are disabled.
675 */
676 DString trInheritsList(int numEntries) override
677 {
678 return ".را به ارث می برد "+trWriteList(numEntries)+".";
679 }
680
681 /*! used in class documentation to produce a list of super classes,
682 * if class diagrams are disabled.
683 */
684 DString trInheritedByList(int numEntries) override
685 {
686 return ".اين کلاس را به ارث برده است "+trWriteList(numEntries)+".";
687 }
688
689 /*! used in member documentation blocks to produce a list of
690 * members that are hidden by this one.
691 */
692 DString trReimplementedFromList(int numEntries) override
693 {
694 return "Reimplemented from "+trWriteList(numEntries)+".";
695 }
696
697 /*! used in member documentation blocks to produce a list of
698 * all member that overwrite the implementation of this member.
699 */
700 DString trReimplementedInList(int numEntries) override
701 {
702 return "تعریف شده است "+trWriteList(numEntries)+"دوباره در ";
703 }
704
705 /*! This is put above each page as a link to all members of namespaces. */
707 { return "اعضای فضاهای نام"; }
708
709 /*! This is an introduction to the page with all namespace members */
710 DString trNamespaceMemberDescription(bool extractAll) override
711 {
712 DString result="ليست همه اعضای فضای نام ";
713 if (!extractAll) result+="(مستند شده) ";
714 result+=" با ارتباطشان با";
715 result+="فضاهای نامی که به آن مربوط اند را مشاهده ميکنيد :";
716 return result;
717 }
718 /*! This is used in LaTeX as the title of the chapter with the
719 * index of all namespaces.
720 */
722 { return "فهرست فضاهای نام"; }
723
724 /*! This is used in LaTeX as the title of the chapter containing
725 * the documentation of all namespaces.
726 */
728 { return "توضيحات فضای نام"; }
729
730//////////////////////////////////////////////////////////////////////////
731// new since 0.49-990522
732//////////////////////////////////////////////////////////////////////////
733
734 /*! This is used in the documentation before the list of all
735 * namespaces in a file.
736 */
738 { return "فضاهای نام"; }
739
740//////////////////////////////////////////////////////////////////////////
741// new since 0.49-990728
742//////////////////////////////////////////////////////////////////////////
743
744 /*! This is put at the bottom of a class documentation page and is
745 * followed by a list of files that were used to generate the page.
746 */
748 bool single) override
749 { // here s is one of " Class", " Struct" or " Union"
750 // single is true implies a single file
751 DString result="مستندات اين ";
752 switch(compType)
753 {
754 case ClassDef::Class: result+="کلاس"; break;
755 case ClassDef::Struct: result+="ساختار داده"; break;
756 case ClassDef::Union: result+="union"; break;
757 case ClassDef::Interface: result+="interface"; break;
758 case ClassDef::Protocol: result+="protocol"; break;
759 case ClassDef::Category: result+="category"; break;
760 case ClassDef::Exception: result+="exception"; break;
761 default: break;
762 }
763 result+=" از روی پرونده ";
764 if (single) result+=""; else result+="های ";
765 result+="زير توليد شده است :";
766 return result;
767 }
768
769//////////////////////////////////////////////////////////////////////////
770// new since 0.49-990901
771//////////////////////////////////////////////////////////////////////////
772
773 /*! This is used as the heading text for the retval command. */
775 { return "مقادير بازگشتی"; }
776
777 /*! This is in the (quick) index as a link to the main page (index.html)
778 */
780 { return "صفحه ی اصلی"; }
781
782 /*! This is used in references to page that are put in the LaTeX
783 * documentation. It should be an abbreviation of the word page.
784 */
786 { return "ص."; }
787
788//////////////////////////////////////////////////////////////////////////
789// new since 0.49-991003
790//////////////////////////////////////////////////////////////////////////
792 {
793 return ".در خط @0 از پرونده @1 تعريف شده است";
794 }
796 {
797 return ".در فايل @0 تعريف شده است";
798 }
799
800//////////////////////////////////////////////////////////////////////////
801// new since 0.49-991205
802//////////////////////////////////////////////////////////////////////////
803
805 {
806 return "منسوخ شده";
807 }
808
809//////////////////////////////////////////////////////////////////////////
810// new since 1.0.0
811//////////////////////////////////////////////////////////////////////////
812
813 /*! this text is put before a collaboration diagram */
814 DString trCollaborationDiagram(const DString &clName) override
815 {
816 return "Collaboration diagram for "+clName+":";
817 }
818 /*! this text is put before an include dependency graph */
819 DString trInclDepGraph(const DString &fName) override
820 {
821 return "نمودار شامل شدن ها برای "+fName+":";
822 }
823 /*! header that is put before the list of constructor/destructors. */
825 {
826 return "مستندات توباع آغازین و پایانی";
827 }
828 /*! Used in the file documentation to point to the corresponding sources. */
830 {
831 return "کد منبع اين پرونده.";
832 }
833 /*! Used in the file sources to point to the corresponding documentation. */
835 {
836 return "توضيحات اين پرونده.";
837 }
838 /*! Text for the \\pre command */
840 {
841 return "پیش شرط";
842 }
843 /*! Text for the \\post command */
845 {
846 return "پس شرط";
847 }
848 /*! Text for the \\invariant command */
850 {
851 return "Invariant";
852 }
853 /*! Text shown before a multi-line variable/enum initialization */
855 {
856 return "مقدار اوليه :";
857 }
858 /*! Text used the source code in the file index */
859 DString trCode() override
860 {
861 return "کد";
862 }
864 {
865 return "سلسله مراتب گرافيکی کلاس";
866 }
868 {
869 return "نمایش نمودار درختی گرافیکی کلاس";
870 }
872 {
873 return "نمایش نمودار درختی متنی کلاس";
874 }
876 {
877 return "فهرست صفحات";
878 }
879
880//////////////////////////////////////////////////////////////////////////
881// new since 1.1.0
882//////////////////////////////////////////////////////////////////////////
883
884 DString trNote() override
885 {
886 return "نکته";
887 }
889 {
890 return "های عمومی Type";
891 }
893 {
894 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
895 {
896 return "فضاهای داده ها";
897 }
898 else
899 {
900 return "خواص (متغييرهای) عمومی";
901 }
902 }
904 {
905 return "خواص (متغييرهای) عمومی ثابت";
906 }
908 {
909 return "های حفاظت شده Type";
910 }
912 {
913 return "خواص (متغييرهای) حفاظت شده";
914 }
916 {
917 return "خواص (متغييرهای) حفاظت شده ثابت";
918 }
920 {
921 return "های خصوصی Type";
922 }
924 {
925 return "خواص (متغييرهای) خصوصی";
926 }
928 {
929 return "خواص (متغييرهای) خصوصی ثابت";
930 }
931
932//////////////////////////////////////////////////////////////////////////
933// new since 1.1.3
934//////////////////////////////////////////////////////////////////////////
935
936 /*! Used as a marker that is put before a \\todo item */
937 DString trTodo() override
938 {
939 return "برای انجام";
940 }
941 /*! Used as the header of the todo list */
943 {
944 return "ليست کارهاي آينده";
945 }
946
947//////////////////////////////////////////////////////////////////////////
948// new since 1.1.4
949//////////////////////////////////////////////////////////////////////////
950
952 {
953 return " استفاده شده توسط ";
954 }
956 {
957 return "ملاحظات";
958 }
960 {
961 return "توجه";
962 }
964 {
965 return "این نمودار فایل هایی را که این فایل را به طور مستقیم یا غیر مستقیم استفاده کرده اند نشان می دهد";
966 }
967 DString trSince() override
968 {
969 return "از";
970 }
971
972//////////////////////////////////////////////////////////////////////////
973// new since 1.1.5
974//////////////////////////////////////////////////////////////////////////
975
976 /*! title of the graph legend page */
978 {
979 return "راهنمای نمودار";
980 }
981 /*! page explaining how the dot graph's should be interpreted
982 * The %A in the text below are to prevent link to classes called "A".
983 */
985 {
986 return
987 "This page explains how to interpret the graphs that are generated "
988 "by doxygen.<p>\n"
989 "Consider the following example:\n"
990 "\\code\n"
991 "/*! Invisible class because of truncation */\n"
992 "class Invisible { };\n\n"
993 "/*! Truncated class, inheritance relation is hidden */\n"
994 "class Truncated : public Invisible { };\n\n"
995 "/* Class not documented with doxygen comments */\n"
996 "class Undocumented { };\n\n"
997 "/*! Class that is inherited using public inheritance */\n"
998 "class PublicBase : public Truncated { };\n\n"
999 "/*! A template class */\n"
1000 "template<class T> class Templ { };\n\n"
1001 "/*! Class that is inherited using protected inheritance */\n"
1002 "class ProtectedBase { };\n\n"
1003 "/*! Class that is inherited using private inheritance */\n"
1004 "class PrivateBase { };\n\n"
1005 "/*! Class that is used by the Inherited class */\n"
1006 "class Used { };\n\n"
1007 "/*! Super class that inherits a number of other classes */\n"
1008 "class Inherited : public PublicBase,\n"
1009 " protected ProtectedBase,\n"
1010 " private PrivateBase,\n"
1011 " public Undocumented\n"
1012 " public Templ<int>\n"
1013 "{\n"
1014 " private:\n"
1015 " Used *m_usedClass;\n"
1016 "};\n"
1017 "\\endcode\n"
1018 "If the \\c MAX_DOT_GRAPH_HEIGHT tag in the configuration file "
1019 "is set to 240 this will result in the following graph:"
1020 "<p><center><img alt=\"\" src=\"graph_legend."+getDotImageExtension()+"\"></center>\n"
1021 "<p>\n"
1022 "The boxes in the above graph have the following meaning:\n"
1023 "<ul>\n"
1024 "<li>%A filled black box represents the struct or class for which the "
1025 "graph is generated.\n"
1026 "<li>%A box with a black border denotes a documented struct or class.\n"
1027 "<li>%A box with a gray border denotes an undocumented struct or class.\n"
1028 "<li>%A box with a red border denotes a documented struct or class for"
1029 "which not all inheritance/containment relations are shown. %A graph is "
1030 "truncated if it does not fit within the specified boundaries.\n"
1031 "</ul>\n"
1032 "The arrows have the following meaning:\n"
1033 "<ul>\n"
1034 "<li>%A dark blue arrow is used to visualize a public inheritance "
1035 "relation between two classes.\n"
1036 "<li>%A dark green arrow is used for protected inheritance.\n"
1037 "<li>%A dark red arrow is used for private inheritance.\n"
1038 "<li>%A purple dashed arrow is used if a class is contained or used "
1039 "by another class. The arrow is labeled with the variable(s) "
1040 "through which the pointed class or struct is accessible.\n"
1041 "<li>%A yellow dashed arrow denotes a relation between a template instance and "
1042 "the template class it was instantiated from. The arrow is labeled with "
1043 "the template parameters of the instance.\n"
1044 "</ul>\n";
1045 }
1046 /*! text for the link to the legend page */
1048 {
1049 return "راهنما";
1050 }
1051
1052//////////////////////////////////////////////////////////////////////////
1053// new since 1.2.0
1054//////////////////////////////////////////////////////////////////////////
1055
1056 /*! Used as a marker that is put before a test item */
1057 DString trTest() override
1058 {
1059 return "تست";
1060 }
1061 /*! Used as the header of the test list */
1063 {
1064 return "Test List";
1065 }
1066
1067//////////////////////////////////////////////////////////////////////////
1068// new since 1.2.2
1069//////////////////////////////////////////////////////////////////////////
1070
1071 /*! Used as a section header for IDL properties */
1073 {
1074 return "خاصیت ها";
1075 }
1076 /*! Used as a section header for IDL property documentation */
1078 {
1079 return "مستندات خاصیت";
1080 }
1081
1082//////////////////////////////////////////////////////////////////////////
1083// new since 1.2.4
1084//////////////////////////////////////////////////////////////////////////
1085
1086 /*! Used for Java classes in the summary section of Java packages */
1088 {
1089 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
1090 {
1091 return "ساختار های داده";
1092 }
1093 else
1094 {
1095 return "كلاس ها";
1096 }
1097 }
1098 /*! Used as the title of a Java package */
1099 DString trPackage(const DString &name) override
1100 {
1101 return "Package "+name;
1102 }
1103 /*! The description of the package index page */
1105 {
1106 return "لیست بسته ها به همراه توضیح مختر در صورت وجود :";
1107 }
1108 /*! The link name in the Quick links header for each page */
1110 {
1111 return "بسته ها";
1112 }
1113 /*! Text shown before a multi-line define */
1115 {
1116 return "مقدار:";
1117 }
1118
1119//////////////////////////////////////////////////////////////////////////
1120// new since 1.2.5
1121//////////////////////////////////////////////////////////////////////////
1122
1123 /*! Used as a marker that is put before a \\bug item */
1124 DString trBug() override
1125 {
1126 return "اشکال";
1127 }
1128 /*! Used as the header of the bug list */
1130 {
1131 return "ليست اشکالات";
1132 }
1133
1134//////////////////////////////////////////////////////////////////////////
1135// new since 1.2.6
1136//////////////////////////////////////////////////////////////////////////
1137
1138 /*! Used as ansicpg for RTF file
1139 *
1140 * The following table shows the correlation of Charset name, Charset Value and
1141 * <pre>
1142 * Codepage number:
1143 * Charset Name Charset Value(hex) Codepage number
1144 * ------------------------------------------------------
1145 * DEFAULT_CHARSET 1 (x01)
1146 * SYMBOL_CHARSET 2 (x02)
1147 * OEM_CHARSET 255 (xFF)
1148 * ANSI_CHARSET 0 (x00) 1252
1149 * RUSSIAN_CHARSET 204 (xCC) 1251
1150 * EE_CHARSET 238 (xEE) 1250
1151 * GREEK_CHARSET 161 (xA1) 1253
1152 * TURKISH_CHARSET 162 (xA2) 1254
1153 * BALTIC_CHARSET 186 (xBA) 1257
1154 * HEBREW_CHARSET 177 (xB1) 1255
1155 * ARABIC _CHARSET 178 (xB2) 1256
1156 * SHIFTJIS_CHARSET 128 (x80) 932
1157 * HANGEUL_CHARSET 129 (x81) 949
1158 * GB2313_CHARSET 134 (x86) 936
1159 * CHINESEBIG5_CHARSET 136 (x88) 950
1160 * </pre>
1161 *
1162 */
1164 {
1165 return "1256";
1166 }
1167
1168
1169 /*! Used as ansicpg for RTF fcharset
1170 * \see trRTFansicp() for a table of possible values.
1171 */
1173 {
1174 return "178";
1175 }
1176
1177 /*! Used as header RTF general index */
1179 {
1180 return "فهرست";
1181 }
1182
1183 /*! This is used for translation of the word that will possibly
1184 * be followed by a single name or by a list of names
1185 * of the category.
1186 */
1187 DString trClass(bool first_capital, bool singular) override
1188 {
1189 DString result((first_capital ? "کلاس" : "کلاس"));
1190 if (!singular) result+="ها";
1191 return result;
1192 }
1193
1194 /*! This is used for translation of the word that will possibly
1195 * be followed by a single name or by a list of names
1196 * of the category.
1197 */
1198 DString trFile(bool /*first_capital*/, bool singular) override
1199 {
1200 DString result("پرونده");
1201 if (!singular) result=result+" ها";
1202 return result;
1203 }
1204
1205 /*! This is used for translation of the word that will possibly
1206 * be followed by a single name or by a list of names
1207 * of the category.
1208 */
1209 DString trNamespace(bool first_capital, bool singular) override
1210 {
1211 DString result((first_capital ? "فضای نام " : "فضای نام "));
1212 if (!singular) result+="ها";
1213 return result;
1214 }
1215
1216 /*! This is used for translation of the word that will possibly
1217 * be followed by a single name or by a list of names
1218 * of the category.
1219 */
1220 DString trGroup(bool first_capital, bool singular) override
1221 {
1222 DString result((first_capital ? "Group" : "group"));
1223 if (!singular) result+="s";
1224 return result;
1225 }
1226
1227 /*! This is used for translation of the word that will possibly
1228 * be followed by a single name or by a list of names
1229 * of the category.
1230 */
1231 DString trPage(bool first_capital, bool singular) override
1232 {
1233 DString result((first_capital ? "صفحه" : "صفحه"));
1234 if (!singular) result+=" ها ";
1235 return result;
1236 }
1237
1238 /*! This is used for translation of the word that will possibly
1239 * be followed by a single name or by a list of names
1240 * of the category.
1241 */
1242 DString trMember(bool first_capital, bool singular) override
1243 {
1244 DString result((first_capital ? "عضو" : "عضو"));
1245 if (!singular) result+="ها";
1246 return result;
1247 }
1248
1249 /*! This is used for translation of the word that will possibly
1250 * be followed by a single name or by a list of names
1251 * of the category.
1252 */
1253 DString trGlobal(bool first_capital, bool singular) override
1254 {
1255 DString result((first_capital ? "Global" : "global"));
1256 if (!singular) result+="s";
1257 return result;
1258 }
1259
1260//////////////////////////////////////////////////////////////////////////
1261// new since 1.2.7
1262//////////////////////////////////////////////////////////////////////////
1263
1264 /*! This text is generated when the \\author command is used and
1265 * for the author section in man pages. */
1266 DString trAuthor(bool first_capital, bool singular) override
1267 {
1268 DString result((first_capital ? "Author" : "author"));
1269 if (!singular) result+="s";
1270 return result;
1271 }
1272
1273//////////////////////////////////////////////////////////////////////////
1274// new since 1.2.11
1275//////////////////////////////////////////////////////////////////////////
1276
1277 /*! This text is put before the list of members referenced by a member
1278 */
1280 {
1281 return "را استفاده ميکند ";
1282 }
1283
1284//////////////////////////////////////////////////////////////////////////
1285// new since 1.2.13
1286//////////////////////////////////////////////////////////////////////////
1287
1288 /*! used in member documentation blocks to produce a list of
1289 * members that are implemented by this one.
1290 */
1291 DString trImplementedFromList(int numEntries) override
1292 {
1293 return "را تکميل می کند "+trWriteList(numEntries)+".";
1294 }
1295
1296 /*! used in member documentation blocks to produce a list of
1297 * all members that implement this abstract member.
1298 */
1299 DString trImplementedInList(int numEntries) override
1300 {
1301 return ".تکميل شده است "+trWriteList(numEntries)+" در";
1302 }
1303
1304//////////////////////////////////////////////////////////////////////////
1305// new since 1.2.16
1306//////////////////////////////////////////////////////////////////////////
1307
1308 /*! used in RTF documentation as a heading for the Table
1309 * of Contents.
1310 */
1312 {
1313 return "فهرست";
1314 }
1315
1316//////////////////////////////////////////////////////////////////////////
1317// new since 1.2.17
1318//////////////////////////////////////////////////////////////////////////
1319
1320 /*! Used as the header of the list of item that have been
1321 * flagged deprecated
1322 */
1324 {
1325 return "لیست آیتم های از رده خارج";
1326 }
1327
1328//////////////////////////////////////////////////////////////////////////
1329// new since 1.2.18
1330//////////////////////////////////////////////////////////////////////////
1331
1332 /*! Used as a header for declaration section of the events found in
1333 * a C# program
1334 */
1336 {
1337 return "رویداد ها";
1338 }
1339 /*! Header used for the documentation section of a class' events. */
1341 {
1342 return "مستندات رویداد";
1343 }
1344
1345//////////////////////////////////////////////////////////////////////////
1346// new since 1.3
1347//////////////////////////////////////////////////////////////////////////
1348
1349 /*! Used as a heading for a list of Java class types with package scope.
1350 */
1352 {
1353 return "انواع بسته ها";
1354 }
1355 /*! Used as a heading for a list of Java class functions with package
1356 * scope.
1357 */
1359 {
1360 return "توابع بسته ها";
1361 }
1363 {
1364 return "عضوها بسته ها";
1365 }
1366 /*! Used as a heading for a list of static Java class functions with
1367 * package scope.
1368 */
1370 {
1371 return "Static Package Functions";
1372 }
1373 /*! Used as a heading for a list of Java class variables with package
1374 * scope.
1375 */
1377 {
1378 return "خواص بسته ها";
1379 }
1380 /*! Used as a heading for a list of static Java class variables with
1381 * package scope.
1382 */
1384 {
1385 return "Static Package Attributes";
1386 }
1387
1388//////////////////////////////////////////////////////////////////////////
1389// new since 1.3.1
1390//////////////////////////////////////////////////////////////////////////
1391
1392 /*! Used in the quick index of a class/file/namespace member list page
1393 * to link to the unfiltered list of all members.
1394 */
1395 DString trAll() override
1396 {
1397 return "همه";
1398 }
1399 /*! Put in front of the call graph for a function. */
1401 {
1402 return "نمودار صدا زدن برای این تابع :";
1403 }
1404
1405//////////////////////////////////////////////////////////////////////////
1406// new since 1.3.3
1407//////////////////////////////////////////////////////////////////////////
1408
1409 /*! This string is used as the title for the page listing the search
1410 * results.
1411 */
1413 {
1414 return "نتايج جستجو";
1415 }
1416 /*! This string is put just before listing the search results. The
1417 * text can be different depending on the number of documents found.
1418 * Inside the text you can put the special marker $num to insert
1419 * the number representing the actual number of search results.
1420 * The @a numDocuments parameter can be either 0, 1 or 2, where the
1421 * value 2 represents 2 or more matches. HTML markup is allowed inside
1422 * the returned string.
1423 */
1424 DString trSearchResults(int numDocuments) override
1425 {
1426 if (numDocuments==0)
1427 {
1428 return "متاسفانه هیچ صفحه ای برای جستجو ی شما یافت نشد.";
1429 }
1430 else if (numDocuments==1)
1431 {
1432 return "یک سند برای این مورد یافت شد.";
1433 }
1434 else
1435 {
1436 return "Found <b>$num</b> documents matching your query. "
1437 "Showing best matches first.";
1438 }
1439 }
1440 /*! This string is put before the list of matched words, for each search
1441 * result. What follows is the list of words that matched the query.
1442 */
1444 {
1445 return "Matches:";
1446 }
1447
1448//////////////////////////////////////////////////////////////////////////
1449// new since 1.3.8
1450//////////////////////////////////////////////////////////////////////////
1451
1452 /*! This is used in HTML as the title of page with source code for file filename
1453 */
1454 DString trSourceFile(const DString& filename) override
1455 {
1456 return filename + " کد و پرونده منبع";
1457 }
1458
1459//////////////////////////////////////////////////////////////////////////
1460// new since 1.3.9
1461//////////////////////////////////////////////////////////////////////////
1462
1463 /*! This is used as the name of the chapter containing the directory
1464 * hierarchy.
1465 */
1467 { return "ساختار و سلسله مراتب شاخه ها"; }
1468
1469 /*! This is used as the name of the chapter containing the documentation
1470 * of the directories.
1471 */
1473 { return "مستندات دايرکتوری"; }
1474
1475 /*! This is used as the title of the directory index and also in the
1476 * Quick links of an HTML page, to link to the directory hierarchy.
1477 */
1479 { return "شاخه ها"; }
1480
1481 /*! This returns the title of a directory page. The name of the
1482 * directory is passed via \a dirName.
1483 */
1484 DString trDirReference(const DString &dirName) override
1485 { DString result=dirName; result+=" مرجع شاخه ی"; return result; }
1486
1487 /*! This returns the word directory with or without starting capital
1488 * (\a first_capital) and in singular or plural form (\a singular).
1489 */
1490 DString trDir(bool /*first_capital*/, bool singular) override
1491 {
1492 DString result("شاخه");
1493 if (singular) result+=" ها "+result;
1494 return result;
1495 }
1496
1497//////////////////////////////////////////////////////////////////////////
1498// new since 1.4.1
1499//////////////////////////////////////////////////////////////////////////
1500
1501 /*! This text is added to the documentation when the \\overload command
1502 * is used for a overloaded function.
1503 */
1505 {
1506 return "This is an overloaded member function, "
1507 "provided for convenience. It differs from the above "
1508 "function only in what argument(s) it accepts.";
1509 }
1510
1511//////////////////////////////////////////////////////////////////////////
1512// new since 1.4.6
1513//////////////////////////////////////////////////////////////////////////
1514
1515 /*! This is used to introduce a caller (or called-by) graph */
1517 {
1518 return "نمودار صدا زننده های این تابع:";
1519 }
1520//////////////////////////////////////////////////////////////////////////
1521// new since 1.5.4 (mainly for Fortran)
1522//////////////////////////////////////////////////////////////////////////
1523
1524 /*! header that is put before the list of member subprograms (Fortran). */
1526 { return "مستندات توابع عضو"; }
1527
1528 /*! This is put above each page as a link to the list of annotated data types (Fortran). */
1530 { return "لیست ساختار های داده"; }
1531
1532 /*! This is put above each page as a link to all members of compounds (Fortran). */
1534 { return "فیلدهای اطلاعات"; }
1535
1536 /*! This is an introduction to the annotated compound list (Fortran). */
1538 { return "ساختارهای داده به همراه توضیح کوتاه :"; }
1539
1540 /*! This is an introduction to the page with all data types (Fortran). */
1542 {
1543 return "توضیحات اعضا ساختارها به همراه مستندات ساختار داده ی مربوطه";
1544 }
1545
1546 /*! This is used in LaTeX as the title of the chapter with the
1547 * annotated compound index (Fortran).
1548 */
1550 { return "Data Type Index"; }
1551
1552 /*! This is used in LaTeX as the title of the chapter containing
1553 * the documentation of all data types (Fortran).
1554 */
1556 { return "Data Type Documentation"; }
1557
1558 /*! This is used in the documentation of a file as a header before the
1559 * list of (global) subprograms (Fortran).
1560 */
1562 { return "توابع و زیربرنامه ها"; }
1563
1564 /*! This is used in the documentation of a file/namespace before the list
1565 * of documentation blocks for subprograms (Fortran)
1566 */
1568 { return "مستندات توابع و زیربرنامه ها"; }
1569
1570 /*! This is used in the documentation of a file/namespace/group before
1571 * the list of links to documented compounds (Fortran)
1572 */
1574 { return "ساختار های داده"; }
1575
1576 /*! used as the title of page containing all the index of all modules (Fortran). */
1578 { return "لیست ماژول ها"; }
1579
1580 /*! used as an introduction to the modules list (Fortran) */
1582 {
1583 DString result="لیست ماژول ها به همراه توضیحات کوتاه";
1584 return result;
1585 }
1586
1587 /*! used as the title of the HTML page of a module/type (Fortran) */
1589 ClassDef::CompoundType compType,
1590 bool isTemplate) override
1591 {
1592 DString result=clName;
1593 switch(compType)
1594 {
1595 case ClassDef::Class: result+=" Module"; break;
1596 case ClassDef::Struct: result+=" Type"; break;
1597 case ClassDef::Union: result+=" Union"; break;
1598 case ClassDef::Interface: result+=" Interface"; break;
1599 case ClassDef::Protocol: result+=" Protocol"; break;
1600 case ClassDef::Category: result+=" Category"; break;
1601 case ClassDef::Exception: result+=" Exception"; break;
1602 default: break;
1603 }
1604 if (isTemplate) result+=" Template";
1605 result+=" Reference";
1606 return result;
1607 }
1608 /*! used as the title of the HTML page of a module (Fortran) */
1609 DString trModuleReference(const DString &namespaceName) override
1610 {
1611 DString result=namespaceName;
1612 result+=" Module Reference";
1613 return result;
1614 }
1615
1616 /*! This is put above each page as a link to all members of modules. (Fortran) */
1618 { return "اعضاء ماژول"; }
1619
1620 /*! This is an introduction to the page with all modules members (Fortran) */
1622 {
1623 DString result="لیست اعضاء ماژول ها به همراه مستندات ماژول مربوطه";
1624 return result;
1625 }
1626
1627 /*! This is used in LaTeX as the title of the chapter with the
1628 * index of all modules (Fortran).
1629 */
1631 { return "Modules Index"; }
1632
1633 /*! This is used for translation of the word that will possibly
1634 * be followed by a single name or by a list of names
1635 * of the category.
1636 */
1637 DString trModule(bool, bool singular) override
1638 {
1639 DString result("ماژول");
1640 if (!singular) result+=" ها";
1641 return result;
1642 }
1643 /*! This is put at the bottom of a module documentation page and is
1644 * followed by a list of files that were used to generate the page.
1645 */
1647 bool single) override
1648 { // here s is one of " Module", " Struct" or " Union"
1649 // single is true implies a single file
1650 DString result="The documentation for this ";
1651 switch(compType)
1652 {
1653 case ClassDef::Class: result+="module"; break;
1654 case ClassDef::Struct: result+="type"; break;
1655 case ClassDef::Union: result+="union"; break;
1656 case ClassDef::Interface: result+="interface"; break;
1657 case ClassDef::Protocol: result+="protocol"; break;
1658 case ClassDef::Category: result+="category"; break;
1659 case ClassDef::Exception: result+="exception"; break;
1660 default: break;
1661 }
1662 result+=" was generated from the following file";
1663 if (single) result+=":"; else result+="s:";
1664 return result;
1665 }
1666 /*! This is used for translation of the word that will possibly
1667 * be followed by a single name or by a list of names
1668 * of the category.
1669 */
1670 DString trType(bool first_capital, bool singular) override
1671 {
1672 return createNoun(first_capital, singular, "type", "s");
1673 }
1674 /*! This is used for translation of the word that will possibly
1675 * be followed by a single name or by a list of names
1676 * of the category.
1677 */
1678 DString trSubprogram(bool, bool singular) override
1679 {
1680 DString result("زیربرنامه");
1681 if (!singular) result+=" ها ";
1682 return result;
1683 }
1684
1685 /*! C# Type Constraint list */
1687 {
1688 return "Type Constraints";
1689 }
1690
1691//////////////////////////////////////////////////////////////////////////
1692// new since 1.6.0 (mainly for the new search engine)
1693//////////////////////////////////////////////////////////////////////////
1694
1695 /*! directory relation for \a name */
1696 DString trDirRelation(const DString &name) override
1697 {
1698 return name + " Relation";
1699 }
1700
1701 /*! Loading message shown when loading search results */
1703 {
1704 return "در حال بارگذاری...";
1705 }
1706
1707 /*! Label used for search results in the global namespace */
1709 {
1710 return "فضای نام جهانی";
1711 }
1712
1713 /*! Message shown while searching */
1715 {
1716 return "در حال جستجو...";
1717 }
1718
1719 /*! Text shown when no search results are found */
1721 {
1722 return "یافت نشد";
1723 }
1724
1725//////////////////////////////////////////////////////////////////////////
1726// new since 1.6.3 (missing items for the directory pages)
1727//////////////////////////////////////////////////////////////////////////
1728
1729 /*! when clicking a directory dependency label, a page with a
1730 * table is shown. The heading for the first column mentions the
1731 * source file that has a relation to another file.
1732 */
1733 DString trFileIn(const DString &name) override
1734 {
1735 return "پرونده ای در "+name;
1736 }
1737
1738 /*! when clicking a directory dependency label, a page with a
1739 * table is shown. The heading for the second column mentions the
1740 * destination file that is included.
1741 */
1742 DString trIncludesFileIn(const DString &name) override
1743 {
1744 return "Includes file in "+name;
1745 }
1746
1747 /** Compiles a date string.
1748 * @param year Year in 4 digits
1749 * @param month Month of the year: 1=January
1750 * @param day Day of the Month: 1..31
1751 * @param dayOfWeek Day of the week: 1=Monday..7=Sunday
1752 * @param hour Hour of the day: 0..23
1753 * @param minutes Minutes in the hour: 0..59
1754 * @param seconds Seconds within the minute: 0..59
1755 * @param includeTime Include time in the result string?
1756 */
1757 DString trDateTime(int year,int month,int day,int dayOfWeek,
1758 int hour,int minutes,int seconds,
1759 DateTimeType includeTime) override
1760 {
1761 static const char *days[] = { "دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه","یکشنبه" };
1762 static const char *months[] = { "ژانویه","فوریه","مارس","آوریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر" };
1763 DString sdate;
1764 if (includeTime == DateTimeType::DateTime || includeTime == DateTimeType::Date)
1765 {
1766 sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year);
1767 }
1768 if (includeTime == DateTimeType::DateTime) sdate += " ";
1769 if (includeTime == DateTimeType::DateTime || includeTime == DateTimeType::Time)
1770 {
1771 DString stime;
1772 stime.sprintf("%.2d:%.2d:%.2d",hour,minutes,seconds);
1773 sdate+=stime;
1774 }
1775 return convertDigitsToFarsi(sdate);
1776 }
1777 DString trDayOfWeek(int dayOfWeek, bool, bool full) override
1778 {
1779 static const char *days_short[] = { "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه", "يكشنبه" };
1780 static const char *days_full[] = { "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه", "يكشنبه" };
1781 DString text = full? days_full[dayOfWeek-1] : days_short[dayOfWeek-1];
1782 return text;
1783 }
1784 DString trMonth(int month, bool, bool full) override
1785 {
1786 static const char *months_short[] = { "ژانويه", "فوريه", "مارس", "آوريل", "مه", "ژوئن", "ژوئيه", "اوت", "سپتامبر", "اُكتبر", "نوامبر", "دسامبر" };
1787 static const char *months_full[] = { "ژانويه", "فوريه", "مارس", "آوريل", "مه", "ژوئن", "ژوئيه", "اوت", "سپتامبر", "اُكتبر", "نوامبر", "دسامبر" };
1788 DString text = full? months_full[month-1] : months_short[month-1];
1789 return text;
1790 }
1791 DString trDayPeriod(bool period) override
1792 {
1793 static const char *dayPeriod[] = { "قبل‌ازظهر", "بعدازظهر" };
1794 return dayPeriod[period?1:0];
1795 }
1796
1797};
1798
1799#endif
CompoundType
The various compound types.
Definition classdef.h:105
@ Interface
Definition classdef.h:108
@ Exception
Definition classdef.h:111
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition dstring.h:84
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
Definition dstring.h:148
char & at(size_t i)
Returns a reference to the character at index i.
Definition dstring.h:686
DString & sprintf(const char *format,...)
Definition dstring.cpp:34
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition dstring.h:151
Adapter class for languages that only contain translations up to version 1.7.5.
DString trDesignUnitDocumentation() override
DString createNoun(bool first_capital, bool singular, const DString &base, const DString &plurSuffix, const DString &singSuffix="")
Definition translator.h:799
DString p_latexCommandName(const DString &latexCmd)
Definition translator.h:786
DString trLegendDocs() override
DString trExamples() override
DString trPublicMembers() override
DString getLanguageString() override
language codes for Html help
DString trModuleReference(const DString &namespaceName) override
DString trNamespaceList() override
DString trOverloadText() override
DString trStaticPrivateAttribs() override
DString trVersion() override
DString trFriends() override
DString trNamespace(bool first_capital, bool singular) override
DString trModulesList() override
DString trCompoundReference(const DString &clName, ClassDef::CompoundType compType, bool isTemplate) override
DString trMemberList() override
DString trModulesMembers() override
DString trDetailedDescription() override
DString trModulesDescription() override
DString trListOfAllMembers() override
DString trSubprogram(bool, bool singular) override
DString trPrivateMembers() override
DString trSearchResultsTitle() override
DString trStaticPrivateMembers() override
DString trMember(bool first_capital, bool singular) override
DString trPage(bool first_capital, bool singular) override
DString trRemarks() override
DString trGotoGraphicalHierarchy() override
DString trType(bool first_capital, bool singular) override
DString trDirRelation(const DString &name) override
DString trGotoTextualHierarchy() override
DString trThisIsTheListOfAllMembers() override
DString trTypedefDocumentation() override
DString trPrivateAttribs() override
DString trExamplesDescription() override
DString trDirIndex() override
DString trFileDocumentation() override
DString trReferenceManual() override
DString trReferencedBy() override
DString trInvariant() override
DString trCompoundMembersDescription(bool extractAll) override
DString trFileMembersDescription(bool extractAll) override
DString trFileList() override
DString trFileMembers() override
DString trRelatedFunctionDocumentation() override
DString trEnumValue() override
DString trPrivateTypes() override
DString trModules() override
DString trNamespaceIndex() override
DString trCompoundMembersFortran() override
DString trPrivateSlots() override
DString trInclDepGraph(const DString &fName) override
DString trTodo() override
DString trPackageFunctions() override
DString trMonth(int month, bool, bool full) override
DString trLoading() override
DString trSearch() override
DString trProtectedSlots() override
DString trBug() override
DString trSourceFile(const DString &filename) override
DString trNamespaceReference(const DString &namespaceName) override
DString trClasses() override
DString trCompoundReferenceFortran(const DString &clName, ClassDef::CompoundType compType, bool isTemplate) override
DString trPropertyDocumentation() override
DString trNamespaceDocumentation() override
DString trModuleIndex() override
DString trDirDocumentation() override
DString trCompoundMembersDescriptionFortran(bool) override
DString trMemberFunctionDocumentationFortran() override
DString trDate() override
DString trTypeDocumentation() override
DString trSince() override
DString trInheritsList(int numEntries) override
DString trDirReference(const DString &dirName) override
DString trDayPeriod(bool period) override
DString trDayOfWeek(int dayOfWeek, bool, bool full) override
DString trDetails() override
DString trRelatedSubscript() override
DString trDefineValue() override
DString trParameters() override
DString trExceptions() override
DString trFunctionDocumentation() override
DString trDefinedAtLineInSourceFile() override
DString trMore() override
DString trGraphicalHierarchy() override
DString trPackageAttribs() override
DString trCode() override
DString trCompoundListDescription() override
DString trReimplementedFromList(int numEntries) override
DString trConstructorDocumentation() override
DString trStaticPackageAttribs() override
DString trTypeConstraints() override
DString trEnumerationValueDocumentation() override
DString trPackageMembers() override
DString trTest() override
DString trSearching() override
DString trDir(bool, bool singular) override
DString trCallerGraph() override
DString trModulesMemberDescription(bool) override
DString trRTFansicp() override
DString trEnumName() override
DString trPackageTypes() override
DString trCompoundMembers() override
DString trTodoList() override
DString trBugList() override
DString trAttention() override
DString trCompoundListFortran() override
DString trPrecondition() override
DString trClassHierarchyDescription() override
DString trNamespaces() override
DString trPageIndex() override
DString trModulesIndex() override
DString trCompoundIndexFortran() override
DString trSubprogramDocumentation() override
DString trMemberTypedefDocumentation() override
DString trMemberEnumerationDocumentation() override
DString trNamespaceListDescription(bool extractAll) override
DString trFileReference(const DString &fileName) override
DString trFileIndex() override
DString latexCommandName() override
DString trRelatedPages() override
DString trClassDocumentation() override
DString trRTFCharSet() override
DString trPublicTypes() override
DString trGotoDocumentation() override
DString trSubprograms() override
DString trEvents() override
DString trReferences() override
DString trIncludingInheritedMembers() override
DString trGotoSourceCode() override
DString trAll() override
DString trInclByDepGraph() override
DString trISOLang() override
DString trSearchMatches() override
DString trStaticPublicAttribs() override
DString trInheritedByList(int numEntries) override
DString trImplementedInList(int numEntries) override
DString trDirectories() override
DString trTypedefs() override
DString trNote() override
DString trClassHierarchy() override
DString trLegend() override
DString trFunctions() override
DString trModule(bool, bool singular) override
DString trDefines() override
DString trStaticProtectedAttribs() override
DString trModulesListDescription(bool) override
DString trCollaborationDiagram(const DString &clName) override
DString trGlobalNamespace() override
DString trNoMatches() override
DString trDateTime(int year, int month, int day, int dayOfWeek, int hour, int minutes, int seconds, DateTimeType includeTime) override
Compiles a date string.
DString trDefinedInSourceFile() override
DString trDeprecated() override
DString trProtectedTypes() override
DString trProtectedMembers() override
DString trRTFTableOfContents() override
DString trCompoundList() override
DString trGlobal(bool first_capital, bool singular) override
DString trGeneratedFromFiles(ClassDef::CompoundType compType, bool single) override
DString trProperties() override
DString trHierarchicalIndex() override
DString trCompoundListDescriptionFortran() override
DString latexLanguageSupportCommand() override
DString trLegendTitle() override
DString trCompoundIndex() override
DString trDefineDocumentation() override
DString trDeprecatedList() override
DString trGeneratedBy() override
DString trReturns() override
DString trModuleDocumentation() override
DString trPublicSlots() override
DString convertDigitsToFarsi(DString str)
Converts english digits of an input string to persian equivalents.
DString trDefinedIn() override
DString trDocumentation(const DString &projName) override
DString trSeeAlso() override
DString trWarning() override
DString trStaticProtectedMembers() override
DString trAuthor(bool first_capital, bool singular) override
DString trEnumerationTypeDocumentation() override
DString trFileListDescription(bool extractAll) override
DString trRelatedPagesDescription() override
DString trTestList() override
DString trEnumerations() override
DString trFile(bool, bool singular) override
DString trProtectedAttribs() override
DString trRTFGeneralIndex() override
DString trMemberDataDocumentation() override
DString trStaticPackageFunctions() override
DString trMemberFunctionDocumentation() override
DString trSearchResults(int numDocuments) override
DString trPackageListDescription() override
DString trVariableDocumentation() override
DString trIncludesFileIn(const DString &name) override
DString idLanguage() override
DString trInitialValue() override
DString trNamespaceMembers() override
DString trPackages() override
DString trReimplementedInList(int numEntries) override
DString trCompounds() override
DString trReturnValues() override
DString trGeneratedFromFilesFortran(ClassDef::CompoundType compType, bool single) override
DString trGeneratedAutomatically(const DString &s) override
DString trSignals() override
DString trClassDiagram(const DString &clName) override
DString trCallGraph() override
DString trRelatedFunctions() override
DString trImplementedFromList(int numEntries) override
DString trGroup(bool first_capital, bool singular) override
DString trPostcondition() override
DString trNamespaceMemberDescription(bool extractAll) override
DString trStaticPublicMembers() override
DString trFileIn(const DString &name) override
DString trGeneratedAt(const DString &date, const DString &projName) override
DString trEventDocumentation() override
DString trEnumerationValues() override
DString trMainPage() override
DString trPublicAttribs() override
DString trVariables() override
DString trDataTypes() override
DString trClass(bool first_capital, bool singular) override
DString trWriteList(int numEntries) override
DString trPackage(const DString &name) override
DString trPageAbbreviation() override
#define Config_getBool(name)
Definition config.h:33
DateTimeType
Definition datetime.h:38
DString generateMarker(int id)
Definition dstring.h:904
#define HtmlDivEnd
#define HtmlRightToLeft
DString getDotImageExtension()
Definition util.cpp:4964