[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kcontrol/locale
From: Carlos Moro <cfmoro () correo ! uniovi ! es>
Date: 2003-05-26 19:31:35
[Download RAW message or body]
CVS commit by cfmoro:
Added jalali (iranian) item to calendar system combo
M +7 -3 localetime.cpp 1.62
--- kdebase/kcontrol/locale/localetime.cpp #1.61:1.62
@@ -316,8 +316,9 @@ void KLocaleConfigTime::slotCalendarSyst
typedef QValueVector<QString> CalendarVector;
- CalendarVector calendars(3);
+ CalendarVector calendars(4);
calendars[0] = "gregorian";
calendars[1] = "hijri";
calendars[2] = "hebrew";
+ calendars[3] = "jalali";
QString calendarType;
@@ -336,8 +337,9 @@ void KLocaleConfigTime::slotLocaleChange
{
typedef QValueVector<QString> CalendarVector;
- CalendarVector calendars(3);
+ CalendarVector calendars(4);
calendars[0] = "gregorian";
calendars[1] = "hijri";
calendars[2] = "hebrew";
+ calendars[3] = "jalali";
QString calendarType = m_locale->calendarType();
@@ -448,5 +450,5 @@ void KLocaleConfigTime::slotTranslate()
updateWeekDayNames();
- while ( m_comboCalendarSystem->count() < 3 )
+ while ( m_comboCalendarSystem->count() < 4 )
m_comboCalendarSystem->insertItem(QString::null);
m_comboCalendarSystem->changeItem
@@ -456,4 +458,6 @@ void KLocaleConfigTime::slotTranslate()
m_comboCalendarSystem->changeItem
(m_locale->translate("Calendar System Hebrew", "Hebrew"), 2);
+ m_comboCalendarSystem->changeItem
+ (m_locale->translate("Calendar System Jalali", "Jalali"), 3);
str = m_locale->translate
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic