diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-08-28 15:55:17 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-09-02 09:18:47 -1000 |
commit | d3545b4c3057651bb5bf4e61f6dc248f6638df96 (patch) | |
tree | 03a660643857c301c8eec406411cc4e2d604124c /po | |
parent | 328236b01f16abdc7893f2be93cea2c93b7b13d8 (diff) | |
download | anaconda-d3545b4c3057651bb5bf4e61f6dc248f6638df96.tar.gz anaconda-d3545b4c3057651bb5bf4e61f6dc248f6638df96.tar.xz anaconda-d3545b4c3057651bb5bf4e61f6dc248f6638df96.zip |
Include ui, liveinst, and lang-table strings in po updates (#515411)
We were losing strings from liveinst/liveinst.desktop.in, ui/*.glade,
and lang-table whenever update-po would run. Expand the po/ Makefiles
with Rules-lang-table, Rules-glade, and Rules-liveinst. These files add
targets that generate the source files that the main po Makefile targets
will read. Use intltool-extract to generate these source files from the
glade files and the liveinst files. For lang-table, construct a source
file manually.
Modify scripts/getlangnames.py to open *.gmo files instead of *.mo
files.
In the ui/ and liveinst/ subdirs, add the *.h files to CLEANFILES so a
'make clean' operation will clear them out.
Diffstat (limited to 'po')
-rw-r--r-- | po/POTFILES.in | 36 | ||||
-rw-r--r-- | po/Rules-glade | 11 | ||||
-rw-r--r-- | po/Rules-lang-table | 8 | ||||
-rw-r--r-- | po/Rules-liveinst | 11 |
4 files changed, 50 insertions, 16 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in index 846c9b9e1..99a9040de 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -100,21 +100,25 @@ textw/welcome_text.py textw/zipl_text.py # liveinst source files -liveinst/liveinst.desktop.in +liveinst/liveinst.desktop.in.h # Glade definition files -ui/GroupSelector.glade -ui/account.glade -ui/adddrive.glade -ui/addrepo.glade -ui/anaconda.glade -ui/autopart.glade -ui/blwhere.glade -ui/detailed-dialog.glade -ui/instkey.glade -ui/iscsi-config.glade -ui/lukspassphrase.glade -ui/netconfig.glade -ui/network.glade -ui/tasksel.glade -ui/zfcp-config.glade +ui/GroupSelector.glade.h +ui/account.glade.h +ui/adddrive.glade.h +ui/addrepo.glade.h +ui/anaconda.glade.h +ui/autopart.glade.h +ui/blwhere.glade.h +ui/detailed-dialog.glade.h +ui/fcoe-config.glade.h +ui/instkey.glade.h +ui/iscsi-config.glade.h +ui/lukspassphrase.glade.h +ui/netconfig.glade.h +ui/network.glade.h +ui/tasksel.glade.h +ui/zfcp-config.glade.h + +# lang-table +lang-table.h diff --git a/po/Rules-glade b/po/Rules-glade new file mode 100644 index 000000000..b117c4e83 --- /dev/null +++ b/po/Rules-glade @@ -0,0 +1,11 @@ +UI_SRCS = $(wildcard $(top_srcdir)/ui/*.glade) +UI_HDRS = $(UI_SRCS:.glade=.glade.h) + +%.glade.h: %.glade + @cd $(top_builddir)/ui ; \ + intltool-extract -q --type=gettext/glade -l $< ; \ + mv tmp/*h . ; \ + rmdir tmp + +mostlyclean-glade: + rm -f $(UI_HDRS) diff --git a/po/Rules-lang-table b/po/Rules-lang-table new file mode 100644 index 000000000..76c4692fb --- /dev/null +++ b/po/Rules-lang-table @@ -0,0 +1,8 @@ +$(top_builddir)/lang-table.h: $(top_srcdir)/lang-table + @rm -f $(top_builddir)/lang-table.h + @cat $(top_srcdir)/lang-table | cut -f 1 | while read lang ; do \ + echo "char *s = N_(\"$${lang}\")" >> $(top_builddir)/lang-table.h ; \ + done + +mostlyclean-lang-table: + rm -f $(top_builddir)/lang-table.h diff --git a/po/Rules-liveinst b/po/Rules-liveinst new file mode 100644 index 000000000..c2888b3ca --- /dev/null +++ b/po/Rules-liveinst @@ -0,0 +1,11 @@ +LIVEINST_SRCS = $(top_srcdir)/liveinst/liveinst.desktop.in +LIVEINST_HDRS = $(top_builddir)/liveinst/liveinst.desktop.in.h + +%.desktop.in.h: %.desktop.in + @cd $(top_builddir)/liveinst ; \ + intltool-extract -q --type=gettext/keys -l $< ; \ + mv tmp/*h . ; \ + rmdir tmp + +mostlyclean-glade: + rm -f $(LIVEINST_HDRS) |