Mercurial > pidgin.yaz
view Makefile.am @ 9531:06fe6ed7f63a
[gaim-migrate @ 10358]
"How do you update your po files ("make update-po" or ./update.pl)?
update.pl
has some advantages. But update.pl has also a small bug. In rare cases
(double
msgid's etc.) update.pl kills your po-file. This can happen, if msgmerge
fails and if you have an old gettext version. The problem is here:
po/update.pl:149:
...
$d="mv $LANG.po $LANG.po.old && msgmerge $LANG.po.old $PACKAGE.pot
-o
+$LANG.po";
...
If msgmerge fails, the file $LANG.po will be overwritten. "make update-po"
has
not this problem, because it uses a temporary file:
...
if $(MSGMERGE) $$lang.po $(PACKAGE).pot -o $$lang.new.po; then \
mv -f $$lang.new.po $$lang.po; \
else \
echo "msgmerge for $$cat failed!"; \
rm -f $$lang.new.po; \
fi; \
...
I patched po/update.pl. Now it uses a temporary file. Also, update2.pl
lists
files in po/POTFILES.in which have no i18n strings as a warning." -- Bjoern
Voigt
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 14 Jul 2004 20:14:48 +0000 |
parents | 63f07fa577eb |
children | c398f55ce5c7 |
line wrap: on
line source
EXTRA_DIST = \ COPYRIGHT \ Doxyfile.in \ gaim.pc.in \ gaim.spec.in \ gaim.desktop \ gaim2blt.pl \ gaim-installer.nsi \ HACKING \ PROGRAMMING_NOTES \ licq2gaim.pl \ setup-gettext \ ChangeLog.win32 \ config.h.mingw \ Makefile.mingw \ README.mingw \ VERSION \ VERSION.in \ plugins/win32/transparency/Makefile.mingw \ plugins/win32/transparency/win2ktrans.c \ plugins/win32/winprefs/gtkappbar.c \ plugins/win32/winprefs/gtkappbar.h \ plugins/win32/winprefs/Makefile.mingw \ plugins/win32/winprefs/winprefs.c \ po/Makefile.mingw gaimincludedir=$(includedir)/gaim gaiminclude_HEADERS = config.h pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = gaim.pc dist-hook: gaim.spec cp gaim.spec $(distdir) distcheck-hook: plugins/perl/common/Gaim.pm # cp plugins/perl/common/Gaim.pm $(distdir)/plugins/perl/common appsdir = $(datadir)/applications apps_DATA = gaim.desktop SUBDIRS = doc intl pixmaps plugins po sounds src docs: Doxyfile @doxygen