Doxygen
Loading...
Searching...
No Matches
translator_fa.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 *
4 *
5 * Copyright (C) 1997-2015 by Dimitri van Heesch.
6 *
7 * Permission to use, copy, modify, and distribute this software and its
8 * documentation under the terms of the GNU General Public License is hereby
9 * granted. No representations are made about the suitability of this software
10 * for any purpose. It is provided "as is" without express or implied warranty.
11 * See the GNU General Public License for more details.
12 *
13 * Documents produced by Doxygen are derivative works derived from the
14 * input used in their production; they are not affected by this license.
15 *
16 *
17 * Description : Doxygen Persian (Farsi) Translator
18 * Author : Ali Nadalizadeh < nadalizadeh at gmail dot com >
19 *
20 * ChangeLog :
21 * Thu 06 Jul 2006 11:54:09 PM IRDT <nadalizadeh at gmail dot com>
22 * >> First version of persian language support has been completed.
23 *
24 * Mon 04 Feb 2008 11:52:09 AM IRDT <nadalizadeh at gmail dot com>
25 * >> Obsolete methods removed. Translated more string(s) to persian. Upgraded to 1_5_4 adapter.
26 *
27 * Fri 04 Jun 2010 04:05:24 PM IRDT <nadalizadeh at gmail dot com>
28 * >> Implement missing new methods since 1.6.0.
29 * >> Add English to Persian digit converter. (for date/time digits)
30 *
31 * Translation feedbacks are really appreciated.
32 */
33
34#ifndef TRANSLATOR_FA_H
35#define TRANSLATOR_FA_H
36
37#define HtmlRightToLeft DString("<div dir=\"rtl\">")
38#define HtmlLeftToRight DString("<div dir=\"ltr\">")
39#define HtmlDivEnd DString("</div>")
40
41
43{
44 private:
45 /** Converts english digits of an input string to persian equivalents. */
47 {
48 DString output;
49 const char * PersianDigits[] = { "۰", "۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹" };
50 for(unsigned i=0; i<str.length(); i++)
51 {
52 if (str.at(i) >= '0' && str.at(i) <= '9')
53 output += PersianDigits[ str.at(i) - '0' ];
54 else
55 output += str.at(i);
56 }
57
58 return output;
59 }
60
61 public:
62
63 // --- Language control methods -------------------
64
65 /*! Used for identification of the language. The identification
66 * should not be translated. It should be replaced by the name
67 * of the language in Persian using lower-case characters only
68 * (e.g. "czech", "japanese", "russian", etc.). It should be equal to
69 * the identification used in language.cpp.
70 */
72 { return "persian"; }
73
74 /*! Used to get the LaTeX command(s) for the language support.
75 * This method should return string with commands that switch
76 * LaTeX to the desired language. For example
77 * <pre>"\\usepackage[german]{babel}\n"
78 * </pre>
79 * or
80 * <pre>"\\usepackage{polski}\n"
81 * "\\usepackage[latin2]{inputenc}\n"
82 * "\\usepackage[T1]{fontenc}\n"
83 * </pre>
84 *
85 * The Persian LaTeX does not use such commands. Because of this
86 * the empty string is returned in this implementation.
87 */
89 {
90 return "";
91 }
92
94 {
95 return p_latexCommandName("xelatex");
96 }
97
98 DString trISOLang() override
99 {
100 return "fa";
101 }
102
104 {
105 return "0x429 Persian (Iran)";
106 }
107 // --- Language translation methods -------------------
108
109 /*! used in the compound documentation before a list of related functions. */
111 { return "توابع مربوط"; }
112
113 /*! subscript for the related functions. */
115 { return "(لازم به ذکر است که اينها توابع عضو نيستند)"; }
116
117 /*! header that is put before the detailed description of files, classes and namespaces. */
119 { return "توضيحات جزئی"; }
120
121 /*! header that is used when the summary tag is missing inside the details tag */
123 { return "جزئیات"; }
124
125 /*! header that is put before the list of typedefs. */
127 { return "مستندات تعریف گونه ها"; }
128
129 /*! header that is put before the list of enumerations. */
131 { return "های عضو Enumeration مستندات"; }
132
133 /*! header that is put before the list of member functions. */
135 { return "توضيحات توابع عضو"; }
136
137 /*! header that is put before the list of member attributes. */
139 {
140 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
141 {
142 return "Field مستندات";
143 }
144 else
145 {
146 return "مستندات متغيير های عضو";
147 }
148 }
149
150 /*! this is the text of a link put after brief descriptions. */
151 DString trMore() override
152 { return "بيشتر..."; }
153
154 /*! put in the class documentation */
156 { return "ليست تمام اعضاء "; }
157
158 /*! used as the title of the "list of all members" page of a class */
160 { return "ليست اعضاء"; }
161
162 /*! this is the first part of a sentence that is followed by a class name */
164 { return "اين ليستی کامل از همه اعضای"; }
165
166 /*! this is the remainder of the sentence after the class name */
168 { return "شامل همه ی اعضای به ارث برده شده می باشد."; }
169
170 /*! this is put at the author sections at the bottom of man pages.
171 * parameter s is name of the project name.
172 */
174 { DString result="تولید شده توسط نرم افزار دی اکسیژن ";
175 if (!s.empty()) result+=" برای "+s;
176 result+=" از کد برنامه ";
177 return result;
178 }
179
180 /*! put after an enum name in the list of all members */
182 { return "enum نام"; }
183
184 /*! put after an enum value in the list of all members */
186 { return "enum مقدار"; }
187
188 /*! put after an undocumented member in the list of all members */
190 { return "تعریف شده در"; }
191
192 // quick reference sections
193
194 /*! This is put above each page as a link to the list of all groups of
195 * compounds or files (see the \\group command).
196 */
198 { return "Modules"; }
199
200 /*! This is put above each page as a link to the class hierarchy */
202 { return "سلسله مراتب کلاس ها"; }
203
204 /*! This is put above each page as a link to the list of annotated classes */
206 {
207 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
208 {
209 return "ساختار های داده ";
210 }
211 else
212 {
213 return "ليست کلاس ها ";
214 }
215 }
216
217 /*! This is put above each page as a link to the list of documented files */
219 { return "ليست فايل ها"; }
220
221 /*! This is put above each page as a link to all members of compounds. */
223 {
224 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
225 {
226 return "فضاهای داده ها";
227 }
228 else
229 {
230 return "اعضاء کلاس ها";
231 }
232 }
233
234 /*! This is put above each page as a link to all members of files. */
236 {
237 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
238 {
239 return "Globals";
240 }
241 else
242 {
243 return "اعضاء پرونده";
244 }
245 }
246
247 /*! This is put above each page as a link to all related pages. */
249 { return "صفحات مربوط"; }
250
251 /*! This is put above each page as a link to all examples. */
253 { return "مثال ها"; }
254
255 /*! This is put above each page as a link to the search engine. */
256 DString trSearch() override
257 { return "جستجو"; }
258
259 /*! This is an introduction to the class hierarchy. */
261 { return "ليست و سلسله مراتب درختی کلاس ها به صورت مرتب شده :";
262 }
263
264 /*! This is an introduction to the list with all files. */
265 DString trFileListDescription(bool extractAll) override
266 {
267 DString result="ليست همه ي پرونده های ";
268 if (!extractAll) result+="(مستند شده) ";
269 result+=" :";
270 return result;
271 }
272
273 /*! This is an introduction to the annotated compound list. */
275 {
276
277 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
278 {
279 return "ليست ساختارهای داده به همراه توضيحی کوتاه :";
280 }
281 else
282 {
283 return "ليست کلاس ها ، ساختارهای داده و ... به همراه توضيحات مختصر راجع به آنها :";
284 }
285 }
286
287 /*! This is an introduction to the page with all class members. */
288 DString trCompoundMembersDescription(bool extractAll) override
289 {
290 DString result=" در ذيل ليست ";
291 if (!extractAll)
292 {
293 result+="آن اعضايي که مستند شده اند ";
294 }
295 else
296 {
297 result+="همه ی اعضاء ";
298 }
299 result+=" به همراه ارتباطشان با ";
300 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
301 {
302 result+="ساختارهای داده ";
303 }
304 else
305 {
306 result+="كلاس ها ";
307 }
308
309 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
310 {
311 result+="و مستندات ساختار داده برای هر عضو ";
312 }
313 else
314 {
315 result+="و مستندات کلاس برای هر عضو ";
316 }
317 result+="را مشاهده ميکنيد :";
318 return result;
319 }
320
321 /*! This is an introduction to the page with all file members. */
322 DString trFileMembersDescription(bool extractAll) override
323 {
324 DString result="ليست همه ی توابع ، متغيير ها، تعاريف و ... ";
325 if (!extractAll) result+="(مستند شده) ";
326
327 result+=" به همراه ارتباط آنها ";
328 result+="با پرونده هايی که به آن مربوط اند :";
329 return result;
330 }
331
332 /*! This is an introduction to the page with the list of all examples */
334 { return "ليست همه ی مثال ها :"; }
335
336 /*! This is an introduction to the page with the list of related pages */
338 { return "لیست تمام صفحات و مستندات مربوطه :"; }
339
340 /*! This is an introduction to the page with the list of class/file groups */
342 { return "لیست تمام ماژول ها:"; }
343
344 // index titles (the project name is prepended for these)
345
346
347 /*! This is used in HTML as the title of index.html. */
348 DString trDocumentation(const DString &projName) override
349 { return "مستندات" + (!projName.empty()?" " + projName : ""); }
350
351 /*! This is used in LaTeX as the title of the chapter with the
352 * index of all groups.
353 */
355 { return "فهرست ماژول ها"; }
356
357 /*! This is used in LaTeX as the title of the chapter with the
358 * class hierarchy.
359 */
361 { return "فهرست سلسله مراتب"; }
362
363 /*! This is used in LaTeX as the title of the chapter with the
364 * annotated compound index.
365 */
367 {
368 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
369 {
370 return "فهرست ساختار داده ها";
371 }
372 else
373 {
374 return "فهرست کلاس های";
375 }
376 }
377
378 /*! This is used in LaTeX as the title of the chapter with the
379 * list of all files.
380 */
382 { return "فهرست پرونده ها"; }
383
384 /*! This is used in LaTeX as the title of the chapter containing
385 * the documentation of all groups.
386 */
388 { return "مستندات ماژول"; }
389
390 /*! This is used in LaTeX as the title of the chapter containing
391 * the documentation of all classes, structs and unions.
392 */
394 {
395 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
396 {
397 return "مستندات ساختار داده ها";
398 }
399 else if (Config_getBool(OPTIMIZE_OUTPUT_VHDL))
400 {
402 }
403 else
404 {
405 return "مستندات کلاس ها";
406 }
407 }
408
409 /*! This is used in LaTeX as the title of the chapter containing
410 * the documentation of all files.
411 */
413 { return "مستندات فایل"; }
414
415 /*! This is used in LaTeX as the title of the document */
417 { return "راهنمای مرجع"; }
418
419 /*! This is used in the documentation of a file as a header before the
420 * list of defines
421 */
423 { return "تعاريف"; }
424
425 /*! This is used in the documentation of a file as a header before the
426 * list of typedefs
427 */
429 { return "تعریف گونه ها"; }
430
431 /*! This is used in the documentation of a file as a header before the
432 * list of enumerations
433 */
435 { return "تعاريف"; }
436
437 /*! This is used in the documentation of a file as a header before the
438 * list of (global) functions
439 */
441 { return "توابع"; }
442
443 /*! This is used in the documentation of a file as a header before the
444 * list of (global) variables
445 */
447 { return "متغيير ها"; }
448
449 /*! This is used in the documentation of a file as a header before the
450 * list of (global) variables
451 */
453 { return "معرف ها"; }
454
455 /*! This is used in the documentation of a file before the list of
456 * documentation blocks for defines
457 */
459 { return "Define Documentation"; }
460
461 /*! This is used in the documentation of a file/namespace before the list
462 * of documentation blocks for typedefs
463 */
465 { return "Typedef"; }
466
467 /*! This is used in the documentation of a file/namespace before the list
468 * of documentation blocks for enumeration types
469 */
471 { return "مستندات تعريف"; }
472
473 /*! This is used in the documentation of a file/namespace before the list
474 * of documentation blocks for enumeration values
475 */
477 { return "مستندات معرف"; }
478
479 /*! This is used in the documentation of a file/namespace before the list
480 * of documentation blocks for functions
481 */
483 { return "توضيح تابع"; }
484
485 /*! This is used in the documentation of a file/namespace before the list
486 * of documentation blocks for variables
487 */
489 { return "توضيح متغير"; }
490
491 /*! This is used in the documentation of a file/namespace/group before
492 * the list of links to documented compounds
493 */
495 {
496 if (Config_getBool(OPTIMIZE_OUTPUT_FOR_C))
497 {
498 return "ساختارهای داده";
499 }
500 else
501 {
502 return "کلاس ها";
503 }
504 }
505
506 /*! This is used in the standard footer of each page and indicates when
507 * the page was generated
508 */
509 DString trGeneratedAt(const DString &date,const DString &projName) override
510 {
511 DString result = HtmlDivEnd + HtmlRightToLeft + DString("توليد شده در ") +date ;
512 if (!projName.empty()) result+=" برای "+projName;
513 result+=" توسط";
514 return result;
515 }
516
517 /*! this text is put before a class diagram */
518 DString trClassDiagram(const DString &clName) override
519 {
520 return ""+clName+" نمودار وراثت برای :";
521 }
522
523 /*! this text is generated when the \\warning command is used. */
525 { return "اخطار"; }
526
527 /*! this text is generated when the \\version command is used. */
529 { return "نسخه"; }
530
531 /*! this text is generated when the \\date command is used. */
532 DString trDate() override
533 { return "تاريخ"; }
534
535 /*! this text is generated when the \\return command is used. */
537 { return "خروجی"; }
538
539 /*! this text is generated when the \\sa command is used. */
541 { return "See also"; }
542
543 /*! this text is generated when the \\param command is used. */
545 { return "پارامترها"; }
546
547 /*! this text is generated when the \\exception command is used. */
549 { return "استثناء ها"; }
550
551 /*! this text is used in the title page of a LaTeX document. */
553 { return "توليد شده توسط"; }
554
555//////////////////////////////////////////////////////////////////////////
556// new since 0.49-990307
557//////////////////////////////////////////////////////////////////////////
558
559 /*! used as the title of page containing all the index of all namespaces. */
561 { return "ليست فضاهای نام"; }
562
563 /*! used as an introduction to the namespace list */
564 DString trNamespaceListDescription(bool extractAll) override
565 {
566 DString result="در ذيل ليستی از همه ی فضاهای نام ";
567 if (!extractAll) result+="(مستند سازی شده) ";
568 result+="به همراه توضيح کوتاه آنها مشاهده می کنيد :";
569 return result;
570 }
571
572 /*! used in the class documentation as a header before the list of all
573 * friends of a class
574 */
576 { return "کلاس های دوست"; }
577
578//////////////////////////////////////////////////////////////////////////
579// new since 0.49-990405
580//////////////////////////////////////////////////////////////////////////
581
582 /*! used in the class documentation as a header before the list of all
583 * related classes
584 */
586 { return "مستندات توابع مربوط و دوست"; }
587
588//////////////////////////////////////////////////////////////////////////
589// new since 0.49-990425
590//////////////////////////////////////////////////////////////////////////
591
592 /*! used as the title of the HTML page of a class/struct/union */
594 ClassDef::CompoundType compType,
595 bool isTemplate) override
596 {
597 DString result;
598 switch(compType)
599 {
600 case ClassDef::Class: result=" کلاس"; break;
601 case ClassDef::Struct: result=" ساختار داده"; break;
602 case ClassDef::Union: result=" Union"; break;
603 case ClassDef::Interface: result=" Interface"; break;
604 case ClassDef::Protocol: result=" Protocol"; break;
605 case ClassDef::Category: result=" Category"; break;
606 case ClassDef::Exception: result=" استثناء"; break;
607 default: break;
608 }
609 if (isTemplate) result+=" قالب";
610 result=clName + " مرجع" +result ;
611 return result;
612 }
613
614 /*! used as the title of the HTML page of a file */
615 DString trFileReference(const DString &fileName) override
616 {
617 DString result=fileName;
618 result+=" مرجع پرونده";
619 return result;
620 }
621
622 /*! used as the title of the HTML page of a namespace */
623 DString trNamespaceReference(const DString &namespaceName) override
624 {
625 DString result=namespaceName;
626 result+=" مرجع فضای نام";
627 return result;
628 }
629
631 { return "توابع عمومی عضو کلاس"; }
633 { return "های عمومی Slot"; }
635 { return "سيگنال ها"; }
637 { return "توابع ثابت عمومی عضو کلاس"; }
639 { return "توابع خصوصی عضو کلاس"; }
641 { return "های محافظت شده Slot"; }
643 { return "توابع ثابت محافظت شده عضو کلاس"; }
645 { return "توابع خصوصی عضو کلاس"; }
647 { return "های خصوصی Slot"; }
649 { return "توابع خصوصی ثابت عضو کلاس"; }
650
651 /*! this function is used to produce a comma-separated list of items.
652 * use generateMarker(i) to indicate where item i should be put.
653 */
654 DString trWriteList(int numEntries) override
655 {
656 DString result;
657 // the inherits list contain `numEntries' classes
658 for (int i=0;i<numEntries;i++)
659 {
660 // use generateMarker to generate placeholders for the class links!
661 result+=generateMarker(i); // generate marker for entry i in the list
662 // (order is left to right)
663
664 if (i!=numEntries-1) // not the last entry, so we need a separator
665 {
666 if (i<numEntries-2) // not the fore last entry
667 result+=", ";
668 else // the fore last entry
669 result+=" و ";
670 }
671 }
672 return result;
673 }
674
675 /*! used in class documentation to produce a list of base classes,
676 * if class diagrams are disabled.
677 */
678 DString trInheritsList(int numEntries) override
679 {
680 return ".را به ارث می برد "+trWriteList(numEntries)+".";
681 }
682
683 /*! used in class documentation to produce a list of super classes,
684 * if class diagrams are disabled.
685 */
686 DString trInheritedByList(int numEntries) override
687 {
688 return ".اين کلاس را به ارث برده است "+trWriteList(numEntries)+".";
689 }
690
691 /*! used in member documentation blocks to produce a list of
692 * members that are hidden by this one.
693 */
694 DString trReimplementedFromList(int numEntries) override
695 {
696 return "Reimplemented from "+trWriteList(numEntries)+".";
697 }
698
699 /*! used in member documentation blocks to produce a list of
700 * all member that overwrite the implementation of this member.
701 */
702 DString trReimplementedInList(int numEntries) override
703 {
704 return "تعریف شده است "+trWriteList(numEntries)+"دوباره در ";
705 }
706
707 /*! This is put above each page as a link to all members of namespaces. */
709 { return "اعضای فضاهای نام"; }
710
711 /*! This is an introduction to the page with all namespace members */
712 DString trNamespaceMemberDescription(bool extractAll) override
713 {
714 DString result="ليست همه اعضای فضای نام ";
715 if (!extractAll) result+="(مستند شده) ";
716 result+=" با ارتباطشان با";
717 result+="فضاهای نامی که به آن مربوط اند را مشاهده ميکنيد :";
718 return result;
719 }
720 /*! This is used in LaTeX as the title of the chapter with the
721 * index of all namespaces.
722 */
724 { return "فهرست فضاهای نام"; }
725
726 /*! This is used in LaTeX as the title of the chapter containing
727 * the documentation of all namespaces.
728 */
730 { return "توضيحات فضای نام"; }
731
732//////////////////////////////////////////////////////////////////////////
733// new since 0.49-990522
734//////////////////////////////////////////////////////////////////////////
735
736 /*! This is used in the documentation before the list of all
737 * namespaces in a file.
738 */
740 { return "فضاهای نام"; }
741
742//////////////////////////////////////////////////////////////////////////
743// new since 0.49-990728
744//////////////////////////////////////////////////////////////////////////
745
746 /*! This is put at the bottom of a class documentation page and is
747 * followed by a list of files that were used to generate the page.
748 */
750 bool single) override
751 { // here s is one of " Class", " Struct" or " Union"
752 // single is true implies a single file
753 DString result="مستندات اين ";
754 switch(compType)
755 {
756 case ClassDef::Class: result+="کلاس"; break;
757 case ClassDef::Struct: result+="ساختار داده"; break;
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:109
@ Interface
Definition classdef.h:112
@ Exception
Definition classdef.h:115
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition dstring.h:89
DString()=default
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
Definition dstring.h:153
char & at(size_t i)
Returns a reference to the character at index i.
Definition dstring.h:675
DString & sprintf(const char *format,...)
Definition dstring.cpp:29
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition dstring.h:156
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:801
DString p_latexCommandName(const DString &latexCmd)
Definition translator.h:788
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:893
#define HtmlDivEnd
#define HtmlRightToLeft
DString getDotImageExtension()
Definition util.cpp:5498