Andrew Lewman commited on 2011-08-25 18:50:25
Zeige 1 geänderte Dateien mit 30 Einfügungen und 0 Löschungen.
... | ... |
@@ -212,6 +212,36 @@ for file in $po ; do |
212 | 212 |
echo '#include "ar/foot.wmi"' >> "$wmldir/$subdir/$wmlfile" |
213 | 213 |
fi |
214 | 214 |
|
215 |
+ # If the translation is Farsi, include the |
|
216 |
+ # correct header, css, menu files and footer |
|
217 |
+ if [ $subdir = "fa" ] |
|
218 |
+ then |
|
219 |
+ # Head |
|
220 |
+ orig_head=`grep '#include "head.wmi"' "$wmldir/$subdir/$wmlfile"` |
|
221 |
+ temp_head=`echo $orig_head | sed s@head.wmi@fa/head.wmi@` |
|
222 |
+ new_head=`echo $temp_head 'STYLESHEET="css/master-rtl.css"'` |
|
223 |
+ sed -i "s@$orig_head@$new_head@" "$wmldir/$subdir/$wmlfile" |
|
224 |
+ |
|
225 |
+ # Side (not all files include this) |
|
226 |
+ orig_side=`grep '#include "side.wmi"' "$wmldir/$subdir/$wmlfile"` |
|
227 |
+ if [ -n "$orig_side" ] |
|
228 |
+ then |
|
229 |
+ new_side=`echo '#include "fa/side.wmi"'` |
|
230 |
+ sed -i "s@$orig_side@$new_side@" "$wmldir/$subdir/$wmlfile" |
|
231 |
+ fi |
|
232 |
+ |
|
233 |
+ # Info (not all files include this) |
|
234 |
+ orig_info=`grep '#include "info.wmi"' "$wmldir/$subdir/$wmlfile"` |
|
235 |
+ if [ -n "$orig_info" ] |
|
236 |
+ then |
|
237 |
+ new_info=`echo '#include "fa/info.wmi"'` |
|
238 |
+ sed -i "s@$orig_info@$new_info@" "$wmldir/$subdir/$wmlfile" |
|
239 |
+ fi |
|
240 |
+ |
|
241 |
+ # Footer |
|
242 |
+ echo '#include "fa/foot.wmi"' >> "$wmldir/$subdir/$wmlfile" |
|
243 |
+ fi |
|
244 |
+ |
|
215 | 245 |
# If the directory does not include sidenav.wmi, |
216 | 246 |
# copy it from the English directory (only if |
217 | 247 |
# the English directory has this file) |
218 | 248 |