0.7.5 almost ready

This commit is contained in:
John Preston 2015-01-02 18:20:23 +03:00
parent e5471f250d
commit 9efe16b6b4
14 changed files with 30 additions and 22 deletions

View File

@ -1,8 +1,8 @@
@echo OFF
set "AppVersionStrSmall=0.7.4"
set "AppVersionStr=0.7.4"
set "AppVersionStrFull=0.7.4.0"
set "AppVersionStrSmall=0.7.5"
set "AppVersionStr=0.7.5"
set "AppVersionStrFull=0.7.5.0"
echo.
echo Preparing version %AppVersionStr%..

View File

@ -449,7 +449,7 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_new_authorization" = "{name},\nWe detected a login into your account from a new device on {day}, {date} at {time}\n\nDevice: {device}\nLocation: {location}\n\nIf this wasn't you, you can go to Settings — Terminate other sessions.\n\nThanks,\nThe Telegram Team";
"lng_new_version7004" = "Telegram Desktop was updated to version {version}\n\n — German and Dutch languages added.\n\nFull version history is available here:\n{link}";
"lng_new_version7005" = "Telegram Desktop was updated to version {version}\n\n — Stickers support\n — Local caching for voice messages\n — Added Portuguese language\n\nFull version history is available here:\n{link}";
// Mac specific

View File

@ -697,8 +697,8 @@ void Application::startApp() {
QNetworkProxyFactory::setUseSystemConfiguration(true);
if (Local::oldMapVersion() < AppVersion) {
psRegisterCustomScheme();
if (Local::oldMapVersion() && Local::oldMapVersion() < 7004) {
QString versionFeatures(lng_new_version7004(lt_version, QString::fromStdWString(AppVersionStr), lt_link, qsl("https://desktop.telegram.org/#changelog")));
if (Local::oldMapVersion() && Local::oldMapVersion() < 7005) {
QString versionFeatures(lng_new_version7005(lt_version, QString::fromStdWString(AppVersionStr), lt_link, qsl("https://desktop.telegram.org/#changelog")));
if (!versionFeatures.isEmpty()) {
window->serviceNotification(versionFeatures);
}
@ -855,7 +855,7 @@ QString Application::language() {
int32 Application::languageId() {
QByteArray l = language().toLatin1();
for (int32 i = 0; i < languageCount; ++i) {
if (l == LanguageCodes[i]) {
if (l.at(0) == LanguageCodes[i][0] && l.at(1) == LanguageCodes[i][1]) {
return i;
}
}

View File

@ -17,8 +17,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
*/
#pragma once
static const int32 AppVersion = 7004;
static const wchar_t *AppVersionStr = L"0.7.4";
static const int32 AppVersion = 7005;
static const wchar_t *AppVersionStr = L"0.7.5";
static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)";
static const wchar_t *AppName = L"Telegram Desktop";

View File

@ -23,6 +23,7 @@ static const char *LanguageCodes[] = {
"es",
"de",
"nl",
"pt_BR",
};
static const int languageTest = -1, languageDefault = 0, languageCount = sizeof(LanguageCodes) / sizeof(LanguageCodes[0]);

View File

@ -46,5 +46,6 @@
<file alias="lang_es.strings">langs/lang_es.strings</file>
<file alias="lang_de.strings">langs/lang_de.strings</file>
<file alias="lang_nl.strings">langs/lang_nl.strings</file>
<file alias="lang_pt_BR.strings">langs/lang_pt_BR.strings</file>
</qresource>
</RCC>

View File

@ -46,5 +46,6 @@
<file alias="lang_es.strings">langs/lang_es.strings</file>
<file alias="lang_de.strings">langs/lang_de.strings</file>
<file alias="lang_nl.strings">langs/lang_nl.strings</file>
<file alias="lang_pt_BR.strings">langs/lang_pt_BR.strings</file>
</qresource>
</RCC>

View File

@ -11,7 +11,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.7.4</string>
<string>0.7.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>

View File

@ -279,8 +279,9 @@ RESOURCES += \
OTHER_FILES += \
Resources/style_classes.txt \
Resources/style.txt \
Resources/lang.strings
SourceFiles/langs/lang_it.strings
SourceFiles/langs/lang_es.strings
SourceFiles/langs/lang_de.strings
SourceFiles/langs/lang_nl.strings
Resources/lang.strings \
SourceFiles/langs/lang_it.strings \
SourceFiles/langs/lang_es.strings \
SourceFiles/langs/lang_de.strings \
SourceFiles/langs/lang_nl.strings \
SourceFiles/langs/lang_pt_BR.strings

Binary file not shown.

View File

@ -1781,6 +1781,7 @@
<None Include="SourceFiles\langs\lang_es.strings" />
<None Include="SourceFiles\langs\lang_it.strings" />
<None Include="SourceFiles\langs\lang_nl.strings" />
<None Include="SourceFiles\langs\lang_pt_BR.strings" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">

View File

@ -1057,5 +1057,8 @@
<None Include="SourceFiles\langs\lang_nl.strings">
<Filter>langs</Filter>
</None>
<None Include="SourceFiles\langs\lang_pt_BR.strings">
<Filter>langs</Filter>
</None>
</ItemGroup>
</Project>

View File

@ -1595,7 +1595,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 0.7.4;
CURRENT_PROJECT_VERSION = 0.7.5;
DEBUG_INFORMATION_FORMAT = dwarf;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
@ -1613,7 +1613,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
COPY_PHASE_STRIP = YES;
CURRENT_PROJECT_VERSION = 0.7.4;
CURRENT_PROJECT_VERSION = 0.7.5;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_OPTIMIZATION_LEVEL = fast;
GCC_PREFIX_HEADER = ./SourceFiles/stdafx.h;
@ -1639,10 +1639,10 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 0.7.4;
CURRENT_PROJECT_VERSION = 0.7.5;
DEBUG_INFORMATION_FORMAT = dwarf;
DYLIB_COMPATIBILITY_VERSION = 0.7;
DYLIB_CURRENT_VERSION = 0.7.4;
DYLIB_CURRENT_VERSION = 0.7.5;
ENABLE_STRICT_OBJC_MSGSEND = YES;
FRAMEWORK_SEARCH_PATHS = "";
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
@ -1782,10 +1782,10 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 0.7.4;
CURRENT_PROJECT_VERSION = 0.7.5;
DEBUG_INFORMATION_FORMAT = dwarf;
DYLIB_COMPATIBILITY_VERSION = 0.7;
DYLIB_CURRENT_VERSION = 0.7.4;
DYLIB_CURRENT_VERSION = 0.7.5;
ENABLE_STRICT_OBJC_MSGSEND = YES;
FRAMEWORK_SEARCH_PATHS = "";
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;

View File

@ -1,2 +1,2 @@
echo 7004 0.7.4
echo 7005 0.7.5