Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolcha committed Sep 12, 2024
1 parent 702d863 commit 7c69e57
Show file tree
Hide file tree
Showing 9 changed files with 383 additions and 333 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ set(CMAKE_CXX_EXTENSIONS OFF)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Network Svg
OPTIONAL_COMPONENTS Multimedia)
find_package(Qt6 6.7 REQUIRED COMPONENTS LinguistTools)
find_package(Qt6 6.7 REQUIRED COMPONENTS Widgets Network Svg
OPTIONAL_COMPONENTS Multimedia LinguistTools)

qt_standard_project_setup(I18N_TRANSLATED_LANGUAGES en ru zh_CN)

Expand Down
4 changes: 4 additions & 0 deletions app/gui/settings_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ SettingsDialog::SettingsDialog(Application* app, int idx, QWidget* parent)
{
ui->setupUi(this);

// import/export is not implemnted for now
ui->import_btn->hide();
ui->export_btn->hide();

app->window(_curr_idx)->enableFrame();

QSignalBlocker _(ui->windows_box);
Expand Down
223 changes: 119 additions & 104 deletions app/i18n/digital_clock_en.ts

Large diffs are not rendered by default.

223 changes: 119 additions & 104 deletions app/i18n/digital_clock_ru.ts

Large diffs are not rendered by default.

223 changes: 119 additions & 104 deletions app/i18n/digital_clock_zh_CN.ts

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions plugins/chime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

project(chime VERSION 2.0.1 LANGUAGES CXX)

set(CMAKE_AUTORCC ON)

qt_add_plugin(${PROJECT_NAME} CLASS_NAME ChimePluginFactory
gui/settings_widget.cpp
gui/settings_widget.hpp
Expand Down
12 changes: 6 additions & 6 deletions plugins/quick_note/i18n/quick_note_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@
<context>
<name>QuickNotePlugin</name>
<message>
<location filename="../quick_note_plugin.cpp" line="49"/>
<location filename="../quick_note_plugin.cpp" line="55"/>
<source>double click me!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../quick_note_plugin.cpp" line="56"/>
<location filename="../quick_note_plugin.cpp" line="62"/>
<source>Nothing is here!
Double click the widget to change the text.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../quick_note_plugin.cpp" line="78"/>
<location filename="../quick_note_plugin.cpp" line="84"/>
<source>Quick note</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../quick_note_plugin.cpp" line="79"/>
<location filename="../quick_note_plugin.cpp" line="85"/>
<source>Enter the desired note</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>QuickNotePluginFactory</name>
<message>
<location filename="../quick_note_plugin.cpp" line="95"/>
<location filename="../quick_note_plugin.cpp" line="102"/>
<source>Allows to display any short message under the clock.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../quick_note_plugin.hpp" line="43"/>
<location filename="../quick_note_plugin.hpp" line="45"/>
<source>Quick note</source>
<translation type="unfinished"></translation>
</message>
Expand Down
12 changes: 6 additions & 6 deletions plugins/quick_note/i18n/quick_note_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@
<context>
<name>QuickNotePlugin</name>
<message>
<location filename="../quick_note_plugin.cpp" line="49"/>
<location filename="../quick_note_plugin.cpp" line="55"/>
<source>double click me!</source>
<translation>двойной щелчок здесь!</translation>
</message>
<message>
<location filename="../quick_note_plugin.cpp" line="56"/>
<location filename="../quick_note_plugin.cpp" line="62"/>
<source>Nothing is here!
Double click the widget to change the text.</source>
<translation>Здесь ничего нет!
Сделайте двойной щелчок по виджету чтобы изменить текст.</translation>
</message>
<message>
<location filename="../quick_note_plugin.cpp" line="78"/>
<location filename="../quick_note_plugin.cpp" line="84"/>
<source>Quick note</source>
<translation>Быстрая заметка</translation>
</message>
<message>
<location filename="../quick_note_plugin.cpp" line="79"/>
<location filename="../quick_note_plugin.cpp" line="85"/>
<source>Enter the desired note</source>
<translation>Введите желаемый текст</translation>
</message>
</context>
<context>
<name>QuickNotePluginFactory</name>
<message>
<location filename="../quick_note_plugin.cpp" line="95"/>
<location filename="../quick_note_plugin.cpp" line="102"/>
<source>Allows to display any short message under the clock.</source>
<translation>Отображает короткое сообщение под часами.</translation>
</message>
<message>
<location filename="../quick_note_plugin.hpp" line="43"/>
<location filename="../quick_note_plugin.hpp" line="45"/>
<source>Quick note</source>
<translation>Быстрая заметка</translation>
</message>
Expand Down
12 changes: 6 additions & 6 deletions plugins/quick_note/i18n/quick_note_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@
<context>
<name>QuickNotePlugin</name>
<message>
<location filename="../quick_note_plugin.cpp" line="49"/>
<location filename="../quick_note_plugin.cpp" line="55"/>
<source>double click me!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../quick_note_plugin.cpp" line="56"/>
<location filename="../quick_note_plugin.cpp" line="62"/>
<source>Nothing is here!
Double click the widget to change the text.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../quick_note_plugin.cpp" line="78"/>
<location filename="../quick_note_plugin.cpp" line="84"/>
<source>Quick note</source>
<translation>便捷笔记</translation>
</message>
<message>
<location filename="../quick_note_plugin.cpp" line="79"/>
<location filename="../quick_note_plugin.cpp" line="85"/>
<source>Enter the desired note</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>QuickNotePluginFactory</name>
<message>
<location filename="../quick_note_plugin.cpp" line="95"/>
<location filename="../quick_note_plugin.cpp" line="102"/>
<source>Allows to display any short message under the clock.</source>
<translation>在时钟下显示一段简短的自定义内容。</translation>
</message>
<message>
<location filename="../quick_note_plugin.hpp" line="43"/>
<location filename="../quick_note_plugin.hpp" line="45"/>
<source>Quick note</source>
<translation>便捷笔记</translation>
</message>
Expand Down

0 comments on commit 7c69e57

Please sign in to comment.