annotate po/Makefile.in.in.patch @ 1634:9b692bdb4b9f

unify code paths for New directory keep the directory visible after rename https://sourceforge.net/tracker/?func=detail&aid=1951183&group_id=222125&atid=1054680
author nadvornik
date Mon, 08 Jun 2009 19:05:49 +0000
parents 240cf36c9a44
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1577
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
1 --- Makefile.in.in 2009-04-28 23:27:08.000000000 +0200
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
2 +++ Makefile.in.in.new 2009-04-28 23:25:22.000000000 +0200
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
3 @@ -92,7 +92,7 @@
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
4 all-yes: $(CATALOGS)
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
5 all-no:
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
6
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
7 -$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
8 +$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
9 $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
10 --add-comments --keyword=_ --keyword=N_ \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
11 --flag=g_strdup_printf:1:c-format \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
12 @@ -216,8 +216,31 @@
420
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
13 || cp -p $(srcdir)/$$file $(distdir); \
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
14 done
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
15
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
16 -update-po: Makefile
1577
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
17 - $(MAKE) $(GETTEXT_PACKAGE).pot
420
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
18 +### Updating po and gmo files
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
19 +#
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
20 +# Update by merging all .po files with the .po template master file.
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
21 +#
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
22 +# It is possible to update only a single .po file by setting the PO variable to
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
23 +# either <lang> or <lang>.po when calling make. Example: make update-po PO=is
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
24 +
1577
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
25 +update-po: Makefile $(srcdir)/$(GETTEXT_PACKAGE).pot
420
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
26 + @cd $(srcdir); \
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
27 + $(foreach lang,$(basename $(if $(strip $(PO)),$(PO),$(CATALOGS))), \
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
28 + echo -n "$(lang): "; \
1577
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
29 + if $(MSGMERGE) $(lang).po $(srcdir)/$(GETTEXT_PACKAGE).pot -o $(lang).new.po; then \
420
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
30 + mv -f $(lang).new.po $(lang).po; \
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
31 + else \
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
32 + echo "msgmerge failed!"; \
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
33 + rm -f $(lang).new.po; \
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
34 + fi; \
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
35 + )
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
36 + $(MAKE) update-gmo
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
37 +
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
38 +update-gmo: Makefile $(CATALOGS)
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
39 + @:
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
40 +
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
41 +update-po-orig: Makefile
1577
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
42 + $(MAKE) $(srcdir)/$(GETTEXT_PACKAGE).pot
420
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
43 tmpdir=`pwd`; \
53cfc5af7fd7 Add the possibility to update only one translation file using,
zas_
parents:
diff changeset
44 cd $(srcdir); \
1577
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
45 catalogs='$(CATALOGS)'; \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
46 @@ -225,7 +248,7 @@
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
47 cat=`basename $$cat`; \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
48 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
49 echo "$$lang:"; \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
50 - if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
51 + if $(MSGMERGE) $$lang.po $(srcdir)/$(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
52 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
53 rm -f $$tmpdir/$$lang.new.po; \
240cf36c9a44 Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
zas_
parents: 420
diff changeset
54 else \