Compare commits

...

3 Commits

Author SHA1 Message Date
Kornel Benko
7f970b11b3 Update sk.po 2024-09-21 21:54:49 +02:00
Kornel Benko
13f275d0aa Cmake build: Omit "PRE_BUILD" in add_custom_command()
According to cmake warning output while configuring:
CMake Error (dev) at po/CMakeLists.txt:72 (ADD_CUSTOM_COMMAND):
  The following keywords are not supported when using
  add_custom_command(OUTPUT): PRE_BUILD.

  Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
Call Stack (most recent call first):
  po/CMakeLists.txt:106 (add_gettext_python)
This error is for project developers. Use -Wno-error=dev to suppress it.
2024-09-21 21:52:21 +02:00
Scott Kostyshak
6e05409d13 ctests: invert chess lyx2lyx tests
In export.cmake, if the detected output format is pdf3, we try to
export to "platex", which usually makes sense, but for this file we
would need to export to "latex". This file is very particular, and
also old, so I do not know if it is worth the time to handle this
case.

This commit inverts the following tests:

  export/examples/Articles/Chess/Game_1_lyx16 (Failed)
  export/examples/Articles/Chess/Game_1_lyx20 (Failed)
  export/examples/Articles/Chess/Game_1_lyx21 (Failed)
  export/examples/Articles/Chess/Game_1_lyx22 (Failed)
  export/examples/Articles/Chess/Game_1_lyx23 (Failed)
2024-09-21 13:10:20 +02:00
4 changed files with 21 additions and 4 deletions

View File

@ -235,6 +235,9 @@ if (extension MATCHES "\\.lyx$")
if (${_export_format} MATCHES "pdf2") if (${_export_format} MATCHES "pdf2")
set(_texformat "pdflatex") set(_texformat "pdflatex")
elseif(${_export_format} MATCHES "pdf3") elseif(${_export_format} MATCHES "pdf3")
# Ideally we would set to "platex" if Japanese, and "latex" if not Japanese.
# For example, currently we invert export/examples/Articles/Chess/Game_1_lyx because
# it should be exported to "latex" instead of "platex".
set(_texformat "platex") set(_texformat "platex")
elseif(${_export_format} MATCHES "pdf4") elseif(${_export_format} MATCHES "pdf4")
set(_texformat "xetex") set(_texformat "xetex")

View File

@ -57,6 +57,10 @@ export/export/lyx2lyx/lyx_2_3_test2_lyx(16|20)
# clear it is worth the time to try to fix the issue. # clear it is worth the time to try to fix the issue.
export/doc/ja/UserGuide_lyx(16|20) export/doc/ja/UserGuide_lyx(16|20)
export/examples/ja/Modules/LilyPond_Book_lyx(16|20) export/examples/ja/Modules/LilyPond_Book_lyx(16|20)
# in export.cmake, if output format is pdf3, we try to export to "platex" which
# makes sense for all other tests except this one (which should be exported to
# "latex" instead).
export/examples/Articles/Chess/Game_1_lyx.*
# nonstandard tests failing for unknown reason: # nonstandard tests failing for unknown reason:
export/templates/Articles/R_Journal_(dvi3|pdf[45])_systemF export/templates/Articles/R_Journal_(dvi3|pdf[45])_systemF

View File

@ -49,7 +49,6 @@ macro(add_gettext_python _par _dir)
endif() endif()
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
OUTPUT "${_dst}" OUTPUT "${_dst}"
PRE_BUILD
COMMAND ${CMAKE_COMMAND} COMMAND ${CMAKE_COMMAND}
"-DTOP_SRC_DIR=${TOP_SRC_DIR}" "-DTOP_SRC_DIR=${TOP_SRC_DIR}"
"-DDestFile=${_dst}" "-DDestFile=${_dst}"
@ -71,7 +70,6 @@ macro(add_gettext_python _par _dir)
else() else()
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
OUTPUT "${_dst}" OUTPUT "${_dst}"
PRE_BUILD
COMMAND ${LYX_PYTHON_EXECUTABLE} COMMAND ${LYX_PYTHON_EXECUTABLE}
ARGS "${TOP_SRC_DIR}/po/lyx_pot.py" -b "${TOP_SRC_DIR}" -o "${_dst}" -t ${_par1} "--src_file=${_src_files}" ARGS "${TOP_SRC_DIR}/po/lyx_pot.py" -b "${TOP_SRC_DIR}" -o "${_dst}" -t ${_par1} "--src_file=${_src_files}"
DEPENDS ${_sources} ${_src_files} "${TOP_SRC_DIR}/po/lyx_pot.py" DEPENDS ${_sources} ${_src_files} "${TOP_SRC_DIR}/po/lyx_pot.py"

View File

@ -8,8 +8,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: LyX-2.5\n" "Project-Id-Version: LyX-2.5\n"
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n" "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
"POT-Creation-Date: 2024-09-07 09:29+0200\n" "POT-Creation-Date: 2024-09-21 21:29+0200\n"
"PO-Revision-Date: 2024-09-07 08:59+0000\n" "PO-Revision-Date: 2024-09-21 19:33+0000\n"
"Last-Translator: Kornel Benko <kornel@lyx.org>\n" "Last-Translator: Kornel Benko <kornel@lyx.org>\n"
"Language-Team: Slovak <kornel@lyx.org>\n" "Language-Team: Slovak <kornel@lyx.org>\n"
"Language: sk\n" "Language: sk\n"
@ -311,6 +311,10 @@ msgstr "Pridať BibTeX databázu z vášho lokálneho adresára"
msgid "Add &Local..." msgid "Add &Local..."
msgstr "&Pridať lokálnu…" msgstr "&Pridať lokálnu…"
#: src/frontends/qt/ui/BibtexUi.ui:91
msgid "Transfer an absolute local path to a relative one or vice versa"
msgstr "Preniesť absolútnu lokálnu cestu na relatívnu alebo naopak"
#: src/frontends/qt/ui/BibtexUi.ui:91 #: src/frontends/qt/ui/BibtexUi.ui:91
msgid "Inherit bibliography databases from the master document" msgid "Inherit bibliography databases from the master document"
msgstr "Databázy prevziať od hlavného dokumentu" msgstr "Databázy prevziať od hlavného dokumentu"
@ -32557,6 +32561,14 @@ msgstr ""
msgid "Document Encoding" msgid "Document Encoding"
msgstr "Kódovanie dokumentu" msgstr "Kódovanie dokumentu"
#: src/frontends/qt/GuiBibtex.cpp:365 src/frontends/qt/ui/BibtexUi.ui:94
msgid "&Make Relative"
msgstr "&Vytvoriť relatívne"
#: src/frontends/qt/GuiBibtex.cpp:369
msgid "&Make Absolute"
msgstr "&Vytvoriť absolútne"
#: src/frontends/qt/GuiBibtex.cpp:312 #: src/frontends/qt/GuiBibtex.cpp:312
msgid "Database" msgid "Database"
msgstr "Databáza" msgstr "Databáza"