diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-05 12:04:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-05 12:04:54 +0000 |
commit | 5ef83163f7535b36c9ac5b3c302284a2ccaacb30 (patch) | |
tree | f32973763f3d298474f8b387725b26f9f68603f5 /po | |
parent | ab185489bc22430ddce5a9c7112074361f0a92cb (diff) | |
download | libmicrohttpd-5ef83163f7535b36c9ac5b3c302284a2ccaacb30.tar.gz libmicrohttpd-5ef83163f7535b36c9ac5b3c302284a2ccaacb30.zip |
adding gettext stuff for fixing #4614
Diffstat (limited to 'po')
-rw-r--r-- | po/ChangeLog | 5 | ||||
-rw-r--r-- | po/Makefile.in.in | 483 | ||||
-rw-r--r-- | po/Makevars | 78 | ||||
-rw-r--r-- | po/POTFILES.in | 50 | ||||
-rw-r--r-- | po/Rules-quot | 58 | ||||
-rw-r--r-- | po/boldquot.sed | 10 | ||||
-rw-r--r-- | po/en@boldquot.header | 25 | ||||
-rw-r--r-- | po/en@quot.header | 22 | ||||
-rw-r--r-- | po/insert-header.sin | 23 | ||||
-rw-r--r-- | po/libmicrohttpd.pot | 22 | ||||
-rw-r--r-- | po/quot.sed | 6 | ||||
-rw-r--r-- | po/remove-potcdate.sin | 19 | ||||
-rw-r--r-- | po/stamp-po | 1 |
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 @@ | |||
1 | 2016-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 | ||
10 | GETTEXT_MACRO_VERSION = 0.19 | ||
11 | |||
12 | PACKAGE = @PACKAGE@ | ||
13 | VERSION = @VERSION@ | ||
14 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
15 | |||
16 | SED = @SED@ | ||
17 | SHELL = /bin/sh | ||
18 | @SET_MAKE@ | ||
19 | |||
20 | srcdir = @srcdir@ | ||
21 | top_srcdir = @top_srcdir@ | ||
22 | VPATH = @srcdir@ | ||
23 | |||
24 | prefix = @prefix@ | ||
25 | exec_prefix = @exec_prefix@ | ||
26 | datarootdir = @datarootdir@ | ||
27 | datadir = @datadir@ | ||
28 | localedir = @localedir@ | ||
29 | gettextsrcdir = $(datadir)/gettext/po | ||
30 | |||
31 | INSTALL = @INSTALL@ | ||
32 | INSTALL_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. | ||
41 | mkinstalldirs = $(SHELL) @install_sh@ -d | ||
42 | install_sh = $(SHELL) @install_sh@ | ||
43 | MKDIR_P = @MKDIR_P@ | ||
44 | mkdir_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. | ||
49 | CROSS_COMPILING = @CROSS_COMPILING@ | ||
50 | |||
51 | GMSGFMT_ = @GMSGFMT@ | ||
52 | GMSGFMT_no = @GMSGFMT@ | ||
53 | GMSGFMT_yes = @GMSGFMT_015@ | ||
54 | GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) | ||
55 | MSGFMT_ = @MSGFMT@ | ||
56 | MSGFMT_no = @MSGFMT@ | ||
57 | MSGFMT_yes = @MSGFMT_015@ | ||
58 | MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) | ||
59 | XGETTEXT_ = @XGETTEXT@ | ||
60 | XGETTEXT_no = @XGETTEXT@ | ||
61 | XGETTEXT_yes = @XGETTEXT_015@ | ||
62 | XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) | ||
63 | MSGMERGE = msgmerge | ||
64 | MSGMERGE_UPDATE = @MSGMERGE@ --update | ||
65 | MSGINIT = msginit | ||
66 | MSGCONV = msgconv | ||
67 | MSGFILTER = msgfilter | ||
68 | |||
69 | POFILES = @POFILES@ | ||
70 | GMOFILES = @GMOFILES@ | ||
71 | UPDATEPOFILES = @UPDATEPOFILES@ | ||
72 | DUMMYPOFILES = @DUMMYPOFILES@ | ||
73 | DISTFILES.common = Makefile.in.in remove-potcdate.sin \ | ||
74 | $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) | ||
75 | DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ | ||
76 | $(POFILES) $(GMOFILES) \ | ||
77 | $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) | ||
78 | |||
79 | POTFILES = \ | ||
80 | |||
81 | CATALOGS = @CATALOGS@ | ||
82 | |||
83 | POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot | ||
84 | POFILESDEPS_yes = $(POFILESDEPS_) | ||
85 | POFILESDEPS_no = | ||
86 | POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT)) | ||
87 | |||
88 | DISTFILESDEPS_ = update-po | ||
89 | DISTFILESDEPS_yes = $(DISTFILESDEPS_) | ||
90 | DISTFILESDEPS_no = | ||
91 | DISTFILESDEPS = $(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 | |||
113 | all: all-@USE_NLS@ | ||
114 | |||
115 | all-yes: stamp-po | ||
116 | all-no: | ||
117 | |||
118 | # Ensure that the gettext macros and this Makefile.in.in are in sync. | ||
119 | CHECK_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. | ||
139 | stamp-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 | |||
249 | install: install-exec install-data | ||
250 | install-exec: | ||
251 | install-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 | ||
264 | install-data-no: all | ||
265 | install-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 | |||
305 | install-strip: install | ||
306 | |||
307 | installdirs: installdirs-exec installdirs-data | ||
308 | installdirs-exec: | ||
309 | installdirs-data: installdirs-data-@USE_NLS@ | ||
310 | if test "$(PACKAGE)" = "gettext-tools"; then \ | ||
311 | $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ | ||
312 | else \ | ||
313 | : ; \ | ||
314 | fi | ||
315 | installdirs-data-no: | ||
316 | installdirs-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. | ||
349 | installcheck: | ||
350 | |||
351 | uninstall: uninstall-exec uninstall-data | ||
352 | uninstall-exec: | ||
353 | uninstall-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 | ||
361 | uninstall-data-no: | ||
362 | uninstall-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 | |||
372 | check: all | ||
373 | |||
374 | info dvi ps pdf html tags TAGS ctags CTAGS ID: | ||
375 | |||
376 | mostlyclean: | ||
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 | |||
382 | clean: mostlyclean | ||
383 | |||
384 | distclean: clean | ||
385 | rm -f Makefile Makefile.in POTFILES *.mo | ||
386 | |||
387 | maintainer-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 | |||
392 | distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) | ||
393 | dist distdir: | ||
394 | test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS) | ||
395 | @$(MAKE) dist2 | ||
396 | # This is a separate target because 'update-po' must be executed before. | ||
397 | dist2: 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 | |||
422 | update-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 | |||
468 | update-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. | ||
475 | Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ | ||
476 | cd $(top_builddir) \ | ||
477 | && @SHELL@ ./config.status $(subdir)/$@.in po-directories | ||
478 | |||
479 | force: | ||
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. | ||
4 | DOMAIN = $(PACKAGE) | ||
5 | |||
6 | # These two variables depend on the location of this directory. | ||
7 | subdir = po | ||
8 | top_builddir = .. | ||
9 | |||
10 | # These options get passed to xgettext. | ||
11 | XGETTEXT_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. | ||
21 | COPYRIGHT_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. | ||
28 | PACKAGE_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. | ||
44 | MSGID_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. | ||
48 | EXTRA_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. | ||
54 | USE_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. | ||
60 | MSGMERGE_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. | ||
66 | MSGINIT_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. | ||
72 | PO_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. | ||
78 | DIST_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 @@ | |||
1 | src/examples/authorization_example.c | ||
2 | src/examples/benchmark.c | ||
3 | src/examples/benchmark_https.c | ||
4 | src/examples/chunked_example.c | ||
5 | src/examples/demo.c | ||
6 | src/examples/demo_https.c | ||
7 | src/examples/digest_auth_example.c | ||
8 | src/examples/dual_stack_example.c | ||
9 | src/examples/fileserver_example.c | ||
10 | src/examples/fileserver_example_dirs.c | ||
11 | src/examples/fileserver_example_external_select.c | ||
12 | src/examples/https_fileserver_example.c | ||
13 | src/examples/minimal_example.c | ||
14 | src/examples/minimal_example_comet.c | ||
15 | src/examples/post_example.c | ||
16 | src/examples/querystring_example.c | ||
17 | src/examples/refuse_post_example.c | ||
18 | src/examples/timeout.c | ||
19 | src/microhttpd/base64.c | ||
20 | src/microhttpd/basicauth.c | ||
21 | src/microhttpd/connection.c | ||
22 | src/microhttpd/connection_https.c | ||
23 | src/microhttpd/daemon.c | ||
24 | src/microhttpd/digestauth.c | ||
25 | src/microhttpd/internal.c | ||
26 | src/microhttpd/md5.c | ||
27 | src/microhttpd/memorypool.c | ||
28 | src/microhttpd/mhd_compat.c | ||
29 | src/microhttpd/mhd_itc.c | ||
30 | src/microhttpd/mhd_mono_clock.c | ||
31 | src/microhttpd/mhd_sem.c | ||
32 | src/microhttpd/mhd_sockets.c | ||
33 | src/microhttpd/mhd_str.c | ||
34 | src/microhttpd/mhd_threads.c | ||
35 | src/microhttpd/postprocessor.c | ||
36 | src/microhttpd/reason_phrase.c | ||
37 | src/microhttpd/response.c | ||
38 | src/microhttpd/sysfdsetsize.c | ||
39 | src/microhttpd/tsearch.c | ||
40 | src/testcurl/curl_version_check.c | ||
41 | src/testcurl/https/tls_test_common.c | ||
42 | src/testzzuf/socat.c | ||
43 | src/include/microhttpd.h | ||
44 | src/microhttpd/internal.h | ||
45 | src/microhttpd/mhd_compat.h | ||
46 | src/microhttpd/mhd_itc.h | ||
47 | src/microhttpd/mhd_locks.h | ||
48 | src/microhttpd/mhd_sockets.h | ||
49 | src/microhttpd/mhd_str.h | ||
50 | src/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 | |||
4 | DISTFILES.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 | |||
8 | en@quot.po-create: | ||
9 | $(MAKE) en@quot.po-update | ||
10 | en@boldquot.po-create: | ||
11 | $(MAKE) en@boldquot.po-update | ||
12 | |||
13 | en@quot.po-update: en@quot.po-update-en | ||
14 | en@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 | |||
50 | en@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 | |||
53 | en@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 | |||
56 | mostlyclean: mostlyclean-quot | ||
57 | mostlyclean-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 @@ | |||
1 | s/"\([^"]*\)"/“\1”/g | ||
2 | s/`\([^`']*\)'/‘\1’/g | ||
3 | s/ '\([^`']*\)' / ‘\1’ /g | ||
4 | s/ '\([^`']*\)'$/ ‘\1’/g | ||
5 | s/^'\([^`']*\)' /‘\1’ /g | ||
6 | s/“”/""/g | ||
7 | s/“/“[1m/g | ||
8 | s/”/[0m”/g | ||
9 | s/‘/‘[1m/g | ||
10 | s/’/[0m’/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 /{ | ||
8 | x | ||
9 | # Test if the hold space is empty. | ||
10 | s/m/m/ | ||
11 | ta | ||
12 | # Yes it was empty. First occurrence. Read the file. | ||
13 | r HEADER | ||
14 | # Output the file's contents by reading the next line. But don't lose the | ||
15 | # current line while doing this. | ||
16 | g | ||
17 | N | ||
18 | bb | ||
19 | :a | ||
20 | # The hold space was nonempty. Following occurrences. Do nothing. | ||
21 | x | ||
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 | ||
7 | msgid "" | ||
8 | msgstr "" | ||
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 | ||
21 | msgid "Error decoding basic authentication\n" | ||
22 | msgstr "" | ||
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 @@ | |||
1 | s/"\([^"]*\)"/“\1”/g | ||
2 | s/`\([^`']*\)'/‘\1’/g | ||
3 | s/ '\([^`']*\)' / ‘\1’ /g | ||
4 | s/ '\([^`']*\)'$/ ‘\1’/g | ||
5 | s/^'\([^`']*\)' /‘\1’ /g | ||
6 | s/“”/""/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: .*"$/{ | ||
7 | x | ||
8 | # Test if the hold space is empty. | ||
9 | s/P/P/ | ||
10 | ta | ||
11 | # Yes it was empty. First occurrence. Remove the line. | ||
12 | g | ||
13 | d | ||
14 | bb | ||
15 | :a | ||
16 | # The hold space was nonempty. Following occurrences. Do nothing. | ||
17 | x | ||
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 | |||