Re: String Freeze Update

2023-10-21 Thread Jürgen Spitzmüller
Am Samstag, dem 21.10.2023 um 10:38 +0200 schrieb Dan:
> 1. Language (in the settings dialog of a listing inset). In English
> this word can be used to refer to both, a tongue and a programming
> language. In other languages this is not necessarily the case, for
> instance in Spanish
>     - Language (tongue) -> lengua / idioma
>     - Language (programming) -> lenguaje (de programación)
>   This rises a problem with the string "Language" in the dialog box
> for a listing's settings. The problematic string is the group title,
> not the language setting itself. The source of the string is
> "src/frontends/qt/ui/ListingsUi.ui" line 334. To see exactly what I
> mean do this
>     1. Insert > Program Listing.
>     2. Then place the cursor inside the listing inset.
>     3. Edit > Listing Settings.
>     4. "Language" is the title of a group of settings. That is the
> problematic string.

Fixed.

>   2. There is a tooltip that is not translatable: it does not appear
> in the POT file. Thus, it shows in English in the interface. To see
> what I mean do the following
>     1. Open a new document in Lyx.
>     2. Open the document settings dialog.
>     3. Choose section "Page Margins" and place the cursor over the
> checkbox "Default Margins".
>     4. That tooltip is not translatable. I will appear in English, no
> matter the language set for the UI.

Fixed.

Thanks,

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: CMake fails on first configure

2023-10-21 Thread Yu Jin
Am Sa., 21. Okt. 2023 um 08:42 Uhr schrieb Yu Jin :

> Am So., 15. Okt. 2023 um 22:32 Uhr schrieb Yu Jin  >:
>
>> Am Mo., 2. Okt. 2023 um 21:51 Uhr schrieb Yu Jin:
>>
>>>
>>> C:\Qt\6.5.2\msvc2019_64\include\QtGui\qtgui-config.h
>>>
>>
>> Ping...
>> I don't really understand what is wrong here, could some1 help out with a
>> minimal example so I can ask the Qt forum?
>>
>> Git bisect leads to this
>
> https://git.lyx.org/?p=lyx.git;a=commitdiff;h=ebe4834684a523de15f55068a32b487cae251bea
>
> I ran cmake with --debug-trycompile and found some more infos, here is
the error:

-- Looking for C++ include QtGui/qtgui-config.h
CMake Debug Log at C:/Program
Files/CMake/share/cmake-3.26/Modules/CheckIncludeFileCXX.cmake:94
(try_compile):
  Executing try_compile (HAVE_QTGUI_CONFIG_H) in:

C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl
Call Stack (most recent call first):
  development/cmake/ConfigureChecks.cmake:290 (check_include_file_cxx)
  CMakeLists.txt:1146 (include)


CMake Error at
C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeLists.txt:12
(include_directories):
  Error evaluating generator expression:

$

  Target "Qt6::ZlibPrivate" not found.

here is the File
C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeLists.txt:

cmake_minimum_required(VERSION 3.28.0.0)
set(CMAKE_MODULE_PATH
"C:/lyx/master/development/cmake/modules;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/3rdparty/kwin")
cmake_policy(SET CMP0091 OLD)
cmake_policy(SET CMP0141 OLD)
cmake_policy(SET CMP0126 OLD)
cmake_policy(SET CMP0128 OLD)
project(CMAKE_TRY_COMPILE CXX)
set(CMAKE_VERBOSE_MAKEFILE 1)
set(CMAKE_CXX_FLAGS "/DWIN32 /D_WINDOWS /W3 /GR /EHsc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_DEFINITIONS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXE_LINKER_FLAGS}")
include_directories(${INCLUDE_DIRECTORIES})
set(CMAKE_SUPPRESS_REGENERATION 1)
link_directories(${LINK_DIRECTORIES})
cmake_policy(SET CMP0065 OLD)
cmake_policy(SET CMP0083 OLD)
cmake_policy(SET CMP0155 OLD)
include("${CMAKE_ROOT}/Modules/Internal/HeaderpadWorkaround.cmake")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
"C:/lyx/master-build-64/CMakeFiles/CMakeScratch/ TryCompile-896vpl")
add_executable(cmTC_cde46)
target_sources(cmTC_cde46 PRIVATE

"C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CheckIncludeFile.cxx"
)
file(GENERATE OUTPUT
"${CMAKE_BINARY_DIR}/cmTC_cde46_$>_loc"
 CONTENT $)
