mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
pot file generation changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5829 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e6daca367f
commit
e0902a5679
@ -1,3 +1,10 @@
|
|||||||
|
2002-12-14 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||||
|
|
||||||
|
* Makefile.in.in (languages_l10n.pot): new target
|
||||||
|
(default_ui_l10n.pot): new target
|
||||||
|
(l10n_pots): add languages_l10n.pot and default_ui_l10n.pot
|
||||||
|
($(top_srcdir)/src/ext_l10n.h): delete target
|
||||||
|
|
||||||
2002-12-16 Michael Schmitt <Michael.Schmitt@teststep.org>
|
2002-12-16 Michael Schmitt <Michael.Schmitt@teststep.org>
|
||||||
|
|
||||||
* de.po: update
|
* de.po: update
|
||||||
|
@ -86,7 +86,7 @@ all-no:
|
|||||||
# otherwise packages like GCC can not be built if only parts of the source
|
# otherwise packages like GCC can not be built if only parts of the source
|
||||||
# have been downloaded.
|
# have been downloaded.
|
||||||
|
|
||||||
$(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in $(top_srcdir)/src/ext_l10n.h l10n_pots
|
$(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in l10n_pots
|
||||||
$(XGETTEXT) --join-existing --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
|
$(XGETTEXT) --join-existing --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
|
||||||
--escape --add-comments --keyword=_ --keyword=N_ \
|
--escape --add-comments --keyword=_ --keyword=N_ \
|
||||||
--files-from=$(srcdir)/POTFILES.in \
|
--files-from=$(srcdir)/POTFILES.in \
|
||||||
@ -205,8 +205,8 @@ ${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS)
|
|||||||
&& mv $@-t $@
|
&& mv $@-t $@
|
||||||
|
|
||||||
|
|
||||||
l10n_pots: xforms_l10n.pot qt_l10n.pot layouts_l10n.pot
|
l10n_pots: xforms_l10n.pot qt_l10n.pot layouts_l10n.pot languages_l10n.pot default_ui_l10n.pot
|
||||||
cat xforms_l10n.pot qt_l10n.pot layouts_l10n.pot | \
|
cat xforms_l10n.pot qt_l10n.pot layouts_l10n.pot languages_l10n.pot default_ui_l10n.pot | \
|
||||||
msguniq -o $(PACKAGE).po
|
msguniq -o $(PACKAGE).po
|
||||||
|
|
||||||
xforms_l10n.pot: $(top_srcdir)/src/frontends/xforms/forms/*.fd
|
xforms_l10n.pot: $(top_srcdir)/src/frontends/xforms/forms/*.fd
|
||||||
@ -257,12 +257,36 @@ layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*
|
|||||||
} \
|
} \
|
||||||
' `find $(top_srcdir)/lib/layouts -regex ".*\.\(layout\|inc\)"` > $@
|
' `find $(top_srcdir)/lib/layouts -regex ".*\.\(layout\|inc\)"` > $@
|
||||||
|
|
||||||
$(top_srcdir)/src/ext_l10n.h: $(top_srcdir)/lib/ui/default.ui $(top_srcdir)/lib/languages
|
languages_l10n.pot: $(top_srcdir)/lib/languages
|
||||||
sed < $(top_srcdir)/lib/ui/default.ui -n \
|
awk ' \
|
||||||
-e 's/.*[sS]ub[mM]enu[^"]*\("[^"]*"\).*/_(\1);/p' \
|
/^#/ { \
|
||||||
-e 's/.*[iI]tem[^"]*\("[^"]*"\).*/_(\1);/p' \
|
next; \
|
||||||
> $@
|
} \
|
||||||
sed < $(top_srcdir)/lib/languages -e '/^#/d' -e 's/[^"]*\("[A-Za-z0-9][^"]*"\).*/_(\1);/' >> $@
|
{ \
|
||||||
|
lang=$$3; \
|
||||||
|
gsub(/\"/, "", lang); \
|
||||||
|
printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
|
||||||
|
FILENAME, FNR, lang); \
|
||||||
|
} \
|
||||||
|
' $(top_srcdir)/lib/languages > $@
|
||||||
|
|
||||||
|
default_ui_l10n.pot: $(top_srcdir)/lib/ui/default.ui
|
||||||
|
awk ' \
|
||||||
|
/SubMenu/ { \
|
||||||
|
line=$$0; \
|
||||||
|
sub(/[^"]*"/, "", line); \
|
||||||
|
sub(/".*/, "", line); \
|
||||||
|
printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
|
||||||
|
FILENAME, FNR, line); \
|
||||||
|
} \
|
||||||
|
/Item/ { \
|
||||||
|
line=$$0; \
|
||||||
|
sub(/[^"]*"/, "", line); \
|
||||||
|
sub(/".*/, "", line); \
|
||||||
|
printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
|
||||||
|
FILENAME, FNR, line); \
|
||||||
|
} \
|
||||||
|
' $(top_srcdir)/lib/ui/default.ui > $@
|
||||||
|
|
||||||
# Tell versions [3.59,3.63) of GNU make not to export all variables.
|
# Tell versions [3.59,3.63) of GNU make not to export all variables.
|
||||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
Loading…
Reference in New Issue
Block a user