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