target_link_libraries(cmTC_cde46 ${LINK_LIBRARIES})


So it fails on
include_directories(${INCLUDE_DIRECTORIES})
I have checked the file
C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeCache.txt:

//No help, variable specified on the command line.
INCLUDE_DIRECTORIES:UNINITIALIZED=C:/Qt/6.6.0/msvc2019_64/include/QtCore;C:/Qt/6.6.0/msvc2019_64/include;C:/Qt/6.6.0/msvc2019_64/include/QtZlib;$<$>:>;$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>;$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib>

Is this something variable specified by CMake or can we affect it? Maybe
it's the same thing as in this thread?
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg218586.html
For quick reminder we ended up doing this:
https://git.lyx.org/?p=lyx.git;a=commitdiff;h=26a3a085
-- 
  Eugene
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: CMake fails on first configure

2023-10-21 Thread Kornel Benko
Am Sat, 21 Oct 2023 13:47:13 +0200
schrieb Yu Jin :

> Am Sa., 21. Okt. 2023 um 08:42 Uhr schrieb Yu Jin :
> 
> > Am So., 15. Okt. 2023 um 22:32 Uhr schrieb Yu Jin  > >:
> >
> >> Am Mo., 2. Okt. 2023 um 21:51 Uhr schrieb Yu Jin:
> >>
> >>>
> >>> C:\Qt\6.5.2\msvc2019_64\include\QtGui\qtgui-config.h
> >>>
> >>
> >> Ping...
> >> I don't really understand what is wrong here, could some1 help out with a
> >> minimal example so I can ask the Qt forum?
> >>
> >> Git bisect leads to this
> >
> > https://git.lyx.org/?p=lyx.git;a=commitdiff;h=ebe4834684a523de15f55068a32b487cae251bea
> >
> > I ran cmake with --debug-trycompile and found some more infos, here is
> the error:
> 
> -- Looking for C++ include QtGui/qtgui-config.h
> CMake Debug Log at C:/Program
> Files/CMake/share/cmake-3.26/Modules/CheckIncludeFileCXX.cmake:94
> (try_compile):
>   Executing try_compile (HAVE_QTGUI_CONFIG_H) in:
> 
> C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl
> Call Stack (most recent call first):
>   development/cmake/ConfigureChecks.cmake:290 (check_include_file_cxx)
>   CMakeLists.txt:1146 (include)
> 
> 
> CMake Error at
> C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeLists.txt:12
> (include_directories):
>   Error evaluating generator expression:
> 
> $
> 
>   Target "Qt6::ZlibPrivate" not found.
> 
> here is the File
> C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeLists.txt:
> 
> cmake_minimum_required(VERSION 3.28.0.0)
> set(CMAKE_MODULE_PATH
> "C:/lyx/master/development/cmake/modules;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/3rdparty/kwin")
> cmake_policy(SET CMP0091 OLD)
> cmake_policy(SET CMP0141 OLD)
> cmake_policy(SET CMP0126 OLD)
> cmake_policy(SET CMP0128 OLD)
> project(CMAKE_TRY_COMPILE CXX)
> set(CMAKE_VERBOSE_MAKEFILE 1)
> set(CMAKE_CXX_FLAGS "/DWIN32 /D_WINDOWS /W3 /GR /EHsc")
> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_DEFINITIONS}")
> set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXE_LINKER_FLAGS}")
> include_directories(${INCLUDE_DIRECTORIES})
> set(CMAKE_SUPPRESS_REGENERATION 1)
> link_directories(${LINK_DIRECTORIES})
> cmake_policy(SET CMP0065 OLD)
> cmake_policy(SET CMP0083 OLD)
> cmake_policy(SET CMP0155 OLD)
> include("${CMAKE_ROOT}/Modules/Internal/HeaderpadWorkaround.cmake")
> set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
> "C:/lyx/master-build-64/CMakeFiles/CMakeScratch/ TryCompile-896vpl")
> add_executable(cmTC_cde46)
> target_sources(cmTC_cde46 PRIVATE
> 
> "C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CheckIncludeFile.cxx"
> )
> file(GENERATE OUTPUT
> "${CMAKE_BINARY_DIR}/cmTC_cde46_$>_loc"
>  CONTENT $)
> target_link_libraries(cmTC_cde46 ${LINK_LIBRARIES})
> 
> 
> So it fails on
> include_directories(${INCLUDE_DIRECTORIES})
> I have checked the file
> C:/lyx/master-build-64/CMakeFiles/CMakeScratch/TryCompile-896vpl/CMakeCache.txt:
> 
> //No help, variable specified on the command line.
> INCLUDE_DIRECTORIES:UNINITIALIZED=C:/Qt/6.6.0/msvc2019_64/include/QtCore;C:/Qt/6.6.0/msvc2019_64/include;C:/Qt/6.6.0/msvc2019_64/include/QtZlib;$<$>:>;$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0>;$<$>:C:/Qt/6.6.0/msvc2019_64/include/QtZlib/6.6.0/QtZlib>
> 
> Is this something variable specified by CMake or can we affect it? Maybe
> it's the same thing as in this thread?
> https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg218586.html
> For quick reminder we ended up doing this:
> https://git.lyx.org/?p=lyx.git;a=commitdiff;h=26a3a085

