Commit Graph

10 Commits

Author SHA1 Message Date
Kornel Benko
4963d9ec29 Use the new parameter for lyx_pot.py to pass
file-name parameters in one extra file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29641 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 09:21:59 +00:00
Kornel Benko
5ed63945f7 This is a try to shorten the length of the command line when creating
..._l10n.pot files.
(The line-length on Windows should not exceed 0x8000 bytes)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29517 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 17:59:01 +00:00
Kornel Benko
a7b6a5ba48 Change the quote style to satisfy MSVC.
Patch from Peter Kümmel


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29512 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 15:14:14 +00:00
Kornel Benko
7ad31fcf7b Try to avoid use of perl, if there is no perl-command available
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29244 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 07:28:37 +00:00
Kornel Benko
6f5ac86d6e Copy po-files only if realy changed.
Avoids annoying po re-building.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29243 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 07:14:29 +00:00
Kornel Benko
b5880744c9 1.) Definition of macro add_gettext_python()
Missed the part, when there were more then one argument
        specifying the possible extension.
2.) Typo in extension: .layouts => .layout
3.) Reorder the creation of lyx.pot to make more like when creating
        with autoconf.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29106 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 16:02:46 +00:00
Kornel Benko
c313084ef5 Avoid modification of po-files in source tree
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28888 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 06:49:49 +00:00
Peter Kümmel
765e190753 cmake: Kornel
Search for all possible files, since there is no POTFILES.in anymore in svn
		Use the PACKAGE-Value as the root of the .mo file
			 (For now it will be LyX.mo)
--line, and those below, will be ignored--

M    development/cmake/po/CMakeLists.txt


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28365 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-05 19:02:27 +00:00
Peter Kümmel
588a118f3f cmake: some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28010 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-06 18:51:00 +00:00
Peter Kümmel
510c918c6c Kornel's cmake install changes:
New files:
        Directories:
		development/cmake/po
		development/cmake/man
        Files:
		development/cmake/po/CMakeLists.txt
			Creates lyx.pot and *.gmo-files;
			Installs ${_lang} as ${LYX_ABS_INSTALLED_DATADIR}/${LYX_LOCALEDIR}/${_lang}/LC_MESSAGES/lyx.mo
		development/cmake/man/CMakeLists.txt
			Handling of lyx-manuals.
		development/cmake/modules/FindLyXGettext.cmake
			Original: (GNU) FindGettext.cmake
			Changed the installation subdirectory of .gmo-files.
			Previously installing into "/usr/local/share/lyx2.0" led
				   to e.g. /usr/local/share/lyx2.0/share/locale/de/LC_MESSAGES/lyx.mo
				   now     /usr/local/share/lyx2.0/locale/de/LC_MESSAGES/lyx.mo
Changes:
        development/cmake/Install.cmake
                macro lyx_install _parent_src_dir
                        searches now through directories specified as simple regular expression.
                        Until now we had to specify explicitly each directory for each language.
                Mode of the DESTINATION/lyx2lyx is now corect
                Installation of the .gmo files

	development/cmake/config.h.cmake:
		Changed some #cmakedefine to #define, because config_file() did not
        	substitute the desired values in config.h.
        	Some typos corrected (TOP_SRCDIR -> TOP_SRC_DIR)

        development/cmake/configCompiler.h.cmake
                Removed doubly defined ENABLE_NLS, HAVE_LC_MESSAGES
                Installation directory still hardcoded, users need to to set environment
                variable LYX_LOCALEDIR to get the corect translations.

	development/cmake/CMakeLists.txt
		Setting correct values to LYX_ABS_INSTALLED_DATADIR,
        		LYX_ABS_INSTALLED_LOCALEDIR, LYX_ABS_TOP_SRCDIR.
			Now the lyx-executable searches on the installed places for it's data,
        		so no need to set environment anymore.
		New variable: LYX_LOCALEDIR. We need it later in FindLyXGettext.cmake,
		    	because we cannot use the absolute path LYX_ABS_INSTALLED_LOCALEDIR.
			(We need relative path when packaging to different root-directory).
                Use of module FindLyXGettext.cmake: This is a modified version
		       	of (GNU) FindGettext.cmake
                Include the new development/cmake/po directory
		Include the new development/cmake/man directory

        development/cmake/po/CMakeLists.txt
                Creation of lyx.pot and apropriate .gmo files
                Creating lyx.pot file
                        I had to use perl to simulate the unix "cat" command. Maybe Jose can
                        write the corect statement in python





git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27973 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-28 13:35:29 +00:00