tdesktop/Telegram/SourceFiles/lang/lang_keys.h

34 lines
1.1 KiB
C
Raw Normal View History

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "lang/lang_instance.h"
2017-09-28 23:11:10 +03:00
#include "lang/lang_hardcoded.h"
2017-04-12 22:17:55 +03:00
2019-06-19 17:09:03 +02:00
QString langDayOfMonth(const QDate &date);
QString langDayOfMonthFull(const QDate &date);
QString langMonthOfYear(int month, int year);
QString langMonth(const QDate &date);
QString langMonthOfYearFull(int month, int year);
QString langMonthFull(const QDate &date);
QString langDayOfWeek(int index);
inline QString langDayOfWeek(const QDate &date) {
return langDayOfWeek(date.dayOfWeek());
}
inline QString langDateTime(const QDateTime &date) {
2015-12-21 16:14:29 +03:00
return lng_mediaview_date_time(lt_date, langDayOfMonth(date.date()), lt_time, date.time().toString(cTimeFormat()));
}
inline QString langDateTimeFull(const QDateTime &date) {
2015-12-21 16:14:29 +03:00
return lng_mediaview_date_time(lt_date, langDayOfMonthFull(date.date()), lt_time, date.time().toString(cTimeFormat()));
}
bool langFirstNameGoesSecond();