What bothers me, is that the following configure is OK.
For me that implies that the first configure already created CMakeCache.txt.
Could you compare the first CMakeCache.txt with later created version? Normally 
I would
expect they have same content.

Kornel


pgpECsqnVpJCH.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: CMake fails on first configure

2023-10-21 Thread Yu Jin
Am Sa., 21. Okt. 2023 um 19:42 Uhr schrieb Kornel Benko:

>
> What bothers me, is that the following configure is OK.
> For me that implies that the first configure already created
> CMakeCache.txt.
> Could you compare the first CMakeCache.txt with later created version?
> Normally I would
> expect they have same content.
>

Well the following configure does not do any checks or try_compile, so it
can't run into this error .
-- 
  Eugene
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: String Freeze Update

2023-10-21 Thread Pavel Sanda
On Sat, Oct 21, 2023 at 10:38:36AM +0200, Dan wrote:
> I must object :). I have come across some strings of the UI that should be 
> changed. For now I am only notifying the following two, which I think are 
> important; the rest I will report in bulk when done with the translation.

What's your estimation of time needed to finish your translation?

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Request re icons in 2.4.0 (redux)

2023-10-21 Thread Pavel Sanda
On Thu, Sep 14, 2023 at 08:50:50AM -0500, Christopher Menzel wrote:
> Estimable LyX developers,
> 
> I am wondering about a relatively minor interface issue that seems to affect 
> the Linux version of 2.4.0~beta5 but not the MacOS version, as illustrated in 
> the attached graphics, when the "Extra" icon set is placed vertically on the 
> left of the LyX window. In the Linux version, the "Apply recent text 
> properties" icon takes up far more horizontal space than the other icons and, 
> as a consequence, makes the entire icon set take up about 50% more horizontal 
> space than on the MacOS version, where the "Apply recent text properties" 
> icon takes up no more space than the other icons. (The MacOS icons are also 
> noticeably sharper, but that could have to do with the fact that I'm running 
> Linux in a Parallels VM.) I'm wondering if perhaps there is some simple fix 
> here or if it is due to an inherent difference between the two platforms that 
> can't be overridden. FTR, I have compiled 2.4.0~beta5 on both Intel and Apple 
> Silicon machines, which are running up-to-date versions of Kubuntu (23.04) 
> and K
 ali (2023.3), respectively, and both exhibit the phenomenon in question.

Dear Chris,

if you happen to use standard toolbar still in horizontal setting, the icon 
causing your problems was moved back there, so that might fix this issue.

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel