Runa A. Sandvik commited on 2011-04-11 16:50:21
Zeige 1 geänderte Dateien mit 59 Einfügungen und 2 Löschungen.
| ... | ... |
@@ -119,7 +119,7 @@ for file in $po ; do |
| 119 | 119 |
|
| 120 | 120 |
# Include the English footer for most of the |
| 121 | 121 |
# translations |
| 122 |
- if [[ $subdir != "ar" && $subdir != "pl" ]] |
|
| 122 |
+ if [[ $subdir != "ar" && $subdir != "pl" && $subdir != "de" ]] |
|
| 123 | 123 |
then |
| 124 | 124 |
echo '#include "foot.wmi"' >> "$wmldir/$subdir/$wmlfile" |
| 125 | 125 |
fi |
| ... | ... |
@@ -153,6 +153,35 @@ for file in $po ; do |
| 153 | 153 |
echo '#include "pl/foot.wmi"' >> "$wmldir/$subdir/$wmlfile" |
| 154 | 154 |
fi |
| 155 | 155 |
|
| 156 |
+ # If the translation is German, include the |
|
| 157 |
+ # correct header, menu files and footer |
|
| 158 |
+ if [ $subdir = "de" ] |
|
| 159 |
+ then |
|
| 160 |
+ # Head |
|
| 161 |
+ orig_head=`grep '#include "head.wmi"' "$wmldir/$subdir/$wmlfile"` |
|
| 162 |
+ new_head=`echo $orig_head | sed s@head.wmi@de/head.wmi@` |
|
| 163 |
+ sed -i "s@$orig_head@$new_head@" "$wmldir/$subdir/$wmlfile" |
|
| 164 |
+ |
|
| 165 |
+ # Side (not all files include this) |
|
| 166 |
+ orig_side=`grep '#include "side.wmi"' "$wmldir/$subdir/$wmlfile"` |
|
| 167 |
+ if [ -n "$orig_side" ] |
|
| 168 |
+ then |
|
| 169 |
+ new_side=`echo '#include "de/side.wmi"'` |
|
| 170 |
+ sed -i "s@$orig_side@$new_side@" "$wmldir/$subdir/$wmlfile" |
|
| 171 |
+ fi |
|
| 172 |
+ |
|
| 173 |
+ # Info (not all files include this) |
|
| 174 |
+ orig_info=`grep '#include "info.wmi"' "$wmldir/$subdir/$wmlfile"` |
|
| 175 |
+ if [ -n "$orig_info" ] |
|
| 176 |
+ then |
|
| 177 |
+ new_info=`echo '#include "de/info.wmi"'` |
|
| 178 |
+ sed -i "s@$orig_info@$new_info@" "$wmldir/$subdir/$wmlfile" |
|
| 179 |
+ fi |
|
| 180 |
+ |
|
| 181 |
+ # Footer |
|
| 182 |
+ echo '#include "de/foot.wmi"' >> "$wmldir/$subdir/$wmlfile" |
|
| 183 |
+ fi |
|
| 184 |
+ |
|
| 156 | 185 |
# If the translation is Arabic, include the |
| 157 | 186 |
# correct header, css, menu files and footer |
| 158 | 187 |
if [ $subdir = "ar" ] |
| ... | ... |
@@ -217,7 +246,7 @@ for file in $po ; do |
| 217 | 246 |
|
| 218 | 247 |
# Include the English footer for most of the |
| 219 | 248 |
# translations |
| 220 |
- if [[ $lang != "ar" && $lang != "pl" ]] |
|
| 249 |
+ if [[ $lang != "ar" && $lang != "pl" && $subdir != "de" ]] |
|
| 221 | 250 |
then |
| 222 | 251 |
echo '#include "foot.wmi"' >> "$wmldir/$subdir/$lang/$wmlfile" |
| 223 | 252 |
fi |
| ... | ... |
@@ -250,6 +279,34 @@ for file in $po ; do |
| 250 | 279 |
echo '#include "pl/foot.wmi"' >> "$wmldir/$subdir/$lang/$wmlfile" |
| 251 | 280 |
fi |
| 252 | 281 |
|
| 282 |
+ # If the translation is German, include the |
|
| 283 |
+ # correct header, menu files and footer |
|
| 284 |
+ if [ $lang = "de" ] |
|
| 285 |
+ then |
|
| 286 |
+ orig_head=`grep '#include "head.wmi"' "$wmldir/$subdir/$lang/$wmlfile"` |
|
| 287 |
+ new_head=`echo $orig_head | sed s@head.wmi@de/head.wmi@` |
|
| 288 |
+ sed -i "s@$orig_head@$new_head@" "$wmldir/$subdir/$lang/$wmlfile" |
|
| 289 |
+ |
|
| 290 |
+ # Side (not all files include this) |
|
| 291 |
+ orig_side=`grep '#include "side.wmi"' "$wmldir/$subdir/$lang/$wmlfile"` |
|
| 292 |
+ if [ -n "$orig_side" ] |
|
| 293 |
+ then |
|
| 294 |
+ new_side=`echo '#include "de/side.wmi"'` |
|
| 295 |
+ sed -i "s@$orig_side@$new_side@" "$wmldir/$subdir/$lang/$wmlfile" |
|
| 296 |
+ fi |
|
| 297 |
+ |
|
| 298 |
+ # Info (not all files include this) |
|
| 299 |
+ orig_info=`grep '#include "info.wmi"' "$wmldir/$subdir/$lang/$wmlfile"` |
|
| 300 |
+ if [ -n "$orig_info" ] |
|
| 301 |
+ then |
|
| 302 |
+ new_info=`echo '#include "de/info.wmi"'` |
|
| 303 |
+ sed -i "s@$orig_info@$new_info@" "$wmldir/$subdir/$lang/$wmlfile" |
|
| 304 |
+ fi |
|
| 305 |
+ |
|
| 306 |
+ # Footer |
|
| 307 |
+ echo '#include "de/foot.wmi"' >> "$wmldir/$subdir/$lang/$wmlfile" |
|
| 308 |
+ fi |
|
| 309 |
+ |
|
| 253 | 310 |
# If the file is an Arabic translation, include the |
| 254 | 311 |
# correct header, css, menu files and footer |
| 255 | 312 |
if [ $lang = "ar" ] |
| 256 | 313 |