KDECore
kcalendarsystemindiannational.cpp
Go to the documentation of this file.
50 virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const;
56KCalendarSystemIndianNationalPrivate::KCalendarSystemIndianNationalPrivate(KCalendarSystemIndianNational *q)
76 format = i18nc("(kdedt-format) Indian National, SE, full era year format used for %EY, e.g. 2000 SE", "%Ey %EC");
167QString 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());
326QString KCalendarSystemIndianNationalPrivate::weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
391 : KCalendarSystem(*new KCalendarSystemIndianNationalPrivate(this), KSharedConfig::Ptr(), locale)
396KCalendarSystemIndianNational::KCalendarSystemIndianNational(const KSharedConfig::Ptr config, const KLocale *locale)
402KCalendarSystemIndianNational::KCalendarSystemIndianNational(KCalendarSystemIndianNationalPrivate &dd,
462QString KCalendarSystemIndianNational::monthName(int month, int year, MonthNameFormat format) const
467QString KCalendarSystemIndianNational::monthName(const QDate &date, MonthNameFormat format) const
477QString KCalendarSystemIndianNational::weekDayName(const QDate &date, WeekDayNameFormat format) const
507bool KCalendarSystemIndianNational::julianDayToDate(int jd, int &year, int &month, int &day) const
virtual bool isLunisolar() const
Returns whether the calendar is lunisolar based.
Definition: kcalendarsystemindiannational.cpp:492
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 bool isSolar() const
Returns whether the calendar is solar based.
Definition: kcalendarsystemindiannational.cpp:497
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const
Gets specific calendar type week day name.
Definition: kcalendarsystemindiannational.cpp:472
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
virtual bool isLeapYear(int year) const
Returns whether a given year is a leap year.
Definition: kcalendarsystemindiannational.cpp:452
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition: kcalendarsystemindiannational.cpp:434
virtual QDate earliestValidDate() const
Returns the earliest date valid in this calendar system implementation.
Definition: kcalendarsystemindiannational.cpp:426
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 QString calendarType() const
Definition: kcalendarsystemindiannational.cpp:414
virtual bool isLunar() const
Returns whether the calendar is lunar based.
Definition: kcalendarsystemindiannational.cpp:487
virtual bool isProleptic() const
Returns whether the calendar system is proleptic, i.e.
Definition: kcalendarsystemindiannational.cpp:502
virtual ~KCalendarSystemIndianNational()
Definition: kcalendarsystemindiannational.cpp:410
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition: kcalendarsystemindiannational.cpp:419
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 int weekDayOfPray() const
Definition: kcalendarsystemindiannational.cpp:482
virtual int latestValidYear() const
Definition: kcalendarsystem.cpp:380
virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive=false) const
Definition: kcalendarsystem.cpp:387
virtual bool isLeapYear(int year) const
Definition: kcalendarsystem.cpp:322
virtual KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystem.cpp:261
virtual int daysInYear(int year) const
Definition: kcalendarsystem.cpp:304
virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
Definition: kcalendarsystem.cpp:398
virtual int earliestValidYear() const
Definition: kcalendarsystem.cpp:371
virtual void loadDefaultEraList()
Definition: kcalendarsystem.cpp:269
virtual bool hasYearZero() const
Definition: kcalendarsystem.cpp:348
virtual int daysInMonth(int year, int month) const
Definition: kcalendarsystem.cpp:285
virtual bool hasLeapMonths() const
Definition: kcalendarsystem.cpp:341
virtual int monthsInYear(int year) const
Definition: kcalendarsystem.cpp:277
virtual int maxDaysInWeek() const
Definition: kcalendarsystem.cpp:355
virtual int maxMonthsInYear() const
Definition: kcalendarsystem.cpp:362
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
virtual bool isLeapYear(int year) const =0
Returns whether a given year is a leap year.
Definition: kcalendarsystem.cpp:1720
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
friend class KCalendarSystemIndianNational
Definition: kcalendarsystem.h:1669
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
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
#define I
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.