Skip to content

Commit

Permalink
Start: Create .qm out of .ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 30, 2023
1 parent b2bd613 commit 7475cb2
Show file tree
Hide file tree
Showing 45 changed files with 6 additions and 43 deletions.
1 change: 1 addition & 0 deletions src/Mod/Start/Gui/AppStartGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ void loadStartResource()
{
// add resources and reloads the translators
Q_INIT_RESOURCE(Start);
Q_INIT_RESOURCE(Start_translation);
Gui::Translator::instance()->refresh();
}

Expand Down
6 changes: 5 additions & 1 deletion src/Mod/Start/Gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ set(StartGui_UIC_SRCS
DlgStartPreferences.ui
)

qt_add_resources(Start_QRC_SRCS Resources/Start.qrc)
set (Start_TR_QRC ${CMAKE_CURRENT_BINARY_DIR}/Resources/Start_translation.qrc)
qt_find_and_add_translation(QM_SRCS "Resources/translations/*_*.ts"
${CMAKE_CURRENT_BINARY_DIR}/Resources/translations)
qt_create_resource_file(${Start_TR_QRC} ${QM_SRCS})
qt_add_resources(Start_QRC_SRCS Resources/Start.qrc ${Start_TR_QRC})

SET(StartGui_SRCS
${Start_QRC_SRCS}
Expand Down
42 changes: 0 additions & 42 deletions src/Mod/Start/Gui/Resources/Start.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,5 @@
<qresource>
<file>icons/StartWorkbench.svg</file>
<file>icons/preferences-start.svg</file>
<file>translations/StartPage_af.qm</file>
<file>translations/StartPage_de.qm</file>
<file>translations/StartPage_fi.qm</file>
<file>translations/StartPage_fr.qm</file>
<file>translations/StartPage_it.qm</file>
<file>translations/StartPage_nl.qm</file>
<file>translations/StartPage_no.qm</file>
<file>translations/StartPage_ru.qm</file>
<file>translations/StartPage_uk.qm</file>
<file>translations/StartPage_pl.qm</file>
<file>translations/StartPage_hr.qm</file>
<file>translations/StartPage_ja.qm</file>
<file>translations/StartPage_hu.qm</file>
<file>translations/StartPage_tr.qm</file>
<file>translations/StartPage_sv-SE.qm</file>
<file>translations/StartPage_zh-TW.qm</file>
<file>translations/StartPage_pt-BR.qm</file>
<file>translations/StartPage_cs.qm</file>
<file>translations/StartPage_sk.qm</file>
<file>translations/StartPage_es-ES.qm</file>
<file>translations/StartPage_zh-CN.qm</file>
<file>translations/StartPage_ro.qm</file>
<file>translations/StartPage_pt-PT.qm</file>
<file>translations/StartPage_sr.qm</file>
<file>translations/StartPage_el.qm</file>
<file>translations/StartPage_sl.qm</file>
<file>translations/StartPage_eu.qm</file>
<file>translations/StartPage_ca.qm</file>
<file>translations/StartPage_gl.qm</file>
<file>translations/StartPage_kab.qm</file>
<file>translations/StartPage_ko.qm</file>
<file>translations/StartPage_fil.qm</file>
<file>translations/StartPage_id.qm</file>
<file>translations/StartPage_lt.qm</file>
<file>translations/StartPage_val-ES.qm</file>
<file>translations/StartPage_ar.qm</file>
<file>translations/StartPage_vi.qm</file>
<file>translations/StartPage_es-AR.qm</file>
<file>translations/StartPage_bg.qm</file>
<file>translations/StartPage_ka.qm</file>
<file>translations/StartPage_sr-CS.qm</file>
<file>translations/StartPage_be.qm</file>
</qresource>
</RCC>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 7475cb2

Please sign in to comment.