summaryrefslogtreecommitdiff
path: root/src/translator_fa.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/translator_fa.h')
-rw-r--r--src/translator_fa.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/translator_fa.h b/src/translator_fa.h
index a4c1c10..f145725 100644
--- a/src/translator_fa.h
+++ b/src/translator_fa.h
@@ -114,6 +114,10 @@ class TranslatorPersian : public TranslatorAdapter_1_7_5
virtual QCString trDetailedDescription()
{ return "توضيحات جزئی"; }
+ /*! header that is used when the summary tag is missing inside the details tag */
+ virtual QCString trDetails()
+ { return "جزئیات"; }
+
/*! header that is put before the list of typedefs. */
virtual QCString trMemberTypedefDocumentation()
{ return "مستندات تعریف گونه ها"; }
@@ -404,12 +408,6 @@ class TranslatorPersian : public TranslatorAdapter_1_7_5
virtual QCString trFileDocumentation()
{ return "مستندات فایل"; }
- /*! This is used in LaTeX as the title of the chapter containing
- * the documentation of all examples.
- */
- virtual QCString trExampleDocumentation()
- { return "مستندات مثال"; }
-
/*! This is used in LaTeX as the title of the document */
virtual QCString trReferenceManual()
{ return "راهنمای مرجع"; }
@@ -1759,16 +1757,20 @@ class TranslatorPersian : public TranslatorAdapter_1_7_5
*/
virtual QCString trDateTime(int year,int month,int day,int dayOfWeek,
int hour,int minutes,int seconds,
- bool includeTime)
+ DateTimeType includeTime)
{
static const char *days[] = { "دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه","یکشنبه" };
static const char *months[] = { "ژانویه","فوریه","مارس","آوریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر" };
QCString sdate;
- sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year);
- if (includeTime)
+ if (includeTime == DateTimeType::DateTime || includeTime == DateTimeType::Date)
+ {
+ sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year);
+ }
+ if (includeTime == DateTimeType::DateTime) sdate += " ";
+ if (includeTime == DateTimeType::DateTime || includeTime == DateTimeType::Time)
{
QCString stime;
- stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds);
+ stime.sprintf("%.2d:%.2d:%.2d",hour,minutes,seconds);
sdate+=stime;
}
return convertDigitsToFarsi(sdate);