KDECore
kcalendarsystemindiannational.cpp
Go to the documentation of this file.
50 virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const;
56 KCalendarSystemIndianNationalPrivate::KCalendarSystemIndianNationalPrivate(KCalendarSystemIndianNational *q)
76 format = i18nc("(kdedt-format) Indian National, SE, full era year format used for %EY, e.g. 2000 SE", "%Ey %EC");
167 QString KCalendarSystemIndianNationalPrivate::monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
205 return ki18nc("Indian National month 1 - KLocale::ShortName Possessive", "of Cha").toString(locale());
207 return ki18nc("Indian National month 2 - KLocale::ShortName Possessive", "of Vai").toString(locale());
209 return ki18nc("Indian National month 3 - KLocale::ShortName Possessive", "of Jya").toString(locale());
211 return ki18nc("Indian National month 4 - KLocale::ShortName Possessive", "of Āsh").toString(locale());
213 return ki18nc("Indian National month 5 - KLocale::ShortName Possessive", "of Shr").toString(locale());
215 return ki18nc("Indian National month 6 - KLocale::ShortName Possessive", "of Bhā").toString(locale());
217 return ki18nc("Indian National month 7 - KLocale::ShortName Possessive", "of Āsw").toString(locale());
219 return ki18nc("Indian National month 8 - KLocale::ShortName Possessive", "of Kār").toString(locale());
221 return ki18nc("Indian National month 9 - KLocale::ShortName Possessive", "of Agr").toString(locale());
223 return ki18nc("Indian National month 10 - KLocale::ShortName Possessive", "of Pau").toString(locale());
225 return ki18nc("Indian National month 11 - KLocale::ShortName Possessive", "of Māg").toString(locale());
227 return ki18nc("Indian National month 12 - KLocale::ShortName Possessive", "of Phā").toString(locale());
267 return ki18nc("Indian National month 1 - KLocale::LongName Possessive", "of Chaitra").toString(locale());
269 return ki18nc("Indian National month 2 - KLocale::LongName Possessive", "of Vaishākh").toString(locale());
271 return ki18nc("Indian National month 3 - KLocale::LongName Possessive", "of Jyaishtha").toString(locale());
273 return ki18nc("Indian National month 4 - KLocale::LongName Possessive", "of Āshādha").toString(locale());
275 return ki18nc("Indian National month 5 - KLocale::LongName Possessive", "of Shrāvana").toString(locale());
277 return ki18nc("Indian National month 6 - KLocale::LongName Possessive", "of Bhādrapad").toString(locale());
279 return ki18nc("Indian National month 7 - KLocale::LongName Possessive", "of Āshwin").toString(locale());
281 return ki18nc("Indian National month 8 - KLocale::LongName Possessive", "of Kārtik").toString(locale());
283 return ki18nc("Indian National month 9 - KLocale::LongName Possessive", "of Agrahayana").toString(locale());
285 return ki18nc("Indian National month 10 - KLocale::LongName Possessive", "of Paush").toString(locale());
287 return ki18nc("Indian National month 11 - KLocale::LongName Possessive", "of Māgh").toString(locale());
289 return ki18nc("Indian National month 12 - KLocale::LongName Possessive", "of Phālgun").toString(locale());
326 QString KCalendarSystemIndianNationalPrivate::weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
391 : KCalendarSystem(*new KCalendarSystemIndianNationalPrivate(this), KSharedConfig::Ptr(), locale)
396 KCalendarSystemIndianNational::KCalendarSystemIndianNational(const KSharedConfig::Ptr config, const KLocale *locale)
402 KCalendarSystemIndianNational::KCalendarSystemIndianNational(KCalendarSystemIndianNationalPrivate &dd,
462 QString KCalendarSystemIndianNational::monthName(int month, int year, MonthNameFormat format) const
467 QString KCalendarSystemIndianNational::monthName(const QDate &date, MonthNameFormat format) const
477 QString KCalendarSystemIndianNational::weekDayName(const QDate &date, WeekDayNameFormat format) const
507 bool KCalendarSystemIndianNational::julianDayToDate(int jd, int &year, int &month, int &day) const
531 bool KCalendarSystemIndianNational::dateToJulianDay(int year, int month, int day, int &jd) const
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 earliestValidYear() const
Definition: kcalendarsystem.cpp:371
virtual bool isLeapYear(int year) const
Returns whether a given year is a leap year.
Definition: kcalendarsystemindiannational.cpp:452
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 void loadDefaultEraList()
Definition: kcalendarsystem.cpp:269
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition: kcalendarsystemindiannational.cpp:419
virtual QString calendarType() const
Definition: kcalendarsystemindiannational.cpp:414
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition: kcalendarsystemindiannational.cpp:434
virtual int monthsInYear(int year) const
Definition: kcalendarsystem.cpp:277
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 bool isValid(int year, int month, int day) const
Returns whether a given date is valid in this calendar system.
Definition: kcalendarsystemindiannational.cpp:442
virtual int maxMonthsInYear() const
Definition: kcalendarsystem.cpp:362
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: kcalendarsystemindiannational.cpp:507
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 daysInYear(int year) const
Definition: kcalendarsystem.cpp:304
virtual int daysInWeek() const
Definition: kcalendarsystem.cpp:315
Indian National Calendar, not the Lunar Calendar.
Definition: klocale.h:794
virtual int month(const QDate &date) const
Returns the month portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1344
virtual bool hasLeapMonths() const
Definition: kcalendarsystem.cpp:341
virtual bool isProleptic() const
Returns whether the calendar system is proleptic, i.e.
Definition: kcalendarsystemindiannational.cpp:502
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: kcalendarsystemindiannational.cpp:462
virtual ~KCalendarSystemIndianNational()
Definition: kcalendarsystemindiannational.cpp:410
#define I
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const
Gets specific calendar type week day name.
Definition: kcalendarsystemindiannational.cpp:472
virtual bool isSolar() const
Returns whether the calendar is solar based.
Definition: kcalendarsystemindiannational.cpp:497
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: kcalendarsystemindiannational.cpp:531
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 earliestValidDate() const
Returns the earliest date valid in this calendar system implementation.
Definition: kcalendarsystemindiannational.cpp:426
virtual bool isLunar() const
Returns whether the calendar is lunar based.
Definition: kcalendarsystemindiannational.cpp:487
virtual int maxDaysInWeek() const
Definition: kcalendarsystem.cpp:355
virtual int year(const QDate &date) const
Returns the year portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1331
virtual bool hasYearZero() const
Definition: kcalendarsystem.cpp:348
virtual bool isLunisolar() const
Returns whether the calendar is lunisolar based.
Definition: kcalendarsystemindiannational.cpp:492
virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive=false) const
Definition: kcalendarsystem.cpp:387
virtual int latestValidYear() const
Definition: kcalendarsystem.cpp:380
virtual int daysInMonth(int year, int month) const
Definition: kcalendarsystem.cpp:285
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:69
virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
Definition: kcalendarsystem.cpp:398
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition: klocalizedstring.cpp:929
virtual KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystem.cpp:261
virtual bool isLeapYear(int year) const
Definition: kcalendarsystem.cpp:322
KCalendarSystemIndianNational(const KLocale *locale=0)
Definition: kcalendarsystemindiannational.cpp:390
QDate fromJulianDay(int jd)
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const =0
Gets specific calendar type week day name.
Definition: kcalendarsystem.cpp:1881
virtual int weekDayOfPray() const
Definition: kcalendarsystemindiannational.cpp:482
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.