KDECore
kcalendarsystemcoptic.cpp
Go to the documentation of this file.
52 format = i18nc("(kdedt-format) Coptic, AM, full era year format used for %EY, e.g. 2000 AM", "%Ey %EC");
134 // Names taken from Bohairic dialect transliterations in http://www.copticheritage.org/parameters/copticheritage/calendar/The_Coptic_Calendar.pdf
135 // These differ from the transliterations found on Wikipedia http://en.wikipedia.org/wiki/Coptic_calendar
136 // These differ from the Sahidic dialect transliterations used in Dershowitz & Reingold which went out of use in the 11th centuary
139 // The Boharic was initially chosen as this is the dialect apparantly in 'common' use in the Coptic Church.
140 // But it could be argued the Arabic forms should be used as they are in 'common' usage in Eqypt
159 QString KCalendarSystemCopticPrivate::monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
277 return ki18nc("Coptic month 7 - KLocale::LongName Possessive", "of Paremhotep").toString(locale());
279 return ki18nc("Coptic month 8 - KLocale::LongName Possessive", "of Parmoute").toString(locale());
281 return ki18nc("Coptic month 9 - KLocale::LongName Possessive", "of Pashons").toString(locale());
287 return ki18nc("Coptic month 12 - KLocale::LongName Possessive", "of Mesore").toString(locale());
289 return ki18nc("Coptic month 12 - KLocale::LongName Possessive", "of Kouji nabot").toString(locale());
328 // Names taken from from the Sahidic dialect transliterations used in Dershowitz & Reingold which went out of use in the 11th centuary
330 QString KCalendarSystemCopticPrivate::weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
401 KCalendarSystemCoptic::KCalendarSystemCoptic(const KSharedConfig::Ptr config, const KLocale *locale)
virtual ~KCalendarSystemCoptic()
Definition: kcalendarsystemcoptic.cpp:414
QString toString() const
Finalizes the translation, creates QString with placeholders substituted.
Definition: klocalizedstring.cpp:192
virtual bool isLeapYear(int year) const =0
Returns whether a given year is a leap year.
Definition: kcalendarsystem.cpp:1720
virtual int monthsInYear(int year) const
Definition: kcalendarsystemcoptic.cpp:56
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const =0
Gets specific calendar type month name for a given month number If an invalid month is specified...
Definition: kcalendarsystem.cpp:1842
virtual bool julianDayToDate(int jd, int &year, int &month, int &day) const
Internal method to convert a Julian Day number into the YMD values for this calendar system...
Definition: kcalendarsystemcoptic.cpp:510
virtual bool dateToJulianDay(int year, int month, int day, int &jd) const
Internal method to convert YMD values for this calendar system into a Julian Day number.
Definition: kcalendarsystemcoptic.cpp:546
virtual int maxMonthsInYear() const
Definition: kcalendarsystemcoptic.cpp:119
Coptic Calendar as used Coptic Church and some parts of Egypt.
Definition: klocale.h:785
virtual bool isLunar() const
Returns whether the calendar is lunar based.
Definition: kcalendarsystemcoptic.cpp:490
virtual bool hasYearZero() const
Definition: kcalendarsystemcoptic.cpp:109
KCalendarSystem abstract base class, provides support for local Calendar Systems in KDE...
Definition: kcalendarsystem.h:40
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
virtual int daysInMonth(int year, int month) const
Definition: kcalendarsystemcoptic.cpp:62
virtual QString calendarType() const
Definition: kcalendarsystemcoptic.cpp:418
virtual int daysInYear(int year) const
Definition: kcalendarsystemcoptic.cpp:75
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition: kcalendarsystemcoptic.cpp:423
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition: kcalendarsystem.cpp:1115
virtual ~KCalendarSystemCopticPrivate()
Definition: kcalendarsystemcoptic.cpp:37
virtual int weekDayOfPray() const
Definition: kcalendarsystemcoptic.cpp:485
virtual bool hasLeapMonths() const
Definition: kcalendarsystemcoptic.cpp:104
virtual int earliestValidYear() const
Definition: kcalendarsystemcoptic.cpp:124
virtual bool isProleptic() const
Returns whether the calendar system is proleptic, i.e.
Definition: kcalendarsystemcoptic.cpp:505
virtual QDate earliestValidDate() const
Returns the earliest date valid in this calendar system implementation.
Definition: kcalendarsystemcoptic.cpp:430
virtual bool isValid(int year, int month, int day) const =0
Returns whether a given date is valid in this calendar system.
Definition: kcalendarsystem.cpp:1133
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition: kcalendarsystemcoptic.cpp:437
KCalendarSystemCoptic(const KLocale *locale=0)
Definition: kcalendarsystemcoptic.cpp:395
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition: kcalendarsystem.cpp:1127
virtual int year(const QDate &date) const
Returns the year portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1331
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:69
virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
Definition: kcalendarsystemcoptic.cpp:159
KCalendarSystemCopticPrivate(KCalendarSystemCoptic *q)
Definition: kcalendarsystemcoptic.cpp:32
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition: klocalizedstring.cpp:929
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const
Gets specific calendar type month name for a given month number If an invalid month is specified...
Definition: kcalendarsystemcoptic.cpp:465
virtual bool isLunisolar() const
Returns whether the calendar is lunisolar based.
Definition: kcalendarsystemcoptic.cpp:495
virtual KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystemcoptic.cpp:41
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const
Gets specific calendar type week day name.
Definition: kcalendarsystemcoptic.cpp:475
virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
Definition: kcalendarsystemcoptic.cpp:330
virtual int latestValidYear() const
Definition: kcalendarsystemcoptic.cpp:129
virtual int daysInWeek() const
Definition: kcalendarsystemcoptic.cpp:84
virtual bool isValid(int year, int month, int day) const
Returns whether a given date is valid in this calendar system.
Definition: kcalendarsystemcoptic.cpp:445
virtual bool isLeapYear(int year) const
Definition: kcalendarsystemcoptic.cpp:89
virtual bool isSolar() const
Returns whether the calendar is solar based.
Definition: kcalendarsystemcoptic.cpp:500
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const =0
Gets specific calendar type week day name.
Definition: kcalendarsystem.cpp:1881
virtual int maxDaysInWeek() const
Definition: kcalendarsystemcoptic.cpp:114
virtual void loadDefaultEraList()
Definition: kcalendarsystemcoptic.cpp:46
virtual bool isLeapYear(int year) const
Returns whether a given year is a leap year.
Definition: kcalendarsystemcoptic.cpp:455
void addEra(char direction, int offset, const QDate &startDate, int startYear, const QDate &endDate, const QString &name, const QString &shortName, const QString &format)
Definition: kcalendarsystem.cpp:1000
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.