Commit Graph

33 Commits

Author SHA1 Message Date
Patrick de Visschere
3f790725d9 Using the latest commit and building lyx with cmake on macos-sonoma with
xcode fails with multiple error messages like this one:

----------
CMake Error in po/CMakeLists.txt:
       The custom command generating

     <build-directory>/po/LyX2.4.cat.pot

       is attached to multiple targets:

     translations
     update-gmo

  but none of these is a common dependency of the other(s).  This is not
  allowed by the Xcode "new build system".
2024-03-20 11:44:22 +01:00
Kornel Benko
aadfb58374 Cmake build: Try to omit using directory names as source-files in po
Previously there are po-entries like
  #: lib/examples/Articles:0 src/TocBackend.cpp:296
  #:src/frontends/qt/GuiExternal.cpp:87
  msgid "External Material"
  msgstr ""

now:
  #: src/TocBackend.cpp:296 src/frontends/qt/GuiExternal.cpp:87
  #: lib/examples/Articles:0
  msgid "External Material"
  msgstr ""

(The string at 'lib/examples/Articles:0' proceeds also from the directory name 'lib/examples/External_Material')

This makes it easier to use some po-editors like 'linguist'
2020-09-07 21:12:22 +02:00
Kornel Benko
5c4c3b301a Amend c293be56: Cmake part of 'Rename frontend qt4 to qt' 2019-07-21 00:44:17 +02:00
Kornel Benko
daa3997229 Cmake po-build: add missing entries 2019-07-16 14:10:08 +02:00
Kornel Benko
6fe29e9946 Cmake build: make editing of po-files on unix easier
Editing created po-file with a lokalization program like "linguist"
needs a hint to find the referenced sources.
Creating symbolic links helps.
2018-06-06 17:03:12 +02:00
Kornel Benko
1d11333c46 Cmake build: Recreate .pot files also if po/lyx_pot.py changes. 2018-05-07 13:29:57 +02:00
Kornel Benko
ed7cdfff26 Cmake build: Use correct list of files to recreate lib/layouttranslation 2018-02-20 11:16:59 +01:00
Kornel Benko
7fc170c951 Cmake build: Totally missed lokalization of lib/citeengines/*.citeengines. 2017-06-11 14:42:05 +02:00
Juergen Spitzmueller
52019917f4 Split external_templates to individual *.xtemplate files
This makes it easier to add new templates or change existing ones
in the user directory.

Fixes: #3983

The CMake changes should be double-checked.
2017-03-26 15:32:01 +02:00
Kornel Benko
9c3ddbf7a0 Typo 2016-07-27 07:58:56 +02:00
Kornel Benko
cbd4e332f7 Cmake build: Make missing polib less destructive.
Configure still whines, but proceeds succesfull.
Only the target 'layouttranslations1' will fail.
2016-07-27 07:34:50 +02:00
Kornel Benko
fa85bf9b59 Cmake build: Added check for pythons polib module
Idea stolen from http://public.kitware.com/pipermail/cmake/2011-January/041666.html
2016-07-24 11:20:08 +02:00
Kornel Benko
40597c3be9 Cmake build: Make sure that a sequence of commands to recreate layouttranslations failes
Factored out the sequence into one cmake-script.
Previously it could happen that the python script failed, but the following
command was successfull and so the error was hidden.
2016-07-23 20:30:45 +02:00
Georg Baum
2d708bd7cf Simplify .po file generation
We can generate the file with the cirrect line endings directly instead of
calling a helper script to convert them.
2016-05-29 17:55:44 -04:00
Kornel Benko
7bc45a9812 Addd parameter to xgettext to also parse utf-8 chars. 2015-12-05 01:35:19 +01:00
Kornel Benko
ab4ad882fa Cmake-gmo creation: Recreate ${_lyxname}.fmt.pot only if it really changes 2014-10-24 18:53:58 +02:00
Kornel Benko
61f0634abf Cmake build: No need to recreate lyx.pot on every make call.
We can check if imput data for 'gettext' command has changed from previous call.
If not, there is no need to recreate lyx.pot, which we only differ in
	"POT-Creation-Date: ...."
2014-10-23 16:49:41 +02:00
Kornel Benko
b66f2a355f CMake: Optimize use of target update-gmo 2014-02-04 17:42:26 +01:00
Vincent van Ravesteijn
f63221aba4 CMake: Add target update-gmo
This target will update the gmo files if and only if the associated
po-file is modified. To determine whether a file is modified, 'git
status --porcelain' is used.

This follows up on commit 06782542.
2014-02-03 20:07:12 +01:00
Kornel Benko
0678254241 Cmake build: Add targets to selectively create .gmo files 2014-01-05 10:04:56 +01:00
Kornel Benko
22d52f5f08 cmake: Use provided gmo-files if platform lacks python or gettext tools.
Running lyx from the build-directory now searches for the gmo-files
first in the build dir and then in source dir
2013-06-02 11:38:27 +02:00
Vincent van Ravesteijn
0cd8c03d17 CMake: Put projects into subdirs
This patch puts all projects into subfolders (at least for MSVS). In this
way, there is a better overview (especially if the number of test projects
will be increasing).
2012-12-15 11:02:06 +01:00
Kornel Benko
d91d6e3343 Cmake build:
Cleanup the use of path-variables
2012-11-02 13:33:22 +01:00
Kornel Benko
2626821ee2 Cmake build:
Modifications needed to work also if the path to build-dir
contains spaces. (Tested on linux)
2012-10-23 13:23:07 +02:00
Kornel Benko
84ef6f391f Stop handling file 'installed_translations' in cmake-build 2012-09-08 18:07:43 +02:00
Kornel Benko
5464189898 Add latexfonts_l10.pot to cmake build 2012-08-16 22:36:32 +02:00
Kornel Benko
0cdc8c3aca Mimic the autoconf behaviour to select only
configured GUI languages.
Data are assembled at "cmake" time only
2012-07-20 09:47:22 +02:00
Kornel Benko
1faaa3d4af Typo + missing dependencies in cmake build 2012-07-19 13:52:07 +02:00
Kornel Benko
c2473039cd Port handling of installed languages (commit ed1515ef69)
to cmake build
2012-07-19 11:54:22 +02:00
Peter Kümmel
6fd4bb443e cmake fix po generation/update: msguniq.exe doesn't like dos line endings (produces broken pot files)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39913 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-21 23:14:35 +00:00
Kornel Benko
c06ae08067 Reenable use of Package.cpp as source to translation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39784 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-29 11:55:29 +00:00
Kornel Benko
41f9efb519 Changed update_po_files - target to 'update-po'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38774 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-15 21:22:07 +00:00
Peter Kümmel
897edc10c0 cmake: move CMakeLists.txt into source dir (multiple steps)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38691 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-10 17:44:41 +00:00