mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Langs updated. Private beta version 9049006.
This commit is contained in:
@@ -22,7 +22,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
|
||||
#include "core/basic_types.h"
|
||||
|
||||
#define BETA_VERSION_MACRO (9049005ULL)
|
||||
#define BETA_VERSION_MACRO (9049006ULL)
|
||||
|
||||
constexpr int AppVersion = 9049;
|
||||
constexpr str_const AppVersionStr = "0.9.49";
|
||||
|
@@ -183,7 +183,7 @@ private:
|
||||
class Translator : public QTranslator {
|
||||
public:
|
||||
|
||||
QString translate(const char *context, const char *sourceText, const char *disambiguation = 0, int n = -1) const;
|
||||
QString translate(const char *context, const char *sourceText, const char *disambiguation = 0, int n = -1) const override;
|
||||
|
||||
};
|
||||
|
||||
|
@@ -123,7 +123,11 @@ bool LangLoaderPlain::readKeyValue(const char *&from, const char *end) {
|
||||
while (from < end && ((*from >= 'a' && *from <= 'z') || (*from >= 'A' && *from <= 'Z') || *from == '_' || (*from >= '0' && *from <= '9'))) {
|
||||
++from;
|
||||
}
|
||||
if (from == tagStart) throw Exception(QString("Expected tag name in key '%1'!").arg(QLatin1String(varName)));
|
||||
if (from == tagStart) {
|
||||
readingValue = false;
|
||||
warning(QString("Expected tag name in key '%1'!").arg(QLatin1String(varName)));
|
||||
continue;
|
||||
}
|
||||
QByteArray tagName = QByteArray(tagStart, int(from - tagStart));
|
||||
|
||||
if (from == end || (*from != '}' && *from != ':')) throw Exception(QString("Expected '}' or ':' after tag name in key '%1'!").arg(QLatin1String(varName)));
|
||||
|
Reference in New Issue
Block a user