|
1 <?xml version="1.0" encoding="ascii"?> |
|
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
|
3 "DTD/xhtml1-transitional.dtd"> |
|
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
5 <head> |
|
6 <title>localisation.Languages</title> |
|
7 <link rel="stylesheet" href="epydoc.css" type="text/css" /> |
|
8 <script type="text/javascript" src="epydoc.js"></script> |
|
9 </head> |
|
10 |
|
11 <body bgcolor="white" text="black" link="blue" vlink="#204080" |
|
12 alink="#204080"> |
|
13 <!-- ==================== NAVIGATION BAR ==================== --> |
|
14 <table class="navbar" border="0" width="100%" cellpadding="0" |
|
15 bgcolor="#a0c0ff" cellspacing="0"> |
|
16 <tr valign="middle"> |
|
17 |
|
18 <!-- Tree link --> |
|
19 <th> <a |
|
20 href="module-tree.html">Trees</a> </th> |
|
21 |
|
22 <!-- Index link --> |
|
23 <th> <a |
|
24 href="identifier-index.html">Indices</a> </th> |
|
25 |
|
26 <!-- Help link --> |
|
27 <th> <a |
|
28 href="help.html">Help</a> </th> |
|
29 |
|
30 <th class="navbar" width="100%"></th> |
|
31 </tr> |
|
32 </table> |
|
33 <table width="100%" cellpadding="0" cellspacing="0"> |
|
34 <tr valign="top"> |
|
35 <td width="100%"> |
|
36 <span class="breadcrumbs"> |
|
37 <a href="localisation-module.html">Module localisation</a> :: |
|
38 Class Languages |
|
39 </span> |
|
40 </td> |
|
41 <td> |
|
42 <table cellpadding="0" cellspacing="0"> |
|
43 <!-- hide/show private --> |
|
44 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" |
|
45 onclick="toggle_private();">hide private</a>]</span></td></tr> |
|
46 <tr><td align="right"><span class="options" |
|
47 >[<a href="frames.html" target="_top">frames</a |
|
48 >] | <a href="localisation.Languages-class.html" |
|
49 target="_top">no frames</a>]</span></td></tr> |
|
50 </table> |
|
51 </td> |
|
52 </tr> |
|
53 </table> |
|
54 <!-- ==================== CLASS DESCRIPTION ==================== --> |
|
55 <h1 class="epydoc">Class Languages</h1><span class="codelink"><a href="localisation-pysrc.html#Languages">source code</a></span><br /><br /> |
|
56 Languages.xml file parser.<br /><br /> |
|
57 |
|
58 <!-- ==================== INSTANCE METHODS ==================== --> |
|
59 <a name="section-InstanceMethods"></a> |
|
60 <table class="summary" border="1" cellpadding="3" |
|
61 cellspacing="0" width="100%" bgcolor="white"> |
|
62 <tr bgcolor="#70b0f0" class="table-header"> |
|
63 <td colspan="2" class="table-header"> |
|
64 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
65 <tr valign="top"> |
|
66 <td align="left"><span class="table-header">Instance Methods</span></td> |
|
67 <td align="right" valign="top" |
|
68 ><span class="options">[<a href="#section-InstanceMethods" |
|
69 class="privatelink" onclick="toggle_private();" |
|
70 >hide private</a>]</span></td> |
|
71 </tr> |
|
72 </table> |
|
73 </td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td width="15%" align="right" valign="top" class="summary"> |
|
77 <span class="summary-type"> </span> |
|
78 </td><td class="summary"> |
|
79 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
80 <tr> |
|
81 <td><span class="summary-sig"><a name="__init__"></a><span class="summary-sig-name">__init__</span>(<span class="summary-sig-arg">self</span>, |
|
82 <span class="summary-sig-arg">filename</span>)</span></td> |
|
83 <td align="right" valign="top"> |
|
84 <span class="codelink"><a href="localisation-pysrc.html#Languages.__init__">source code</a></span> |
|
85 |
|
86 </td> |
|
87 </tr> |
|
88 </table> |
|
89 |
|
90 </td> |
|
91 </tr> |
|
92 <tr> |
|
93 <td width="15%" align="right" valign="top" class="summary"> |
|
94 <span class="summary-type"> </span> |
|
95 </td><td class="summary"> |
|
96 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
97 <tr> |
|
98 <td><span class="summary-sig"><a name="get_language_ids"></a><span class="summary-sig-name">get_language_ids</span>(<span class="summary-sig-arg">self</span>)</span><br /> |
|
99 returns languages id list</td> |
|
100 <td align="right" valign="top"> |
|
101 <span class="codelink"><a href="localisation-pysrc.html#Languages.get_language_ids">source code</a></span> |
|
102 |
|
103 </td> |
|
104 </tr> |
|
105 </table> |
|
106 |
|
107 </td> |
|
108 </tr> |
|
109 <tr> |
|
110 <td width="15%" align="right" valign="top" class="summary"> |
|
111 <span class="summary-type"> </span> |
|
112 </td><td class="summary"> |
|
113 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
114 <tr> |
|
115 <td><span class="summary-sig"><a name="get_name"></a><span class="summary-sig-name">get_name</span>(<span class="summary-sig-arg">self</span>, |
|
116 <span class="summary-sig-arg">lid</span>)</span><br /> |
|
117 returns languages id list</td> |
|
118 <td align="right" valign="top"> |
|
119 <span class="codelink"><a href="localisation-pysrc.html#Languages.get_name">source code</a></span> |
|
120 |
|
121 </td> |
|
122 </tr> |
|
123 </table> |
|
124 |
|
125 </td> |
|
126 </tr> |
|
127 <tr> |
|
128 <td width="15%" align="right" valign="top" class="summary"> |
|
129 <span class="summary-type"> </span> |
|
130 </td><td class="summary"> |
|
131 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
132 <tr> |
|
133 <td><span class="summary-sig"><a href="localisation.Languages-class.html#get_attribute" class="summary-sig-name">get_attribute</a>(<span class="summary-sig-arg">self</span>, |
|
134 <span class="summary-sig-arg">lid</span>, |
|
135 <span class="summary-sig-arg">name</span>, |
|
136 <span class="summary-sig-arg">default</span>=<span class="summary-sig-default">None</span>)</span><br /> |
|
137 returns the value for a specific language attribute name.</td> |
|
138 <td align="right" valign="top"> |
|
139 <span class="codelink"><a href="localisation-pysrc.html#Languages.get_attribute">source code</a></span> |
|
140 |
|
141 </td> |
|
142 </tr> |
|
143 </table> |
|
144 |
|
145 </td> |
|
146 </tr> |
|
147 <tr> |
|
148 <td width="15%" align="right" valign="top" class="summary"> |
|
149 <span class="summary-type"> </span> |
|
150 </td><td class="summary"> |
|
151 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
152 <tr> |
|
153 <td><span class="summary-sig"><a name="get_fallbacks"></a><span class="summary-sig-name">get_fallbacks</span>(<span class="summary-sig-arg">self</span>, |
|
154 <span class="summary-sig-arg">lid</span>)</span><br /> |
|
155 Return the list of available fallbacks |
|
156 None if not any.</td> |
|
157 <td align="right" valign="top"> |
|
158 <span class="codelink"><a href="localisation-pysrc.html#Languages.get_fallbacks">source code</a></span> |
|
159 |
|
160 </td> |
|
161 </tr> |
|
162 </table> |
|
163 |
|
164 </td> |
|
165 </tr> |
|
166 <tr> |
|
167 <td width="15%" align="right" valign="top" class="summary"> |
|
168 <span class="summary-type"> </span> |
|
169 </td><td class="summary"> |
|
170 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
171 <tr> |
|
172 <td><span class="summary-sig"><a name="find_first_fallback"></a><span class="summary-sig-name">find_first_fallback</span>(<span class="summary-sig-arg">self</span>, |
|
173 <span class="summary-sig-arg">lid</span>, |
|
174 <span class="summary-sig-arg">exists</span>)</span><br /> |
|
175 Find recursively the first reasonable alternative |
|
176 lid the language id |
|
177 exists an existance function that takes a language id |
|
178 as parameter and return a boolean</td> |
|
179 <td align="right" valign="top"> |
|
180 <span class="codelink"><a href="localisation-pysrc.html#Languages.find_first_fallback">source code</a></span> |
|
181 |
|
182 </td> |
|
183 </tr> |
|
184 </table> |
|
185 |
|
186 </td> |
|
187 </tr> |
|
188 </table> |
|
189 <!-- ==================== METHOD DETAILS ==================== --> |
|
190 <a name="section-MethodDetails"></a> |
|
191 <table class="details" border="1" cellpadding="3" |
|
192 cellspacing="0" width="100%" bgcolor="white"> |
|
193 <tr bgcolor="#70b0f0" class="table-header"> |
|
194 <td colspan="2" class="table-header"> |
|
195 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
196 <tr valign="top"> |
|
197 <td align="left"><span class="table-header">Method Details</span></td> |
|
198 <td align="right" valign="top" |
|
199 ><span class="options">[<a href="#section-MethodDetails" |
|
200 class="privatelink" onclick="toggle_private();" |
|
201 >hide private</a>]</span></td> |
|
202 </tr> |
|
203 </table> |
|
204 </td> |
|
205 </tr> |
|
206 </table> |
|
207 <a name="get_attribute"></a> |
|
208 <div> |
|
209 <table class="details" border="1" cellpadding="3" |
|
210 cellspacing="0" width="100%" bgcolor="white"> |
|
211 <tr><td> |
|
212 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
213 <tr valign="top"><td> |
|
214 <h3 class="epydoc"><span class="sig"><span class="sig-name">get_attribute</span>(<span class="sig-arg">self</span>, |
|
215 <span class="sig-arg">lid</span>, |
|
216 <span class="sig-arg">name</span>, |
|
217 <span class="sig-arg">default</span>=<span class="sig-default">None</span>)</span> |
|
218 </h3> |
|
219 </td><td align="right" valign="top" |
|
220 ><span class="codelink"><a href="localisation-pysrc.html#Languages.get_attribute">source code</a></span> |
|
221 </td> |
|
222 </table> |
|
223 |
|
224 returns the value for a specific language attribute name. It returns default if not found. |
|
225 <dl class="fields"> |
|
226 </dl> |
|
227 </td></tr></table> |
|
228 </div> |
|
229 <br /> |
|
230 <!-- ==================== NAVIGATION BAR ==================== --> |
|
231 <table class="navbar" border="0" width="100%" cellpadding="0" |
|
232 bgcolor="#a0c0ff" cellspacing="0"> |
|
233 <tr valign="middle"> |
|
234 |
|
235 <!-- Tree link --> |
|
236 <th> <a |
|
237 href="module-tree.html">Trees</a> </th> |
|
238 |
|
239 <!-- Index link --> |
|
240 <th> <a |
|
241 href="identifier-index.html">Indices</a> </th> |
|
242 |
|
243 <!-- Help link --> |
|
244 <th> <a |
|
245 href="help.html">Help</a> </th> |
|
246 |
|
247 <th class="navbar" width="100%"></th> |
|
248 </tr> |
|
249 </table> |
|
250 <table border="0" cellpadding="0" cellspacing="0" width="100%%"> |
|
251 <tr> |
|
252 <td align="left" class="footer"> |
|
253 Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:19 2009 |
|
254 </td> |
|
255 <td align="right" class="footer"> |
|
256 <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> |
|
257 </td> |
|
258 </tr> |
|
259 </table> |
|
260 |
|
261 <script type="text/javascript"> |
|
262 <!-- |
|
263 // Private objects are initially displayed (because if |
|
264 // javascript is turned off then we want them to be |
|
265 // visible); but by default, we want to hide them. So hide |
|
266 // them unless we have a cookie that says to show them. |
|
267 checkCookie() |
|
268 // --> |
|
269 </script> |
|
270 |
|
271 </body> |
|
272 </html> |