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 @echo OFF
set "AppVersionStrSmall=0.7.4" set "AppVersionStrSmall=0.7.5"
set "AppVersionStr=0.7.4" set "AppVersionStr=0.7.5"
set "AppVersionStrFull=0.7.4.0" set "AppVersionStrFull=0.7.5.0"
echo. echo.
echo Preparing version %AppVersionStr%.. 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_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 // Mac specific

View File

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

View File

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

View File

@ -23,6 +23,7 @@ static const char *LanguageCodes[] = {
"es", "es",
"de", "de",
"nl", "nl",
"pt_BR",
}; };
static const int languageTest = -1, languageDefault = 0, languageCount = sizeof(LanguageCodes) / sizeof(LanguageCodes[0]); 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_es.strings">langs/lang_es.strings</file>
<file alias="lang_de.strings">langs/lang_de.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_nl.strings">langs/lang_nl.strings</file>
<file alias="lang_pt_BR.strings">langs/lang_pt_BR.strings</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@ -46,5 +46,6 @@
<file alias="lang_es.strings">langs/lang_es.strings</file> <file alias="lang_es.strings">langs/lang_es.strings</file>
<file alias="lang_de.strings">langs/lang_de.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_nl.strings">langs/lang_nl.strings</file>
<file alias="lang_pt_BR.strings">langs/lang_pt_BR.strings</file>
</qresource> </qresource>
</RCC> </RCC>

View File

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

View File

@ -279,8 +279,9 @@ RESOURCES += \
OTHER_FILES += \ OTHER_FILES += \
Resources/style_classes.txt \ Resources/style_classes.txt \
Resources/style.txt \ Resources/style.txt \
Resources/lang.strings Resources/lang.strings \
SourceFiles/langs/lang_it.strings SourceFiles/langs/lang_it.strings \
SourceFiles/langs/lang_es.strings SourceFiles/langs/lang_es.strings \
SourceFiles/langs/lang_de.strings SourceFiles/langs/lang_de.strings \
SourceFiles/langs/lang_nl.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_es.strings" />
<None Include="SourceFiles\langs\lang_it.strings" /> <None Include="SourceFiles\langs\lang_it.strings" />
<None Include="SourceFiles\langs\lang_nl.strings" /> <None Include="SourceFiles\langs\lang_nl.strings" />
<None Include="SourceFiles\langs\lang_pt_BR.strings" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">

View File

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

View File

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

View File

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