aboutsummaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-05 12:04:54 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-05 12:04:54 +0000
commit5ef83163f7535b36c9ac5b3c302284a2ccaacb30 (patch)
treef32973763f3d298474f8b387725b26f9f68603f5 /po
parentab185489bc22430ddce5a9c7112074361f0a92cb (diff)
downloadlibmicrohttpd-5ef83163f7535b36c9ac5b3c302284a2ccaacb30.tar.gz
libmicrohttpd-5ef83163f7535b36c9ac5b3c302284a2ccaacb30.zip
adding gettext stuff for fixing #4614
Diffstat (limited to 'po')
-rw-r--r--po/ChangeLog5
-rw-r--r--po/Makefile.in.in483
-rw-r--r--po/Makevars78
-rw-r--r--po/POTFILES.in50
-rw-r--r--po/Rules-quot58
-rw-r--r--po/boldquot.sed10
-rw-r--r--po/en@boldquot.header25
-rw-r--r--po/en@quot.header22
-rw-r--r--po/insert-header.sin23
-rw-r--r--po/libmicrohttpd.pot22
-rw-r--r--po/quot.sed6
-rw-r--r--po/remove-potcdate.sin19
-rw-r--r--po/stamp-po1
13 files changed, 802 insertions, 0 deletions
diff --git a/po/ChangeLog b/po/ChangeLog
new file mode 100644
index 00000000..47e3fc02
--- /dev/null
+++ b/po/ChangeLog
@@ -0,0 +1,5 @@
12016-09-05 gettextize <bug-gnu-gettext@gnu.org>
2
3 * Makefile.in.in: Upgrade to gettext-0.19.8.1.
4 * Rules-quot: Upgrade to gettext-0.19.8.1.
5
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
new file mode 100644
index 00000000..38c293d2
--- /dev/null
+++ b/po/Makefile.in.in
@@ -0,0 +1,483 @@
1# Makefile for PO directory in any package using GNU gettext.
2# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
3#
4# Copying and distribution of this file, with or without modification,
5# are permitted in any medium without royalty provided the copyright
6# notice and this notice are preserved. This file is offered as-is,
7# without any warranty.
8#
9# Origin: gettext-0.19.8
10GETTEXT_MACRO_VERSION = 0.19
11
12PACKAGE = @PACKAGE@
13VERSION = @VERSION@
14PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
15
16SED = @SED@
17SHELL = /bin/sh
18@SET_MAKE@
19
20srcdir = @srcdir@
21top_srcdir = @top_srcdir@
22VPATH = @srcdir@
23
24prefix = @prefix@
25exec_prefix = @exec_prefix@
26datarootdir = @datarootdir@
27datadir = @datadir@
28localedir = @localedir@
29gettextsrcdir = $(datadir)/gettext/po
30
31INSTALL = @INSTALL@
32INSTALL_DATA = @INSTALL_DATA@
33
34# We use $(mkdir_p).
35# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
36# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
37# @install_sh@ does not start with $(SHELL), so we add it.
38# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
39# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
40# versions, $(mkinstalldirs) and $(install_sh) are unused.
41mkinstalldirs = $(SHELL) @install_sh@ -d
42install_sh = $(SHELL) @install_sh@
43MKDIR_P = @MKDIR_P@
44mkdir_p = @mkdir_p@
45
46# When building gettext-tools, we prefer to use the built programs
47# rather than installed programs. However, we can't do that when we
48# are cross compiling.
49CROSS_COMPILING = @CROSS_COMPILING@
50
51GMSGFMT_ = @GMSGFMT@
52GMSGFMT_no = @GMSGFMT@
53GMSGFMT_yes = @GMSGFMT_015@
54GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
55MSGFMT_ = @MSGFMT@
56MSGFMT_no = @MSGFMT@
57MSGFMT_yes = @MSGFMT_015@
58MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
59XGETTEXT_ = @XGETTEXT@
60XGETTEXT_no = @XGETTEXT@
61XGETTEXT_yes = @XGETTEXT_015@
62XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
63MSGMERGE = msgmerge
64MSGMERGE_UPDATE = @MSGMERGE@ --update
65MSGINIT = msginit
66MSGCONV = msgconv
67MSGFILTER = msgfilter
68
69POFILES = @POFILES@
70GMOFILES = @GMOFILES@
71UPDATEPOFILES = @UPDATEPOFILES@
72DUMMYPOFILES = @DUMMYPOFILES@
73DISTFILES.common = Makefile.in.in remove-potcdate.sin \
74$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
75DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
76$(POFILES) $(GMOFILES) \
77$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
78
79POTFILES = \
80
81CATALOGS = @CATALOGS@
82
83POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot
84POFILESDEPS_yes = $(POFILESDEPS_)
85POFILESDEPS_no =
86POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT))
87
88DISTFILESDEPS_ = update-po
89DISTFILESDEPS_yes = $(DISTFILESDEPS_)
90DISTFILESDEPS_no =
91DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO))
92
93# Makevars gets inserted here. (Don't remove this line!)
94
95.SUFFIXES:
96.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
97
98.po.mo:
99 @echo "$(MSGFMT) -c -o $@ $<"; \
100 $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
101
102.po.gmo:
103 @lang=`echo $* | sed -e 's,.*/,,'`; \
104 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
105 echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
106 cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
107
108.sin.sed:
109 sed -e '/^#/d' $< > t-$@
110 mv t-$@ $@
111
112
113all: all-@USE_NLS@
114
115all-yes: stamp-po
116all-no:
117
118# Ensure that the gettext macros and this Makefile.in.in are in sync.
119CHECK_MACRO_VERSION = \
120 test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
121 || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
122 exit 1; \
123 }
124
125# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
126# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
127# we don't want to bother translators with empty POT files). We assume that
128# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
129# In this case, stamp-po is a nop (i.e. a phony target).
130
131# stamp-po is a timestamp denoting the last time at which the CATALOGS have
132# been loosely updated. Its purpose is that when a developer or translator
133# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
134# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
135# invocations of "make" will do nothing. This timestamp would not be necessary
136# if updating the $(CATALOGS) would always touch them; however, the rule for
137# $(POFILES) has been designed to not touch files that don't need to be
138# changed.
139stamp-po: $(srcdir)/$(DOMAIN).pot
140 @$(CHECK_MACRO_VERSION)
141 test ! -f $(srcdir)/$(DOMAIN).pot || \
142 test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
143 @test ! -f $(srcdir)/$(DOMAIN).pot || { \
144 echo "touch stamp-po" && \
145 echo timestamp > stamp-poT && \
146 mv stamp-poT stamp-po; \
147 }
148
149# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
150# otherwise packages like GCC can not be built if only parts of the source
151# have been downloaded.
152
153# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
154# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
155# The determination of whether the package xyz is a GNU one is based on the
156# heuristic whether some file in the top level directory mentions "GNU xyz".
157# If GNU 'find' is available, we avoid grepping through monster files.
158$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
159 package_gnu="$(PACKAGE_GNU)"; \
160 test -n "$$package_gnu" || { \
161 if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
162 LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f \
163 -size -10000000c -exec grep 'GNU @PACKAGE@' \
164 /dev/null '{}' ';' 2>/dev/null; \
165 else \
166 LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \
167 fi; \
168 } | grep -v 'libtool:' >/dev/null; then \
169 package_gnu=yes; \
170 else \
171 package_gnu=no; \
172 fi; \
173 }; \
174 if test "$$package_gnu" = "yes"; then \
175 package_prefix='GNU '; \
176 else \
177 package_prefix=''; \
178 fi; \
179 if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
180 msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
181 else \
182 msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
183 fi; \
184 case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
185 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
186 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
187 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
188 --files-from=$(srcdir)/POTFILES.in \
189 --copyright-holder='$(COPYRIGHT_HOLDER)' \
190 --msgid-bugs-address="$$msgid_bugs_address" \
191 ;; \
192 *) \
193 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
194 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
195 --files-from=$(srcdir)/POTFILES.in \
196 --copyright-holder='$(COPYRIGHT_HOLDER)' \
197 --package-name="$${package_prefix}@PACKAGE@" \
198 --package-version='@VERSION@' \
199 --msgid-bugs-address="$$msgid_bugs_address" \
200 ;; \
201 esac
202 test ! -f $(DOMAIN).po || { \
203 if test -f $(srcdir)/$(DOMAIN).pot-header; then \
204 sed -e '1,/^#$$/d' < $(DOMAIN).po > $(DOMAIN).1po && \
205 cat $(srcdir)/$(DOMAIN).pot-header $(DOMAIN).1po > $(DOMAIN).po; \
206 rm -f $(DOMAIN).1po; \
207 fi; \
208 if test -f $(srcdir)/$(DOMAIN).pot; then \
209 sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
210 sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
211 if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
212 rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
213 else \
214 rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
215 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
216 fi; \
217 else \
218 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
219 fi; \
220 }
221
222# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
223# every "make" invocation, only create it when it is missing.
224# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
225$(srcdir)/$(DOMAIN).pot:
226 $(MAKE) $(DOMAIN).pot-update
227
228# This target rebuilds a PO file if $(DOMAIN).pot has changed.
229# Note that a PO file is not touched if it doesn't need to be changed.
230$(POFILES): $(POFILESDEPS)
231 @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
232 if test -f "$(srcdir)/$${lang}.po"; then \
233 test -f $(srcdir)/$(DOMAIN).pot || $(MAKE) $(srcdir)/$(DOMAIN).pot; \
234 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
235 echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
236 cd $(srcdir) \
237 && { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
238 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
239 $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
240 *) \
241 $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
242 esac; \
243 }; \
244 else \
245 $(MAKE) $${lang}.po-create; \
246 fi
247
248
249install: install-exec install-data
250install-exec:
251install-data: install-data-@USE_NLS@
252 if test "$(PACKAGE)" = "gettext-tools"; then \
253 $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
254 for file in $(DISTFILES.common) Makevars.template; do \
255 $(INSTALL_DATA) $(srcdir)/$$file \
256 $(DESTDIR)$(gettextsrcdir)/$$file; \
257 done; \
258 for file in Makevars; do \
259 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
260 done; \
261 else \
262 : ; \
263 fi
264install-data-no: all
265install-data-yes: all
266 @catalogs='$(CATALOGS)'; \
267 for cat in $$catalogs; do \
268 cat=`basename $$cat`; \
269 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
270 dir=$(localedir)/$$lang/LC_MESSAGES; \
271 $(mkdir_p) $(DESTDIR)$$dir; \
272 if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
273 $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
274 echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
275 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
276 if test -n "$$lc"; then \
277 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
278 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
279 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
280 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
281 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
282 for file in *; do \
283 if test -f $$file; then \
284 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
285 fi; \
286 done); \
287 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
288 else \
289 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
290 :; \
291 else \
292 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
293 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
294 fi; \
295 fi; \
296 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
297 ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
298 ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
299 cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
300 echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
301 fi; \
302 done; \
303 done
304
305install-strip: install
306
307installdirs: installdirs-exec installdirs-data
308installdirs-exec:
309installdirs-data: installdirs-data-@USE_NLS@
310 if test "$(PACKAGE)" = "gettext-tools"; then \
311 $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
312 else \
313 : ; \
314 fi
315installdirs-data-no:
316installdirs-data-yes:
317 @catalogs='$(CATALOGS)'; \
318 for cat in $$catalogs; do \
319 cat=`basename $$cat`; \
320 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
321 dir=$(localedir)/$$lang/LC_MESSAGES; \
322 $(mkdir_p) $(DESTDIR)$$dir; \
323 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
324 if test -n "$$lc"; then \
325 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
326 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
327 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
328 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
329 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
330 for file in *; do \
331 if test -f $$file; then \
332 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
333 fi; \
334 done); \
335 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
336 else \
337 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
338 :; \
339 else \
340 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
341 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
342 fi; \
343 fi; \
344 fi; \
345 done; \
346 done
347
348# Define this as empty until I found a useful application.
349installcheck:
350
351uninstall: uninstall-exec uninstall-data
352uninstall-exec:
353uninstall-data: uninstall-data-@USE_NLS@
354 if test "$(PACKAGE)" = "gettext-tools"; then \
355 for file in $(DISTFILES.common) Makevars.template; do \
356 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
357 done; \
358 else \
359 : ; \
360 fi
361uninstall-data-no:
362uninstall-data-yes:
363 catalogs='$(CATALOGS)'; \
364 for cat in $$catalogs; do \
365 cat=`basename $$cat`; \
366 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
367 for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
368 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
369 done; \
370 done
371
372check: all
373
374info dvi ps pdf html tags TAGS ctags CTAGS ID:
375
376mostlyclean:
377 rm -f remove-potcdate.sed
378 rm -f stamp-poT
379 rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
380 rm -fr *.o
381
382clean: mostlyclean
383
384distclean: clean
385 rm -f Makefile Makefile.in POTFILES *.mo
386
387maintainer-clean: distclean
388 @echo "This command is intended for maintainers to use;"
389 @echo "it deletes files that may require special tools to rebuild."
390 rm -f stamp-po $(GMOFILES)
391
392distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
393dist distdir:
394 test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS)
395 @$(MAKE) dist2
396# This is a separate target because 'update-po' must be executed before.
397dist2: stamp-po $(DISTFILES)
398 dists="$(DISTFILES)"; \
399 if test "$(PACKAGE)" = "gettext-tools"; then \
400 dists="$$dists Makevars.template"; \
401 fi; \
402 if test -f $(srcdir)/$(DOMAIN).pot; then \
403 dists="$$dists $(DOMAIN).pot stamp-po"; \
404 fi; \
405 if test -f $(srcdir)/ChangeLog; then \
406 dists="$$dists ChangeLog"; \
407 fi; \
408 for i in 0 1 2 3 4 5 6 7 8 9; do \
409 if test -f $(srcdir)/ChangeLog.$$i; then \
410 dists="$$dists ChangeLog.$$i"; \
411 fi; \
412 done; \
413 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
414 for file in $$dists; do \
415 if test -f $$file; then \
416 cp -p $$file $(distdir) || exit 1; \
417 else \
418 cp -p $(srcdir)/$$file $(distdir) || exit 1; \
419 fi; \
420 done
421
422update-po: Makefile
423 $(MAKE) $(DOMAIN).pot-update
424 test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
425 $(MAKE) update-gmo
426
427# General rule for creating PO files.
428
429.nop.po-create:
430 @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
431 echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
432 exit 1
433
434# General rule for updating PO files.
435
436.nop.po-update:
437 @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
438 if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; fi; \
439 tmpdir=`pwd`; \
440 echo "$$lang:"; \
441 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
442 echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
443 cd $(srcdir); \
444 if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
445 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
446 $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
447 *) \
448 $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
449 esac; \
450 }; then \
451 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
452 rm -f $$tmpdir/$$lang.new.po; \
453 else \
454 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
455 :; \
456 else \
457 echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
458 exit 1; \
459 fi; \
460 fi; \
461 else \
462 echo "msgmerge for $$lang.po failed!" 1>&2; \
463 rm -f $$tmpdir/$$lang.new.po; \
464 fi
465
466$(DUMMYPOFILES):
467
468update-gmo: Makefile $(GMOFILES)
469 @:
470
471# Recreate Makefile by invoking config.status. Explicitly invoke the shell,
472# because execution permission bits may not work on the current file system.
473# Use @SHELL@, which is the shell determined by autoconf for the use by its
474# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
475Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
476 cd $(top_builddir) \
477 && @SHELL@ ./config.status $(subdir)/$@.in po-directories
478
479force:
480
481# Tell versions [3.59,3.63) of GNU make not to export all variables.
482# Otherwise a system limit (for SysV at least) may be exceeded.
483.NOEXPORT:
diff --git a/po/Makevars b/po/Makevars
new file mode 100644
index 00000000..47e8415c
--- /dev/null
+++ b/po/Makevars
@@ -0,0 +1,78 @@
1# Makefile variables for PO directory in any package using GNU gettext.
2
3# Usually the message domain is the same as the package name.
4DOMAIN = $(PACKAGE)
5
6# These two variables depend on the location of this directory.
7subdir = po
8top_builddir = ..
9
10# These options get passed to xgettext.
11XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
12
13# This is the copyright holder that gets inserted into the header of the
14# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
15# package. (Note that the msgstr strings, extracted from the package's
16# sources, belong to the copyright holder of the package.) Translators are
17# expected to transfer the copyright for their translations to this person
18# or entity, or to disclaim their copyright. The empty string stands for
19# the public domain; in this case the translators are expected to disclaim
20# their copyright.
21COPYRIGHT_HOLDER = Christian Grothoff
22
23# This tells whether or not to prepend "GNU " prefix to the package
24# name that gets inserted into the header of the $(DOMAIN).pot file.
25# Possible values are "yes", "no", or empty. If it is empty, try to
26# detect it automatically by scanning the files in $(top_srcdir) for
27# "GNU packagename" string.
28PACKAGE_GNU = yes
29
30# This is the email address or URL to which the translators shall report
31# bugs in the untranslated strings:
32# - Strings which are not entire sentences, see the maintainer guidelines
33# in the GNU gettext documentation, section 'Preparing Strings'.
34# - Strings which use unclear terms or require additional context to be
35# understood.
36# - Strings which make invalid assumptions about notation of date, time or
37# money.
38# - Pluralisation problems.
39# - Incorrect English spelling.
40# - Incorrect formatting.
41# It can be your email address, or a mailing list address where translators
42# can write to without being subscribed, or the URL of a web page through
43# which the translators can contact you.
44MSGID_BUGS_ADDRESS = libmicrohttpd@gnu.org
45
46# This is the list of locale categories, beyond LC_MESSAGES, for which the
47# message catalogs shall be used. It is usually empty.
48EXTRA_LOCALE_CATEGORIES =
49
50# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
51# context. Possible values are "yes" and "no". Set this to yes if the
52# package uses functions taking also a message context, like pgettext(), or
53# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
54USE_MSGCTXT = no
55
56# These options get passed to msgmerge.
57# Useful options are in particular:
58# --previous to keep previous msgids of translated messages,
59# --quiet to reduce the verbosity.
60MSGMERGE_OPTIONS =
61
62# These options get passed to msginit.
63# If you want to disable line wrapping when writing PO files, add
64# --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and
65# MSGINIT_OPTIONS.
66MSGINIT_OPTIONS =
67
68# This tells whether or not to regenerate a PO file when $(DOMAIN).pot
69# has changed. Possible values are "yes" and "no". Set this to no if
70# the POT file is checked in the repository and the version control
71# program ignores timestamps.
72PO_DEPENDS_ON_POT = yes
73
74# This tells whether or not to forcibly update $(DOMAIN).pot and
75# regenerate PO files on "make dist". Possible values are "yes" and
76# "no". Set this to no if the POT file and PO files are maintained
77# externally.
78DIST_DEPENDS_ON_UPDATE_PO = yes
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 00000000..25ea23d6
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,50 @@
1src/examples/authorization_example.c
2src/examples/benchmark.c
3src/examples/benchmark_https.c
4src/examples/chunked_example.c
5src/examples/demo.c
6src/examples/demo_https.c
7src/examples/digest_auth_example.c
8src/examples/dual_stack_example.c
9src/examples/fileserver_example.c
10src/examples/fileserver_example_dirs.c
11src/examples/fileserver_example_external_select.c
12src/examples/https_fileserver_example.c
13src/examples/minimal_example.c
14src/examples/minimal_example_comet.c
15src/examples/post_example.c
16src/examples/querystring_example.c
17src/examples/refuse_post_example.c
18src/examples/timeout.c
19src/microhttpd/base64.c
20src/microhttpd/basicauth.c
21src/microhttpd/connection.c
22src/microhttpd/connection_https.c
23src/microhttpd/daemon.c
24src/microhttpd/digestauth.c
25src/microhttpd/internal.c
26src/microhttpd/md5.c
27src/microhttpd/memorypool.c
28src/microhttpd/mhd_compat.c
29src/microhttpd/mhd_itc.c
30src/microhttpd/mhd_mono_clock.c
31src/microhttpd/mhd_sem.c
32src/microhttpd/mhd_sockets.c
33src/microhttpd/mhd_str.c
34src/microhttpd/mhd_threads.c
35src/microhttpd/postprocessor.c
36src/microhttpd/reason_phrase.c
37src/microhttpd/response.c
38src/microhttpd/sysfdsetsize.c
39src/microhttpd/tsearch.c
40src/testcurl/curl_version_check.c
41src/testcurl/https/tls_test_common.c
42src/testzzuf/socat.c
43src/include/microhttpd.h
44src/microhttpd/internal.h
45src/microhttpd/mhd_compat.h
46src/microhttpd/mhd_itc.h
47src/microhttpd/mhd_locks.h
48src/microhttpd/mhd_sockets.h
49src/microhttpd/mhd_str.h
50src/microhttpd/mhd_threads.h
diff --git a/po/Rules-quot b/po/Rules-quot
new file mode 100644
index 00000000..baf65285
--- /dev/null
+++ b/po/Rules-quot
@@ -0,0 +1,58 @@
1# This file, Rules-quot, can be copied and used freely without restrictions.
2# Special Makefile rules for English message catalogs with quotation marks.
3
4DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
5
6.SUFFIXES: .insert-header .po-update-en
7
8en@quot.po-create:
9 $(MAKE) en@quot.po-update
10en@boldquot.po-create:
11 $(MAKE) en@boldquot.po-update
12
13en@quot.po-update: en@quot.po-update-en
14en@boldquot.po-update: en@boldquot.po-update-en
15
16.insert-header.po-update-en:
17 @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
18 if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
19 tmpdir=`pwd`; \
20 echo "$$lang:"; \
21 ll=`echo $$lang | sed -e 's/@.*//'`; \
22 LC_ALL=C; export LC_ALL; \
23 cd $(srcdir); \
24 if $(MSGINIT) $(MSGINIT_OPTIONS) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null \
25 | $(SED) -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | \
26 { case `$(MSGFILTER) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
27 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-8] | 0.1[0-8].*) \
28 $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed \
29 ;; \
30 *) \
31 $(MSGFILTER) `echo $$lang | sed -e 's/.*@//'` \
32 ;; \
33 esac } 2>/dev/null > $$tmpdir/$$lang.new.po \
34 ; then \
35 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
36 rm -f $$tmpdir/$$lang.new.po; \
37 else \
38 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
39 :; \
40 else \
41 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
42 exit 1; \
43 fi; \
44 fi; \
45 else \
46 echo "creation of $$lang.po failed!" 1>&2; \
47 rm -f $$tmpdir/$$lang.new.po; \
48 fi
49
50en@quot.insert-header: insert-header.sin
51 sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
52
53en@boldquot.insert-header: insert-header.sin
54 sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
55
56mostlyclean: mostlyclean-quot
57mostlyclean-quot:
58 rm -f *.insert-header
diff --git a/po/boldquot.sed b/po/boldquot.sed
new file mode 100644
index 00000000..4b937aa5
--- /dev/null
+++ b/po/boldquot.sed
@@ -0,0 +1,10 @@
1s/"\([^"]*\)"/“\1”/g
2s/`\([^`']*\)'/‘\1’/g
3s/ '\([^`']*\)' / ‘\1’ /g
4s/ '\([^`']*\)'$/ ‘\1’/g
5s/^'\([^`']*\)' /‘\1’ /g
6s/“”/""/g
7s/“/“/g
8s/”/”/g
9s/‘/‘/g
10s/’/’/g
diff --git a/po/en@boldquot.header b/po/en@boldquot.header
new file mode 100644
index 00000000..fedb6a06
--- /dev/null
+++ b/po/en@boldquot.header
@@ -0,0 +1,25 @@
1# All this catalog "translates" are quotation characters.
2# The msgids must be ASCII and therefore cannot contain real quotation
3# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
4# and double quote (0x22). These substitutes look strange; see
5# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
6#
7# This catalog translates grave accent (0x60) and apostrophe (0x27) to
8# left single quotation mark (U+2018) and right single quotation mark (U+2019).
9# It also translates pairs of apostrophe (0x27) to
10# left single quotation mark (U+2018) and right single quotation mark (U+2019)
11# and pairs of quotation mark (0x22) to
12# left double quotation mark (U+201C) and right double quotation mark (U+201D).
13#
14# When output to an UTF-8 terminal, the quotation characters appear perfectly.
15# When output to an ISO-8859-1 terminal, the single quotation marks are
16# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
17# grave/acute accent (by libiconv), and the double quotation marks are
18# transliterated to 0x22.
19# When output to an ASCII terminal, the single quotation marks are
20# transliterated to apostrophes, and the double quotation marks are
21# transliterated to 0x22.
22#
23# This catalog furthermore displays the text between the quotation marks in
24# bold face, assuming the VT100/XTerm escape sequences.
25#
diff --git a/po/en@quot.header b/po/en@quot.header
new file mode 100644
index 00000000..a9647fc3
--- /dev/null
+++ b/po/en@quot.header
@@ -0,0 +1,22 @@
1# All this catalog "translates" are quotation characters.
2# The msgids must be ASCII and therefore cannot contain real quotation
3# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
4# and double quote (0x22). These substitutes look strange; see
5# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
6#
7# This catalog translates grave accent (0x60) and apostrophe (0x27) to
8# left single quotation mark (U+2018) and right single quotation mark (U+2019).
9# It also translates pairs of apostrophe (0x27) to
10# left single quotation mark (U+2018) and right single quotation mark (U+2019)
11# and pairs of quotation mark (0x22) to
12# left double quotation mark (U+201C) and right double quotation mark (U+201D).
13#
14# When output to an UTF-8 terminal, the quotation characters appear perfectly.
15# When output to an ISO-8859-1 terminal, the single quotation marks are
16# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
17# grave/acute accent (by libiconv), and the double quotation marks are
18# transliterated to 0x22.
19# When output to an ASCII terminal, the single quotation marks are
20# transliterated to apostrophes, and the double quotation marks are
21# transliterated to 0x22.
22#
diff --git a/po/insert-header.sin b/po/insert-header.sin
new file mode 100644
index 00000000..b26de01f
--- /dev/null
+++ b/po/insert-header.sin
@@ -0,0 +1,23 @@
1# Sed script that inserts the file called HEADER before the header entry.
2#
3# At each occurrence of a line starting with "msgid ", we execute the following
4# commands. At the first occurrence, insert the file. At the following
5# occurrences, do nothing. The distinction between the first and the following
6# occurrences is achieved by looking at the hold space.
7/^msgid /{
8x
9# Test if the hold space is empty.
10s/m/m/
11ta
12# Yes it was empty. First occurrence. Read the file.
13r HEADER
14# Output the file's contents by reading the next line. But don't lose the
15# current line while doing this.
16g
17N
18bb
19:a
20# The hold space was nonempty. Following occurrences. Do nothing.
21x
22:b
23}
diff --git a/po/libmicrohttpd.pot b/po/libmicrohttpd.pot
new file mode 100644
index 00000000..ddd18fe5
--- /dev/null
+++ b/po/libmicrohttpd.pot
@@ -0,0 +1,22 @@
1# SOME DESCRIPTIVE TITLE.
2# Copyright (C) YEAR Christian Grothoff
3# This file is distributed under the same license as the GNU libmicrohttpd package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5#
6#, fuzzy
7msgid ""
8msgstr ""
9"Project-Id-Version: GNU libmicrohttpd 0.9.51\n"
10"Report-Msgid-Bugs-To: libmicrohttpd@gnu.org\n"
11"POT-Creation-Date: 2016-09-05 14:00+0200\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"
15"Language: \n"
16"MIME-Version: 1.0\n"
17"Content-Type: text/plain; charset=CHARSET\n"
18"Content-Transfer-Encoding: 8bit\n"
19
20#: src/microhttpd/basicauth.c:65
21msgid "Error decoding basic authentication\n"
22msgstr ""
diff --git a/po/quot.sed b/po/quot.sed
new file mode 100644
index 00000000..0122c463
--- /dev/null
+++ b/po/quot.sed
@@ -0,0 +1,6 @@
1s/"\([^"]*\)"/“\1”/g
2s/`\([^`']*\)'/‘\1’/g
3s/ '\([^`']*\)' / ‘\1’ /g
4s/ '\([^`']*\)'$/ ‘\1’/g
5s/^'\([^`']*\)' /‘\1’ /g
6s/“”/""/g
diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin
new file mode 100644
index 00000000..2436c49e
--- /dev/null
+++ b/po/remove-potcdate.sin
@@ -0,0 +1,19 @@
1# Sed script that remove the POT-Creation-Date line in the header entry
2# from a POT file.
3#
4# The distinction between the first and the following occurrences of the
5# pattern is achieved by looking at the hold space.
6/^"POT-Creation-Date: .*"$/{
7x
8# Test if the hold space is empty.
9s/P/P/
10ta
11# Yes it was empty. First occurrence. Remove the line.
12g
13d
14bb
15:a
16# The hold space was nonempty. Following occurrences. Do nothing.
17x
18:b
19}
diff --git a/po/stamp-po b/po/stamp-po
new file mode 100644
index 00000000..9788f702
--- /dev/null
+++ b/po/stamp-po
@@ -0,0 +1 @@
timestamp