Translation Enablement + some small changes

...ConfigDialog.cpp
- -Increase overall size of window (for NON Mac only so far) - this
eases the translation as in non EN languages

... Pages.CCP
- Changed 2 fixed button sizes (to allow proper translation)
- Correction: if Directoy Browsing was Aborted without selection - the
previous value was deleted
- Chooses the 2nd column to search for "New" text in case of 2 text
colums (short and long)
- All the rest Translation enablement

...DiarySidebar.cpp
- enable translation of date formats

(cherry picked from commit 3bbc68a277e743e610630795bb60dc515ced0355)
This commit is contained in:
Joern
2014-05-19 19:36:29 +02:00
parent 282c228c1e
commit 5bf273ea4d
3 changed files with 77 additions and 76 deletions

View File

@@ -393,9 +393,9 @@ DiarySidebar::setSummary()
QString name;
if (summarySelect->currentIndex() == 0)
name = tr("Day of ") + from.toString("dddd MMMM d");
name = tr("Day of ") + from.toString(tr("dddd MMMM d"));
else if (summarySelect->currentIndex() == 1)
name = QString(tr("Week Commencing %1")).arg(from.toString("dddd MMMM d"));
name = QString(tr("Week Commencing %1")).arg(from.toString(tr("dddd MMMM d")));
else if (summarySelect->currentIndex() == 2)
name = from.toString(tr("MMMM yyyy"));
@@ -779,7 +779,7 @@ GcMiniCalendar::setDate(int _month, int _year)
// don't refresh the model if we're already showing this month
if (month != _month || year != _year) calendarModel->setMonth(_month, _year);
monthName->setText(QDate(_year,_month,01).toString("MMMM yyyy"));
monthName->setText(QDate(_year,_month,01).toString(tr("MMMM yyyy")));
// update state
month = _month;