Skip to content

Commit

Permalink
Added tr_TR related files and code. Bump to version 1.26.
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixdelasPozas committed Oct 15, 2022
1 parent e2e0f35 commit 5afa9e3
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 8 deletions.
2 changes: 1 addition & 1 deletion AboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <QDateTime>
#include <QApplication>

const QString AboutDialog::VERSION{"1.25.0"};
const QString AboutDialog::VERSION{"1.26.0"};
const QString COPYRIGHT{"Copyright (c) 2016-%1 Félix de las Pozas Álvarez"};

//-----------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cmake_minimum_required (VERSION 3.0.0)

# Version Number
set (TRAYWEATHER_VERSION_MAJOR 1)
set (TRAYWEATHER_VERSION_MINOR 25)
set (TRAYWEATHER_VERSION_MINOR 26)
set (TRAYWEATHER_VERSION_PATCH 0)

set(CMAKE_CXX_STANDARD 14)
Expand Down Expand Up @@ -98,6 +98,7 @@ set(TRANSLATIONS_TS_FILES
languages/sl_SI.ts
languages/ko_KR.ts
languages/pl_PL.ts
languages/tr_TR.ts
)

qt5_add_translation(TRANSLATIONS_QM_FILES ${TRANSLATIONS_TS_FILES})
Expand Down
5 changes: 3 additions & 2 deletions Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static const QStringList OWM_LANGUAGES = { "af", "al", "ar", "az", "bg", "ca", "
"uk", "vi", "zh_cn", "zh_tw", "zu" };

static const QStringList QT_LANGUAGES = { "bg", "ca", "cs", "da", "de", "en", "es", "fi", "fr", "gd", "he", "hu",
"it", "ja", "ko", "lv", "pl", "pt_br", "ru", "sk", "sl", "uk", "zh_cn" };
"it", "ja", "ko", "lv", "pl", "pt_br", "ru", "sk", "sl", "tr", "uk", "zh_cn" };

static QTranslator s_appTranslator; /** application language translator. */
static QTranslator s_qtTranslator; /** application Qt dialogs translator. */
Expand Down Expand Up @@ -125,7 +125,8 @@ static QList<LanguageData> TRANSLATIONS = {
{ "Українська", ":/TrayWeather/languages/uk.svg", "uk_UA", "Aleksandr Popov" },
{ "Slovenščina", ":/TrayWeather/languages/sl.svg", "sl_SI", "datenshi888" },
{ "한국어", ":/TrayWeather/languages/kr.svg", "ko_KR", "isl6" },
{ "Polski", ":/TrayWeather/languages/pl.svg", "pl_PL", "Krzysztof Blachnicki" }
{ "Polski", ":/TrayWeather/languages/pl.svg", "pl_PL", "Krzysztof Blachnicki" },
{ "Türkçe", ":/TrayWeather/languages/tr.svg", "tr_TR", "cmhrky " }
};

/** \struct IconThemeData
Expand Down
9 changes: 5 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Tray Weather is available in:
* Slovenian
* Korean
* Polish
* Turkish

If 'TrayWeather' hasn't a translation for your language you can collaborate and translate the application using the
[Qt Linguistic Tools](https://doc.qt.io/qt-5/qtlinguist-index.html) (available [here](https://github.com/lelegard/qtlinguist-installers))
Expand Down Expand Up @@ -147,7 +148,7 @@ To the translation in your language. For example in Spanish it is:

# Repository information

**Version**: 1.25.0
**Version**: 1.26.0

**Status**: finished.

Expand All @@ -156,7 +157,7 @@ To the translation in your language. For example in Spanish it is:
| Language |files |blank |comment |code |
|:-----------------------------|--------------:|------------:|-----------------:|-----:|
| C++ | 10 | 1035 | 393 | 5118 |
| C/C++ Header | 10 | 283 | 829 | 932 |
| C/C++ Header | 10 | 283 | 829 | 933 |
| HTML | 1 | 33 | 0 | 150 |
| CMake | 1 | 19 | 11 | 124 |
| **Total** | **22** | **1370** | **1233** | **6324** |
| CMake | 1 | 19 | 11 | 125 |
| **Total** | **22** | **1370** | **1233** | **6326** |
39 changes: 39 additions & 0 deletions rsc/languages/tr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions rsc/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<file>languages/sl.svg</file>
<file>languages/kr.svg</file>
<file>languages/pl.svg</file>
<file>languages/tr.svg</file>

<file>iconThemes/flaticon/01d.svg</file>
<file>iconThemes/flaticon/01n-0.svg</file>
Expand Down

0 comments on commit 5afa9e3

Please sign in to comment.