Added and modified patch from Henry

Modified the date format according to the chosen language (locale).

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5798 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-11-10 18:59:58 +00:00
parent 59ed165c81
commit a573211629
27 changed files with 159 additions and 129 deletions

View file

@ -73,6 +73,11 @@ public:
/** Sets the current language. */
static bool setLanguage(QString languageCode = QString());
/** Sets the current locale. */
static bool setLocale(QString languageCode = QString());
/** Returns custom formatted date */
static QString customLongDate(uint fromTime);
static QString customLongDate(const QDateTime &fromTime);
/** Sets the current GUI style. */
static bool setStyle(QString styleKey = QString());
/** Sets the current GUI stylesheet. */
@ -149,6 +154,8 @@ private slots:
void blinkTimer();
private:
/** customize the date format (defaultlongformat) */
static void customizeDateFormat();
/** Catches debugging messages from Qt and sends them to
* RetroShare's logs. */
static void qt_msg_handler(QtMsgType type, const char *msg);
@ -162,6 +169,8 @@ private:
static QString _style; /**< The current GUI style. */
static QString _stylesheet; /**< The current GUI stylesheet. */
static QString _language; /**< The current language. */
static QString _datetimeformat; /**< The format for dates in feed items etc. */
static QLocale _locale; /**< The locale (object). */
static Log _log; /**< Logs debugging messages to file or stdout. */
static bool useConfigDir;