transmission: upgrade 2.31 to 2.32
[tomato.git] / release / src / router / gettext / gettext-tools / tests / xgettext-glade-3
blob5539f355e780d3254c727cc556b2b6920cfb494c
1 #!/bin/sh
3 # Test of Glade 2 support.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles empty.glade"
9 cat <<EOF > empty.glade
10 <?xml version="1.0"?>
11 <GTK-Interface/>
12 EOF
14 tmpfiles="$tmpfiles xg-gl-3.pot"
15 : ${XGETTEXT=xgettext}
16 ${XGETTEXT} -o xg-gl-3.pot empty.glade 2>/dev/null
17 test $? = 0 || { rm -fr $tmpfiles; exit 77; }
19 tmpfiles="$tmpfiles asciitable.glade2"
20 cat <<EOF > asciitable.glade2
21 <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
22 <!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd" >
24 <glade-interface>
25 <widget class="GtkDialog" id="dialog">
26 <property name="visible">no</property>
27 <property name="title" translatable="yes">gedit: ASCII table</property>
28 <property name="type">GTK_WINDOW_TOPLEVEL</property>
29 <property name="modal">no</property>
30 <property name="allow_shrink">yes</property>
31 <property name="allow_grow">yes</property>
32 <property name="window-position">GTK_WIN_POS_NONE</property>
34 <child internal-child="vbox">
35 <widget class="GtkVBox" id="dialog-vbox1">
36 <property name="homogeneous">no</property>
37 <property name="spacing">8</property>
38 <property name="visible">yes</property>
40 <child internal-child="action_area">
41 <widget class="GtkHButtonBox" id="dialog-action_area1">
42 <property name="layout_style">GTK_BUTTONBOX_END</property>
43 <property name="spacing">8</property>
44 <property name="visible">yes</property>
46 <child>
47 <widget class="GtkButton" id="insert_char_button">
48 <property name="can_default">yes</property>
49 <property name="can_focus">yes</property>
50 <property name="label" translatable="yes">Insert char</property>
51 <property name="visible">yes</property>
52 </widget>
53 </child>
55 <child>
56 <widget class="GtkButton" id="close_button">
57 <property name="can_default">yes</property>
58 <property name="can_focus">yes</property>
59 <property name="visible">yes</property>
60 <property name="label">gtk-close</property>
61 <property name="use_stock">yes</property>
62 <property name="use_underline">yes</property>
63 </widget>
64 </child>
66 <child>
67 <widget class="GtkButton" id="help_button">
68 <property name="can_default">yes</property>
69 <property name="can_focus">yes</property>
70 <property name="visible">yes</property>
71 <property name="label">gtk-help</property>
72 <property name="use_stock">yes</property>
73 <property name="use_underline">yes</property>
74 </widget>
75 </child>
76 </widget>
77 <packing>
78 <property name="padding">0</property>
79 <property name="expand">no</property>
80 <property name="fill">yes</property>
81 <property name="pack_type">GTK_PACK_END</property>
82 </packing>
83 </child>
85 <child>
86 <widget class="GtkVBox" id="asciitable_dialog_content">
87 <property name="border_width">6</property>
88 <property name="homogeneous">no</property>
89 <property name="spacing">8</property>
90 <property name="visible">yes</property>
92 <child>
93 <widget class="GtkLabel" id="label1">
94 <property name="label" translatable="yes">If you wish to insert any of the characters in to the active
95 document, select the character and click the &quot;Insert Char&quot;
96 button or double click the character in the table.</property>
97 <property name="justify">GTK_JUSTIFY_LEFT</property>
98 <property name="wrap">no</property>
99 <property name="xalign">0.0</property>
100 <property name="yalign">0.5</property>
101 <property name="xpad">0</property>
102 <property name="ypad">0</property>
103 <property name="visible">yes</property>
104 </widget>
105 <packing>
106 <property name="padding">0</property>
107 <property name="expand">no</property>
108 <property name="fill">no</property>
109 </packing>
110 </child>
112 <child>
113 <widget class="GtkScrolledWindow" id="scrolledwindow1">
114 <property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
115 <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
116 <property name="shadow_type">GTK_SHADOW_IN</property>
117 <property name="height-request">350</property>
118 <property name="visible">yes</property>
120 <child>
121 <widget class="GtkTreeView" id="ascii_table">
122 <property name="can_focus">yes</property>
123 <property name="headers-visible">yes</property>
124 <property name="visible">yes</property>
125 </widget>
126 </child>
128 <child internal-child="hscrollbar">
129 <widget class="GtkHScrollbar" id="convertwidget1">
130 <property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
131 <property name="visible">yes</property>
132 </widget>
133 </child>
135 <child internal-child="vscrollbar">
136 <widget class="GtkVScrollbar" id="convertwidget2">
137 <property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
138 <property name="visible">yes</property>
139 </widget>
140 </child>
141 </widget>
142 <packing>
143 <property name="padding">0</property>
144 <property name="expand">yes</property>
145 <property name="fill">yes</property>
146 </packing>
147 </child>
148 </widget>
149 <packing>
150 <property name="padding">0</property>
151 <property name="expand">yes</property>
152 <property name="fill">yes</property>
153 </packing>
154 </child>
155 </widget>
156 <packing>
157 <property name="padding">4</property>
158 <property name="expand">yes</property>
159 <property name="fill">yes</property>
160 </packing>
161 </child>
162 </widget>
163 </glade-interface>
166 tmpfiles="$tmpfiles xg-gl-3.tmp xg-gl-3.pot"
167 : ${XGETTEXT=xgettext}
168 ${XGETTEXT} -o xg-gl-3.tmp asciitable.glade2
169 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
170 grep -v 'POT-Creation-Date' < xg-gl-3.tmp > xg-gl-3.pot
172 tmpfiles="$tmpfiles xg-gl-3.ok"
173 cat <<\EOF > xg-gl-3.ok
174 # SOME DESCRIPTIVE TITLE.
175 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
176 # This file is distributed under the same license as the PACKAGE package.
177 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
179 #, fuzzy
180 msgid ""
181 msgstr ""
182 "Project-Id-Version: PACKAGE VERSION\n"
183 "Report-Msgid-Bugs-To: \n"
184 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
185 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
186 "Language-Team: LANGUAGE <LL@li.org>\n"
187 "MIME-Version: 1.0\n"
188 "Content-Type: text/plain; charset=CHARSET\n"
189 "Content-Transfer-Encoding: 8bit\n"
191 #: asciitable.glade2:7
192 msgid "gedit: ASCII table"
193 msgstr ""
195 #: asciitable.glade2:30
196 msgid "Insert char"
197 msgstr ""
199 #: asciitable.glade2:74
200 msgid ""
201 "If you wish to insert any of the characters in to the active \n"
202 "document, select the character and click the \"Insert Char\" \n"
203 "button or double click the character in the table."
204 msgstr ""
207 : ${DIFF=diff}
208 ${DIFF} xg-gl-3.ok xg-gl-3.pot
209 result=$?
211 rm -fr $tmpfiles
213 exit $result