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
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
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
KCalendarSystem(const KLocale *locale=0)
Constructor of abstract calendar class.
Definition kcalendarsystem.cpp:1073
virtual bool isLeapYear(int year) const =0
Returns whether a given year is a leap year.
Definition kcalendarsystem.cpp:1720
const KLocale * locale() const
Returns the locale used for translations and formats for this calendar system instance.
Definition kcalendarsystem.cpp:2479
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-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.