2
0
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:
John Preston
2016-06-13 14:04:37 +03:00
parent 0fa6b5bc90
commit 7c34872a48
13 changed files with 26 additions and 22 deletions

View File

@@ -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";

View File

@@ -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;
};

View File

@@ -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)));