PIQtUtils lang fix

This commit is contained in:
2023-06-15 12:27:01 +03:00
parent cecc90f8d8
commit 024360dec5
5 changed files with 8 additions and 2 deletions

View File

@@ -923,6 +923,9 @@ macro(qad_install_lang _NAME)
string(SUBSTRING "${_libname}" 0 ${_sl} _libname)
string(REPLACE "::" "_" _libname "${_libname}")
string(TOLOWER "${_libname}" _libname )
if ("${_libname}" STREQUAL "qad_piqtutils")
set(_libname "qad_piqt_utils")
endif()
#message("imp lib \"${_libname}\"")
list(APPEND _qt_libs ${_libname})
endif()
@@ -932,6 +935,7 @@ macro(qad_install_lang _NAME)
list(APPEND _qt_libs "qtbase")
foreach (_i ${${PROJECT_NAME}_LANG})
foreach (_l ${_qt_libs})
#message("lib = \"${_l}\"")
unset(_qm_path CACHE)
find_file(_qm_path "${_l}_${_i}.qm" PATHS "${Qt${_v}_LANG_DIR}" ${_PATHS} NO_DEFAULT_PATH)
if (EXISTS "${_qm_path}")

View File

@@ -1,2 +1,2 @@
lupdate ../ -ts piqt_utils_ru.ts
lupdate ../ -ts piqt_utils_en.ts
lupdate ../ -ts qad_piqt_utils_ru.ts
lupdate ../ -ts qad_piqt_utils_en.ts

View File

@@ -46,6 +46,8 @@ public:
QSqlQuery & query() { return q; }
bool exec() { return q.exec(); }
static Result exec(QString query_, QVariantMap params = QVariantMap(), QSqlDatabase db = QSqlDatabase());
/// INSERT INTO <table> (<values.keys>) VALUES (<values.values>)