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::Record: return english.trCompoundReference(clName,compType,isTemplate);
601 case ClassDef::Union: result=" Union"; break;
602 case ClassDef::Interface: result=" Interface"; break;
603 case ClassDef::Protocol: result=" Protocol"; break;
604 case ClassDef::Category: result=" Category"; break;
605 case ClassDef::Exception: result=" استثناء"; break;
606 default: break;
607 }
608 if (isTemplate) result+=" قالب";
609 result=clName + " مرجع" +result ;
610 return result;
611 }
612
613 /*! used as the title of the HTML page of a file */
614 DString trFileReference(const DString &fileName) override
615 {
616 DString result=fileName;
617 result+=" مرجع پرونده";
618 return result;
619 }
620
621 /*! used as the title of the HTML page of a namespace */
622 DString trNamespaceReference(const DString &namespaceName) override
623 {
624 DString result=namespaceName;
625 result+=" مرجع فضای نام";
626 return result;
627 }
628
630 { return "توابع عمومی عضو کلاس"; }
632 { return "های عمومی Slot"; }
634 { return "سيگنال ها"; }
636 { return "توابع ثابت عمومی عضو کلاس"; }
638 { return "توابع خصوصی عضو کلاس"; }
640 { return "های محافظت شده Slot"; }
642 { return "توابع ثابت محافظت شده عضو کلاس"; }
644 { return "توابع خصوصی عضو کلاس"; }
646 { return "های خصوصی Slot"; }
648 { return "توابع خصوصی ثابت عضو کلاس"; }
649
650 /*! this function is used to produce a comma-separated list of items.
651 * use generateMarker(i) to indicate where item i should be put.
652 */
653 DString trWriteList(int numEntries) override
654 {
655 DString result;
656 // the inherits list contain `numEntries' classes
657 for (int i=0;i<numEntries;i++)
658 {
659 // use generateMarker to generate placeholders for the class links!
660 result+=generateMarker(i); // generate marker for entry i in the list
661 // (order is left to right)
662
663 if (i!=numEntries-1) // not the last entry, so we need a separator
664 {
665 if (i<numEntries-2) // not the fore last entry
666 result+=", ";
667 else // the fore last entry
668 result+=" و ";
669 }
670 }
671 return result;
672 }
673
674 /*! used in class documentation to produce a list of base classes,
675 * if class diagrams are disabled.
676 */
677 DString trInheritsList(int numEntries) override
678 {
679 return ".را به ارث می برد "+trWriteList(numEntries)+".";
680 }
681
682 /*! used in class documentation to produce a list of super classes,
683 * if class diagrams are disabled.
684 */
685 DString trInheritedByList(int numEntries) override
686 {
687 return ".اين کلاس را به ارث برده است "+trWriteList(numEntries)+".";
688 }
689
690 /*! used in member documentation blocks to produce a list of
691 * members that are hidden by this one.
692 */
693 DString trReimplementedFromList(int numEntries) override
694 {
695 return "Reimplemented from "+trWriteList(numEntries)+".";
696 }
697
698 /*! used in member documentation blocks to produce a list of
699 * all member that overwrite the implementation of this member.
700 */
701 DString trReimplementedInList(int numEntries) override
702 {
703 return "تعریف شده است "+trWriteList(numEntries)+"دوباره در ";
704 }
705
706 /*! This is put above each page as a link to all members of namespaces. */
708 { return "اعضای فضاهای نام"; }
709
710 /*! This is an introduction to the page with all namespace members */
711 DString trNamespaceMemberDescription(bool extractAll) override
712 {
713 DString result="ليست همه اعضای فضای نام ";
714 if (!extractAll) result+="(مستند شده) ";
715 result+=" با ارتباطشان با";
716 result+="فضاهای نامی که به آن مربوط اند را مشاهده ميکنيد :";
717 return result;
718 }
719 /*! This is used in LaTeX as the title of the chapter with the
720 * index of all namespaces.
721 */
723 { return "فهرست فضاهای نام"; }
724
725 /*! This is used in LaTeX as the title of the chapter containing
726 * the documentation of all namespaces.
727 */
729 { return "توضيحات فضای نام"; }
730
731//////////////////////////////////////////////////////////////////////////
732// new since 0.49-990522
733//////////////////////////////////////////////////////////////////////////
734
735 /*! This is used in the documentation before the list of all
736 * namespaces in a file.
737 */
739 { return "فضاهای نام"; }
740
741//////////////////////////////////////////////////////////////////////////
742// new since 0.49-990728
743//////////////////////////////////////////////////////////////////////////
744
745 /*! This is put at the bottom of a class documentation page and is
746 * followed by a list of files that were used to generate the page.
747 */
749 bool single) override
750 { // here s is one of " Class", " Struct" or " Union"
751 // single is true implies a single file
752 DString result="مستندات اين ";
753 switch(compType)
754 {
755 case ClassDef::Class: result+="کلاس"; break;
756 case ClassDef::Struct: result+="ساختار داده"; break;
757 case ClassDef::Record: return english.trGeneratedFromFiles(compType,single);
758 case ClassDef::Union: result+="union"; break;
759 case ClassDef::Interface: result+="interface"; break;
760 case ClassDef::Protocol: result+="protocol"; break;
761 case ClassDef::Category: result+="category"; break;
762 case ClassDef::Exception: result+="exception"; break;
763 default: break;
764 }
765 result+=" از روی پرونده ";
766 if (single) result+=""; else result+="های ";
767 result+="زير توليد شده است :";
768 return result;
769 }
770
771//////////////////////////////////////////////////////////////////////////
772// new since 0.49-990901
773//////////////////////////////////////////////////////////////////////////
774
775 /*! This is used as the heading text for the retval command. */
777 { return "مقادير بازگشتی"; }
778
779 /*! This is in the (quick) index as a link to the main page (index.html)
780 */
782 { return "صفحه ی اصلی"; }
783
784 /*! This is used in references to page that are put in the LaTeX
785 * documentation. It should be an abbreviation of the word page.
786 */
788 { return "ص."; }
789
790//////////////////////////////////////////////////////////////////////////
791// new since 0.49-991003
792//////////////////////////////////////////////////////////////////////////
794 {
795 return ".در خط @0 از پرونده @1 تعريف شده است";
796 }
798 {
799 return ".در فايل @0 تعريف شده است";
800 }
801
802//////////////////////////////////////////////////////////////////////////
803// new since 0.49-991205
804//////////////////////////////////////////////////////////////////////////
805
807 {
808 return "منسوخ شده";
809 }
810
811//////////////////////////////////////////////////////////////////////////
812// new since 1.0.0
813//////////////////////////////////////////////////////////////////////////
814
815 /*! this text is put before a collaboration diagram */
816 DString trCollaborationDiagram(const DString &clName) override
817 {
818 return "Collaboration diagram for "+clName+":";
819 }
820 /*! this text is put before an include dependency graph */
821 DString trInclDepGraph(const DString &fName) override
822 {
823 return "نمودار شامل شدن ها برای "+fName+":";
824 }
825 /*! header that is put before the list of constructor/destructors. */
827 {
828 return "مستندات توباع آغازین و پایانی";
829 }
830 /*! Used in the file documentation to point to the corresponding sources. */
832 {
833 return "کد منبع اين پرونده.";
834 }
835 /*! Used in the file sources to point to the corresponding documentation. */
837 {
838 return "توضيحات اين پرونده.";
839 }
840 /*! Text for the \\pre command */
842 {
843 return "پیش شرط";
844 }
845 /*! Text for the \\post command */
847 {
848 return "پس شرط";
849 }
850 /*! Text for the \\invariant command */
852 {
853 return "Invariant";
854 }
855 /*! Text shown before a multi-line variable/enum initialization */
857 {
858 return "مقدار اوليه :";
859 }
860 /*! Text used the source code in the file index */
861 DString trCode() override
862 {
863 return "کد";
864 }
866 {
867 return "سلسله مراتب گرافيکی کلاس";
868 }
870 {
871 return "نمایش نمودار درختی گرافیکی کلاس";
872 }
874 {
875 return "نمایش نمودار درختی متنی کلاس";
876 }
878 {
879 return "فهرست صفحات";
880 }
881
882//////////////////////////////////////////////////////////////////////////
883// new since 1.1.0
884//////////////////////////////////////////////////////////////////////////
885
886 DString trNote() override
887 {
888 return "نکته";
889 }
891 {
892 return "های عمومی Type";
893 }
895 {
896 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
897 {
898 return "فضاهای داده ها";
899 }
900 else
901 {
902 return "خواص (متغييرهای) عمومی";
903 }
904 }
906 {
907 return "خواص (متغييرهای) عمومی ثابت";
908 }
910 {
911 return "های حفاظت شده Type";
912 }
914 {
915 return "خواص (متغييرهای) حفاظت شده";
916 }
918 {
919 return "خواص (متغييرهای) حفاظت شده ثابت";
920 }
922 {
923 return "های خصوصی Type";
924 }
926 {
927 return "خواص (متغييرهای) خصوصی";
928 }
930 {
931 return "خواص (متغييرهای) خصوصی ثابت";
932 }
933
934//////////////////////////////////////////////////////////////////////////
935// new since 1.1.3
936//////////////////////////////////////////////////////////////////////////
937
938 /*! Used as a marker that is put before a \\todo item */
939 DString trTodo() override
940 {
941 return "برای انجام";
942 }
943 /*! Used as the header of the todo list */
945 {
946 return "ليست کارهاي آينده";
947 }
948
949//////////////////////////////////////////////////////////////////////////
950// new since 1.1.4
951//////////////////////////////////////////////////////////////////////////
952
954 {
955 return " استفاده شده توسط ";
956 }
958 {
959 return "ملاحظات";
960 }
962 {
963 return "توجه";
964 }
966 {
967 return "این نمودار فایل هایی را که این فایل را به طور مستقیم یا غیر مستقیم استفاده کرده اند نشان می دهد";
968 }
969 DString trSince() override
970 {
971 return "از";
972 }
973
974//////////////////////////////////////////////////////////////////////////
975// new since 1.1.5
976//////////////////////////////////////////////////////////////////////////
977
978 /*! title of the graph legend page */
980 {
981 return "راهنمای نمودار";
982 }
983 /*! page explaining how the dot graph's should be interpreted
984 * The %A in the text below are to prevent link to classes called "A".
985 */
987 {
988 return
989 "This page explains how to interpret the graphs that are generated "
990 "by doxygen.<p>\n"
991 "Consider the following example:\n"
992 "\\code\n"
993 "/*! Invisible class because of truncation */\n"
994 "class Invisible { };\n\n"
995 "/*! Truncated class, inheritance relation is hidden */\n"
996 "class Truncated : public Invisible { };\n\n"
997 "/* Class not documented with doxygen comments */\n"
998 "class Undocumented { };\n\n"
999 "/*! Class that is inherited using public inheritance */\n"
1000 "class PublicBase : public Truncated { };\n\n"
1001 "/*! A template class */\n"
1002 "template<class T> class Templ { };\n\n"
1003 "/*! Class that is inherited using protected inheritance */\n"
1004 "class ProtectedBase { };\n\n"
1005 "/*! Class that is inherited using private inheritance */\n"
1006 "class PrivateBase { };\n\n"
1007 "/*! Class that is used by the Inherited class */\n"
1008 "class Used { };\n\n"
1009 "/*! Super class that inherits a number of other classes */\n"
1010 "class Inherited : public PublicBase,\n"
1011 " protected ProtectedBase,\n"
1012 " private PrivateBase,\n"
1013 " public Undocumented\n"
1014 " public Templ<int>\n"
1015 "{\n"
1016 " private:\n"
1017 " Used *m_usedClass;\n"
1018 "};\n"
1019 "\\endcode\n"
1020 "If the \\c MAX_DOT_GRAPH_HEIGHT tag in the configuration file "
1021 "is set to 240 this will result in the following graph:"
1022 "<p><center><img alt=\"\" src=\"graph_legend."+getDotImageExtension()+"\"></center>\n"
1023 "<p>\n"
1024 "The boxes in the above graph have the following meaning:\n"
1025 "<ul>\n"
1026 "<li>%A filled black box represents the struct or class for which the "
1027 "graph is generated.\n"
1028 "<li>%A box with a black border denotes a documented struct or class.\n"
1029 "<li>%A box with a gray border denotes an undocumented struct or class.\n"
1030 "<li>%A box with a red border denotes a documented struct or class for"
1031 "which not all inheritance/containment relations are shown. %A graph is "
1032 "truncated if it does not fit within the specified boundaries.\n"
1033 "</ul>\n"
1034 "The arrows have the following meaning:\n"
1035 "<ul>\n"
1036 "<li>%A dark blue arrow is used to visualize a public inheritance "
1037 "relation between two classes.\n"
1038 "<li>%A dark green arrow is used for protected inheritance.\n"
1039 "<li>%A dark red arrow is used for private inheritance.\n"
1040 "<li>%A purple dashed arrow is used if a class is contained or used "
1041 "by another class. The arrow is labeled with the variable(s) "
1042 "through which the pointed class or struct is accessible.\n"
1043 "<li>%A yellow dashed arrow denotes a relation between a template instance and "
1044 "the template class it was instantiated from. The arrow is labeled with "
1045 "the template parameters of the instance.\n"
1046 "</ul>\n";
1047 }
1048 /*! text for the link to the legend page */
1050 {
1051 return "راهنما";
1052 }
1053
1054//////////////////////////////////////////////////////////////////////////
1055// new since 1.2.0
1056//////////////////////////////////////////////////////////////////////////
1057
1058 /*! Used as a marker that is put before a test item */
1059 DString trTest() override
1060 {
1061 return "تست";
1062 }
1063 /*! Used as the header of the test list */
1065 {
1066 return "Test List";
1067 }
1068
1069//////////////////////////////////////////////////////////////////////////
1070// new since 1.2.2
1071//////////////////////////////////////////////////////////////////////////
1072
1073 /*! Used as a section header for IDL properties */
1075 {
1076 return "خاصیت ها";
1077 }
1078 /*! Used as a section header for IDL property documentation */
1080 {
1081 return "مستندات خاصیت";
1082 }
1083
1084//////////////////////////////////////////////////////////////////////////
1085// new since 1.2.4
1086//////////////////////////////////////////////////////////////////////////
1087
1088 /*! Used for Java classes in the summary section of Java packages */
1090 {
1091 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
1092 {
1093 return "ساختار های داده";
1094 }
1095 else
1096 {
1097 return "كلاس ها";
1098 }
1099 }
1100 /*! Used as the title of a Java package */
1101 DString trPackage(const DString &name) override
1102 {
1103 return "Package "+name;
1104 }
1105 /*! The description of the package index page */
1107 {
1108 return "لیست بسته ها به همراه توضیح مختر در صورت وجود :";
1109 }
1110 /*! The link name in the Quick links header for each page */
1112 {
1113 return "بسته ها";
1114 }
1115 /*! Text shown before a multi-line define */
1117 {
1118 return "مقدار:";
1119 }
1120
1121//////////////////////////////////////////////////////////////////////////
1122// new since 1.2.5
1123//////////////////////////////////////////////////////////////////////////
1124
1125 /*! Used as a marker that is put before a \\bug item */
1126 DString trBug() override
1127 {
1128 return "اشکال";
1129 }
1130 /*! Used as the header of the bug list */
1132 {
1133 return "ليست اشکالات";
1134 }
1135
1136//////////////////////////////////////////////////////////////////////////
1137// new since 1.2.6
1138//////////////////////////////////////////////////////////////////////////
1139
1140 /*! Used as ansicpg for RTF file
1141 *
1142 * The following table shows the correlation of Charset name, Charset Value and
1143 * <pre>
1144 * Codepage number:
1145 * Charset Name Charset Value(hex) Codepage number
1146 * ------------------------------------------------------
1147 * DEFAULT_CHARSET 1 (x01)
1148 * SYMBOL_CHARSET 2 (x02)
1149 * OEM_CHARSET 255 (xFF)
1150 * ANSI_CHARSET 0 (x00) 1252
1151 * RUSSIAN_CHARSET 204 (xCC) 1251
1152 * EE_CHARSET 238 (xEE) 1250
1153 * GREEK_CHARSET 161 (xA1) 1253
1154 * TURKISH_CHARSET 162 (xA2) 1254
1155 * BALTIC_CHARSET 186 (xBA) 1257
1156 * HEBREW_CHARSET 177 (xB1) 1255
1157 * ARABIC _CHARSET 178 (xB2) 1256
1158 * SHIFTJIS_CHARSET 128 (x80) 932
1159 * HANGEUL_CHARSET 129 (x81) 949
1160 * GB2313_CHARSET 134 (x86) 936
1161 * CHINESEBIG5_CHARSET 136 (x88) 950
1162 * </pre>
1163 *
1164 */
1166 {
1167 return "1256";
1168 }
1169
1170
1171 /*! Used as ansicpg for RTF fcharset
1172 * \see trRTFansicp() for a table of possible values.
1173 */
1175 {
1176 return "178";
1177 }
1178
1179 /*! Used as header RTF general index */
1181 {
1182 return "فهرست";
1183 }
1184
1185 /*! This is used for translation of the word that will possibly
1186 * be followed by a single name or by a list of names
1187 * of the category.
1188 */
1189 DString trClass(bool first_capital, bool singular) override
1190 {
1191 DString result((first_capital ? "کلاس" : "کلاس"));
1192 if (!singular) result+="ها";
1193 return result;
1194 }
1195
1196 /*! This is used for translation of the word that will possibly
1197 * be followed by a single name or by a list of names
1198 * of the category.
1199 */
1200 DString trFile(bool /*first_capital*/, bool singular) override
1201 {
1202 DString result("پرونده");
1203 if (!singular) result=result+" ها";
1204 return result;
1205 }
1206
1207 /*! This is used for translation of the word that will possibly
1208 * be followed by a single name or by a list of names
1209 * of the category.
1210 */
1211 DString trNamespace(bool first_capital, bool singular) override
1212 {
1213 DString result((first_capital ? "فضای نام " : "فضای نام "));
1214 if (!singular) result+="ها";
1215 return result;
1216 }
1217
1218 /*! This is used for translation of the word that will possibly
1219 * be followed by a single name or by a list of names
1220 * of the category.
1221 */
1222 DString trGroup(bool first_capital, bool singular) override
1223 {
1224 DString result((first_capital ? "Group" : "group"));
1225 if (!singular) result+="s";
1226 return result;
1227 }
1228
1229 /*! This is used for translation of the word that will possibly
1230 * be followed by a single name or by a list of names
1231 * of the category.
1232 */
1233 DString trPage(bool first_capital, bool singular) override
1234 {
1235 DString result((first_capital ? "صفحه" : "صفحه"));
1236 if (!singular) result+=" ها ";
1237 return result;
1238 }
1239
1240 /*! This is used for translation of the word that will possibly
1241 * be followed by a single name or by a list of names
1242 * of the category.
1243 */
1244 DString trMember(bool first_capital, bool singular) override
1245 {
1246 DString result((first_capital ? "عضو" : "عضو"));
1247 if (!singular) result+="ها";
1248 return result;
1249 }
1250
1251 /*! This is used for translation of the word that will possibly
1252 * be followed by a single name or by a list of names
1253 * of the category.
1254 */
1255 DString trGlobal(bool first_capital, bool singular) override
1256 {
1257 DString result((first_capital ? "Global" : "global"));
1258 if (!singular) result+="s";
1259 return result;
1260 }
1261
1262//////////////////////////////////////////////////////////////////////////
1263// new since 1.2.7
1264//////////////////////////////////////////////////////////////////////////
1265
1266 /*! This text is generated when the \\author command is used and
1267 * for the author section in man pages. */
1268 DString trAuthor(bool first_capital, bool singular) override
1269 {
1270 DString result((first_capital ? "Author" : "author"));
1271 if (!singular) result+="s";
1272 return result;
1273 }
1274
1275//////////////////////////////////////////////////////////////////////////
1276// new since 1.2.11
1277//////////////////////////////////////////////////////////////////////////
1278
1279 /*! This text is put before the list of members referenced by a member
1280 */
1282 {
1283 return "را استفاده ميکند ";
1284 }
1285
1286//////////////////////////////////////////////////////////////////////////
1287// new since 1.2.13
1288//////////////////////////////////////////////////////////////////////////
1289
1290 /*! used in member documentation blocks to produce a list of
1291 * members that are implemented by this one.
1292 */
1293 DString trImplementedFromList(int numEntries) override
1294 {
1295 return "را تکميل می کند "+trWriteList(numEntries)+".";
1296 }
1297
1298 /*! used in member documentation blocks to produce a list of
1299 * all members that implement this abstract member.
1300 */
1301 DString trImplementedInList(int numEntries) override
1302 {
1303 return ".تکميل شده است "+trWriteList(numEntries)+" در";
1304 }
1305
1306//////////////////////////////////////////////////////////////////////////
1307// new since 1.2.16
1308//////////////////////////////////////////////////////////////////////////
1309
1310 /*! used in RTF documentation as a heading for the Table
1311 * of Contents.
1312 */
1314 {
1315 return "فهرست";
1316 }
1317
1318//////////////////////////////////////////////////////////////////////////
1319// new since 1.2.17
1320//////////////////////////////////////////////////////////////////////////
1321
1322 /*! Used as the header of the list of item that have been
1323 * flagged deprecated
1324 */
1326 {
1327 return "لیست آیتم های از رده خارج";
1328 }
1329
1330//////////////////////////////////////////////////////////////////////////
1331// new since 1.2.18
1332//////////////////////////////////////////////////////////////////////////
1333
1334 /*! Used as a header for declaration section of the events found in
1335 * a C# program
1336 */
1338 {
1339 return "رویداد ها";
1340 }
1341 /*! Header used for the documentation section of a class' events. */
1343 {
1344 return "مستندات رویداد";
1345 }
1346
1347//////////////////////////////////////////////////////////////////////////
1348// new since 1.3
1349//////////////////////////////////////////////////////////////////////////
1350
1351 /*! Used as a heading for a list of Java class types with package scope.
1352 */
1354 {
1355 return "انواع بسته ها";
1356 }
1357 /*! Used as a heading for a list of Java class functions with package
1358 * scope.
1359 */
1361 {
1362 return "توابع بسته ها";
1363 }
1365 {
1366 return "عضوها بسته ها";
1367 }
1368 /*! Used as a heading for a list of static Java class functions with
1369 * package scope.
1370 */
1372 {
1373 return "Static Package Functions";
1374 }
1375 /*! Used as a heading for a list of Java class variables with package
1376 * scope.
1377 */
1379 {
1380 return "خواص بسته ها";
1381 }
1382 /*! Used as a heading for a list of static Java class variables with
1383 * package scope.
1384 */
1386 {
1387 return "Static Package Attributes";
1388 }
1389
1390//////////////////////////////////////////////////////////////////////////
1391// new since 1.3.1
1392//////////////////////////////////////////////////////////////////////////
1393
1394 /*! Used in the quick index of a class/file/namespace member list page
1395 * to link to the unfiltered list of all members.
1396 */
1397 DString trAll() override
1398 {
1399 return "همه";
1400 }
1401 /*! Put in front of the call graph for a function. */
1403 {
1404 return "نمودار صدا زدن برای این تابع :";
1405 }
1406
1407//////////////////////////////////////////////////////////////////////////
1408// new since 1.3.3
1409//////////////////////////////////////////////////////////////////////////
1410
1411 /*! This string is used as the title for the page listing the search
1412 * results.
1413 */
1415 {
1416 return "نتايج جستجو";
1417 }
1418 /*! This string is put just before listing the search results. The
1419 * text can be different depending on the number of documents found.
1420 * Inside the text you can put the special marker $num to insert
1421 * the number representing the actual number of search results.
1422 * The @a numDocuments parameter can be either 0, 1 or 2, where the
1423 * value 2 represents 2 or more matches. HTML markup is allowed inside
1424 * the returned string.
1425 */
1426 DString trSearchResults(int numDocuments) override
1427 {
1428 if (numDocuments==0)
1429 {
1430 return "متاسفانه هیچ صفحه ای برای جستجو ی شما یافت نشد.";
1431 }
1432 else if (numDocuments==1)
1433 {
1434 return "یک سند برای این مورد یافت شد.";
1435 }
1436 else
1437 {
1438 return "Found <b>$num</b> documents matching your query. "
1439 "Showing best matches first.";
1440 }
1441 }
1442 /*! This string is put before the list of matched words, for each search
1443 * result. What follows is the list of words that matched the query.
1444 */
1446 {
1447 return "Matches:";
1448 }
1449
1450//////////////////////////////////////////////////////////////////////////
1451// new since 1.3.8
1452//////////////////////////////////////////////////////////////////////////
1453
1454 /*! This is used in HTML as the title of page with source code for file filename
1455 */
1456 DString trSourceFile(const DString& filename) override
1457 {
1458 return filename + " کد و پرونده منبع";
1459 }
1460
1461//////////////////////////////////////////////////////////////////////////
1462// new since 1.3.9
1463//////////////////////////////////////////////////////////////////////////
1464
1465 /*! This is used as the name of the chapter containing the directory
1466 * hierarchy.
1467 */
1469 { return "ساختار و سلسله مراتب شاخه ها"; }
1470
1471 /*! This is used as the name of the chapter containing the documentation
1472 * of the directories.
1473 */
1475 { return "مستندات دايرکتوری"; }
1476
1477 /*! This is used as the title of the directory index and also in the
1478 * Quick links of an HTML page, to link to the directory hierarchy.
1479 */
1481 { return "شاخه ها"; }
1482
1483 /*! This returns the title of a directory page. The name of the
1484 * directory is passed via \a dirName.
1485 */
1486 DString trDirReference(const DString &dirName) override
1487 { DString result=dirName; result+=" مرجع شاخه ی"; return result; }
1488
1489 /*! This returns the word directory with or without starting capital
1490 * (\a first_capital) and in singular or plural form (\a singular).
1491 */
1492 DString trDir(bool /*first_capital*/, bool singular) override
1493 {
1494 DString result("شاخه");
1495 if (singular) result+=" ها "+result;
1496 return result;
1497 }
1498
1499//////////////////////////////////////////////////////////////////////////
1500// new since 1.4.1
1501//////////////////////////////////////////////////////////////////////////
1502
1503 /*! This text is added to the documentation when the \\overload command
1504 * is used for a overloaded function.
1505 */
1507 {
1508 return "This is an overloaded member function, "
1509 "provided for convenience. It differs from the above "
1510 "function only in what argument(s) it accepts.";
1511 }
1512
1513//////////////////////////////////////////////////////////////////////////
1514// new since 1.4.6
1515//////////////////////////////////////////////////////////////////////////
1516
1517 /*! This is used to introduce a caller (or called-by) graph */
1519 {
1520 return "نمودار صدا زننده های این تابع:";
1521 }
1522//////////////////////////////////////////////////////////////////////////
1523// new since 1.5.4 (mainly for Fortran)
1524//////////////////////////////////////////////////////////////////////////
1525
1526 /*! header that is put before the list of member subprograms (Fortran). */
1528 { return "مستندات توابع عضو"; }
1529
1530 /*! This is put above each page as a link to the list of annotated data types (Fortran). */
1532 { return "لیست ساختار های داده"; }
1533
1534 /*! This is put above each page as a link to all members of compounds (Fortran). */
1536 { return "فیلدهای اطلاعات"; }
1537
1538 /*! This is an introduction to the annotated compound list (Fortran). */
1540 { return "ساختارهای داده به همراه توضیح کوتاه :"; }
1541
1542 /*! This is an introduction to the page with all data types (Fortran). */
1544 {
1545 return "توضیحات اعضا ساختارها به همراه مستندات ساختار داده ی مربوطه";
1546 }
1547
1548 /*! This is used in LaTeX as the title of the chapter with the
1549 * annotated compound index (Fortran).
1550 */
1552 { return "Data Type Index"; }
1553
1554 /*! This is used in LaTeX as the title of the chapter containing
1555 * the documentation of all data types (Fortran).
1556 */
1558 { return "Data Type Documentation"; }
1559
1560 /*! This is used in the documentation of a file as a header before the
1561 * list of (global) subprograms (Fortran).
1562 */
1564 { return "توابع و زیربرنامه ها"; }
1565
1566 /*! This is used in the documentation of a file/namespace before the list
1567 * of documentation blocks for subprograms (Fortran)
1568 */
1570 { return "مستندات توابع و زیربرنامه ها"; }
1571
1572 /*! This is used in the documentation of a file/namespace/group before
1573 * the list of links to documented compounds (Fortran)
1574 */
1576 { return "ساختار های داده"; }
1577
1578 /*! used as the title of page containing all the index of all modules (Fortran). */
1580 { return "لیست ماژول ها"; }
1581
1582 /*! used as an introduction to the modules list (Fortran) */
1584 {
1585 DString result="لیست ماژول ها به همراه توضیحات کوتاه";
1586 return result;
1587 }
1588
1589 /*! used as the title of the HTML page of a module/type (Fortran) */
1591 ClassDef::CompoundType compType,
1592 bool isTemplate) override
1593 {
1594 DString result=clName;
1595 switch(compType)
1596 {
1597 case ClassDef::Class: result+=" Module"; break;
1598 case ClassDef::Struct: result+=" Type"; break;
1599 case ClassDef::Union: result+=" Union"; break;
1600 case ClassDef::Interface: result+=" Interface"; break;
1601 case ClassDef::Protocol: result+=" Protocol"; break;
1602 case ClassDef::Category: result+=" Category"; break;
1603 case ClassDef::Exception: result+=" Exception"; break;
1604 default: break;
1605 }
1606 if (isTemplate) result+=" Template";
1607 result+=" Reference";
1608 return result;
1609 }
1610 /*! used as the title of the HTML page of a module (Fortran) */
1611 DString trModuleReference(const DString &namespaceName) override
1612 {
1613 DString result=namespaceName;
1614 result+=" Module Reference";
1615 return result;
1616 }
1617
1618 /*! This is put above each page as a link to all members of modules. (Fortran) */
1620 { return "اعضاء ماژول"; }
1621
1622 /*! This is an introduction to the page with all modules members (Fortran) */
1624 {
1625 DString result="لیست اعضاء ماژول ها به همراه مستندات ماژول مربوطه";
1626 return result;
1627 }
1628
1629 /*! This is used in LaTeX as the title of the chapter with the
1630 * index of all modules (Fortran).
1631 */
1633 { return "Modules Index"; }
1634
1635 /*! This is used for translation of the word that will possibly
1636 * be followed by a single name or by a list of names
1637 * of the category.
1638 */
1639 DString trModule(bool, bool singular) override
1640 {
1641 DString result("ماژول");
1642 if (!singular) result+=" ها";
1643 return result;
1644 }
1645 /*! This is put at the bottom of a module documentation page and is
1646 * followed by a list of files that were used to generate the page.
1647 */
1649 bool single) override
1650 { // here s is one of " Module", " Struct" or " Union"
1651 // single is true implies a single file
1652 DString result="The documentation for this ";
1653 switch(compType)
1654 {
1655 case ClassDef::Class: result+="module"; break;
1656 case ClassDef::Struct: result+="type"; break;
1657 case ClassDef::Union: result+="union"; break;
1658 case ClassDef::Interface: result+="interface"; break;
1659 case ClassDef::Protocol: result+="protocol"; break;
1660 case ClassDef::Category: result+="category"; break;
1661 case ClassDef::Exception: result+="exception"; break;
1662 default: break;
1663 }
1664 result+=" was generated from the following file";
1665 if (single) result+=":"; else result+="s:";
1666 return result;
1667 }
1668 /*! This is used for translation of the word that will possibly
1669 * be followed by a single name or by a list of names
1670 * of the category.
1671 */
1672 DString trType(bool first_capital, bool singular) override
1673 {
1674 return createNoun(first_capital, singular, "type", "s");
1675 }
1676 /*! This is used for translation of the word that will possibly
1677 * be followed by a single name or by a list of names
1678 * of the category.
1679 */
1680 DString trSubprogram(bool, bool singular) override
1681 {
1682 DString result("زیربرنامه");
1683 if (!singular) result+=" ها ";
1684 return result;
1685 }
1686
1687 /*! C# Type Constraint list */
1689 {
1690 return "Type Constraints";
1691 }
1692
1693//////////////////////////////////////////////////////////////////////////
1694// new since 1.6.0 (mainly for the new search engine)
1695//////////////////////////////////////////////////////////////////////////
1696
1697 /*! directory relation for \a name */
1698 DString trDirRelation(const DString &name) override
1699 {
1700 return name + " Relation";
1701 }
1702
1703 /*! Loading message shown when loading search results */
1705 {
1706 return "در حال بارگذاری...";
1707 }
1708
1709 /*! Label used for search results in the global namespace */
1711 {
1712 return "فضای نام جهانی";
1713 }
1714
1715 /*! Message shown while searching */
1717 {
1718 return "در حال جستجو...";
1719 }
1720
1721 /*! Text shown when no search results are found */
1723 {
1724 return "یافت نشد";
1725 }
1726
1727//////////////////////////////////////////////////////////////////////////
1728// new since 1.6.3 (missing items for the directory pages)
1729//////////////////////////////////////////////////////////////////////////
1730
1731 /*! when clicking a directory dependency label, a page with a
1732 * table is shown. The heading for the first column mentions the
1733 * source file that has a relation to another file.
1734 */
1735 DString trFileIn(const DString &name) override
1736 {
1737 return "پرونده ای در "+name;
1738 }
1739
1740 /*! when clicking a directory dependency label, a page with a
1741 * table is shown. The heading for the second column mentions the
1742 * destination file that is included.
1743 */
1744 DString trIncludesFileIn(const DString &name) override
1745 {
1746 return "Includes file in "+name;
1747 }
1748
1749 /** Compiles a date string.
1750 * @param year Year in 4 digits
1751 * @param month Month of the year: 1=January
1752 * @param day Day of the Month: 1..31
1753 * @param dayOfWeek Day of the week: 1=Monday..7=Sunday
1754 * @param hour Hour of the day: 0..23
1755 * @param minutes Minutes in the hour: 0..59
1756 * @param seconds Seconds within the minute: 0..59
1757 * @param includeTime Include time in the result string?
1758 */
1759 DString trDateTime(int year,int month,int day,int dayOfWeek,
1760 int hour,int minutes,int seconds,
1761 DateTimeType includeTime) override
1762 {
1763 static const char *days[] = { "دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه","یکشنبه" };
1764 static const char *months[] = { "ژانویه","فوریه","مارس","آوریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر" };
1765 DString sdate;
1766 if (includeTime == DateTimeType::DateTime || includeTime == DateTimeType::Date)
1767 {
1768 sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year);
1769 }
1770 if (includeTime == DateTimeType::DateTime) sdate += " ";
1771 if (includeTime == DateTimeType::DateTime || includeTime == DateTimeType::Time)
1772 {
1773 DString stime;
1774 stime.sprintf("%.2d:%.2d:%.2d",hour,minutes,seconds);
1775 sdate+=stime;
1776 }
1777 return convertDigitsToFarsi(sdate);
1778 }
1779 DString trDayOfWeek(int dayOfWeek, bool, bool full) override
1780 {
1781 static const char *days_short[] = { "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه", "يكشنبه" };
1782 static const char *days_full[] = { "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه", "يكشنبه" };
1783 DString text = full? days_full[dayOfWeek-1] : days_short[dayOfWeek-1];
1784 return text;
1785 }
1786 DString trMonth(int month, bool, bool full) override
1787 {
1788 static const char *months_short[] = { "ژانويه", "فوريه", "مارس", "آوريل", "مه", "ژوئن", "ژوئيه", "اوت", "سپتامبر", "اُكتبر", "نوامبر", "دسامبر" };
1789 static const char *months_full[] = { "ژانويه", "فوريه", "مارس", "آوريل", "مه", "ژوئن", "ژوئيه", "اوت", "سپتامبر", "اُكتبر", "نوامبر", "دسامبر" };
1790 DString text = full? months_full[month-1] : months_short[month-1];
1791 return text;
1792 }
1793 DString trDayPeriod(bool period) override
1794 {
1795 static const char *dayPeriod[] = { "قبل‌ازظهر", "بعدازظهر" };
1796 return dayPeriod[period?1:0];
1797 }
1798
1799};
1800
1801#endif
CompoundType
The various compound types.
Definition classdef.h:105
@ Interface
Definition classdef.h:109
@ Exception
Definition classdef.h:112
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
TranslatorEnglish english
DString trCompoundReference(const DString &clName, ClassDef::CompoundType compType, bool isTemplate) override
DString trGeneratedFromFiles(ClassDef::CompoundType compType, bool single) override
DString createNoun(bool first_capital, bool singular, const DString &base, const DString &plurSuffix, const DString &singSuffix="")
Definition translator.h:807
DString p_latexCommandName(const DString &latexCmd)
Definition translator.h:794
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:5100