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.
159QString 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
330QString KCalendarSystemCopticPrivate::weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
401KCalendarSystemCoptic::KCalendarSystemCoptic(const KSharedConfig::Ptr config, const KLocale *locale)
virtual void loadDefaultEraList()
Definition: kcalendarsystemcoptic.cpp:46
virtual ~KCalendarSystemCopticPrivate()
Definition: kcalendarsystemcoptic.cpp:37
virtual int maxDaysInWeek() const
Definition: kcalendarsystemcoptic.cpp:114
virtual int daysInMonth(int year, int month) const
Definition: kcalendarsystemcoptic.cpp:62
virtual bool hasLeapMonths() const
Definition: kcalendarsystemcoptic.cpp:104
virtual KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystemcoptic.cpp:41
virtual int maxMonthsInYear() const
Definition: kcalendarsystemcoptic.cpp:119
virtual bool hasYearZero() const
Definition: kcalendarsystemcoptic.cpp:109
virtual int earliestValidYear() const
Definition: kcalendarsystemcoptic.cpp:124
virtual int daysInYear(int year) const
Definition: kcalendarsystemcoptic.cpp:75
virtual int daysInWeek() const
Definition: kcalendarsystemcoptic.cpp:84
virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
Definition: kcalendarsystemcoptic.cpp:159
virtual int monthsInYear(int year) const
Definition: kcalendarsystemcoptic.cpp:56
virtual bool isLeapYear(int year) const
Definition: kcalendarsystemcoptic.cpp:89
virtual int latestValidYear() const
Definition: kcalendarsystemcoptic.cpp:129
virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
Definition: kcalendarsystemcoptic.cpp:330
KCalendarSystemCopticPrivate(KCalendarSystemCoptic *q)
Definition: kcalendarsystemcoptic.cpp:32
virtual ~KCalendarSystemCoptic()
Definition: kcalendarsystemcoptic.cpp:414
virtual bool isLeapYear(int year) const
Returns whether a given year is a leap year.
Definition: kcalendarsystemcoptic.cpp:455
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 isProleptic() const
Returns whether the calendar system is proleptic, i.e.
Definition: kcalendarsystemcoptic.cpp:505
virtual bool isLunar() const
Returns whether the calendar is lunar based.
Definition: kcalendarsystemcoptic.cpp:490
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition: kcalendarsystemcoptic.cpp:423
virtual int weekDayOfPray() const
Definition: kcalendarsystemcoptic.cpp:485
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const
Gets specific calendar type week day name.
Definition: kcalendarsystemcoptic.cpp:475
virtual QDate earliestValidDate() const
Returns the earliest date valid in this calendar system implementation.
Definition: kcalendarsystemcoptic.cpp:430
virtual bool isSolar() const
Returns whether the calendar is solar based.
Definition: kcalendarsystemcoptic.cpp:500
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 bool isLunisolar() const
Returns whether the calendar is lunisolar based.
Definition: kcalendarsystemcoptic.cpp:495
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition: kcalendarsystemcoptic.cpp:437
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 QString calendarType() const
Definition: kcalendarsystemcoptic.cpp:418
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
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
KCalendarSystem abstract base class, provides support for local Calendar Systems in KDE.
Definition: kcalendarsystem.h:41
virtual int day(const QDate &date) const
Returns the day portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1357
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 int year(const QDate &date) const
Returns the year portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1331
friend class KCalendarSystemCoptic
Definition: kcalendarsystem.h:1665
virtual bool isLeapYear(int year) const =0
Returns whether a given year is a leap year.
Definition: kcalendarsystem.cpp:1720
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition: kcalendarsystem.cpp:1127
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 QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const =0
Gets specific calendar type week day name.
Definition: kcalendarsystem.cpp:1881
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition: kcalendarsystem.cpp:1115
virtual int month(const QDate &date) const
Returns the month portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1344
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:70
@ CopticCalendar
Coptic Calendar as used Coptic Church and some parts of Egypt.
Definition: klocale.h:785
QString toString() const
Finalizes the translation, creates QString with placeholders substituted.
Definition: klocalizedstring.cpp:192
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition: klocalizedstring.cpp:929
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.