summaryrefslogtreecommitdiffstats
path: root/po/create_placeholder
blob: 683b1623c5ac62f0054491e1011616719cb88813 (plain)
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
29
30
#!/bin/sh

echo -e "\
/* this is a placeholder so that xgettext can find the translatable
 * strings. This file is automatically generated, look at
 * ./create_placeholder
 */
char *foobar[] = {
/* This is a list of chars acceptable as a 'yes' answer to a Yes/No question;
   you can put here the letters for 'yes' for your language, so people 
   can hit those keys in their keyboard to reply.
   please keep the 'Yy' for compatibility reasons
 */
	N_(\"Yy\"),
/* This is a list of chars acceptable as a 'no' answer to a Yes/No question;
   you can put here the letters for 'no' for your language, so people 
   can hit those keys in their keyboard to reply.
   please keep the 'Nn' for compatibility reasons
 */
	N_(\"Nn\"), " > placeholder.h.$$
cat ../urpmf | perl -ne 's/.*\$ECHO\s+(".*").*/N_($1),/g and print' >> placeholder.h.$$

echo "};" >> placeholder.h.$$

# diff returns true if files are equal
if ! diff placeholder.h.$$ placeholder.h > /dev/null 2> /dev/null
then
	cat placeholder.h.$$ > placeholder.h
fi
rm -f placeholder.h.$$
ption>space:mode:
authorPablo Saratxaga <pablo@mandriva.com>2004-03-19 22:12:54 +0000
committerPablo Saratxaga <pablo@mandriva.com>2004-03-19 22:12:54 +0000
commitcb1c6867efddd4d9a2509da88d01fac77f61c25d (patch)
tree2f63c1f30a9b9fe65a98ac42762e4d59cbf8c4d7 /perl-install/share/po
parentaf2e4f62f0833dd502c939414658360379ff7e55 (diff)
downloaddrakx-cb1c6867efddd4d9a2509da88d01fac77f61c25d.tar
drakx-cb1c6867efddd4d9a2509da88d01fac77f61c25d.tar.gz
drakx-cb1c6867efddd4d9a2509da88d01fac77f61c25d.tar.bz2
drakx-cb1c6867efddd4d9a2509da88d01fac77f61c25d.tar.xz
drakx-cb1c6867efddd4d9a2509da88d01fac77f61c25d.zip
updated po files
Diffstat (limited to 'perl-install/share/po')