File: gettext.patch

package info (click to toggle)
zabbix 1%3A7.0.10%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 272,688 kB
  • sloc: sql: 946,050; ansic: 389,440; php: 292,698; javascript: 83,388; sh: 5,680; makefile: 3,285; java: 1,420; cpp: 694; perl: 64; xml: 56
file content (28 lines) | stat: -rw-r--r-- 957 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Last-Update: 2016-02-17
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: minor corections to gettext scripts.
 * verbose .mo build
 * invoke `xgettext` with "--omit-header" to preserve POT-Creation-Date headers.

--- a/ui/locale/make_mo.sh
+++ b/ui/locale/make_mo.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
 
 while read pofile; do
-        msgfmt --use-fuzzy -c -o ${pofile%po}mo $pofile || exit $?
+        msgfmt --verbose --use-fuzzy -c -o ${pofile%po}mo $pofile || exit $?
 done < <(find $(dirname $0) -type f -name '*.po')
--- a/ui/locale/update_po.sh
+++ b/ui/locale/update_po.sh
@@ -53,8 +53,9 @@
 	# keyword "_s" is Zabbix frontend placeholder function
 	# keyword "_x" is Zabbix frontend context function
 	# keyword "_xs" is Zabbix frontend context function
 	xgettext --files-from=$potlist \
+		--omit-header \
 		--from-code=UTF-8 \
 		--output=$newpot \
 		--copyright-holder="Zabbix SIA" \
 		--no-wrap --sort-output \