| @@ 291-300 (lines=10) @@ | ||
| 288 | $output = ''; |
|
| 289 | foreach (self::getAvailableLanguages() as $key => $value) { |
|
| 290 | if ($onlyThisLang) { |
|
| 291 | if (strtolower($key) == $lang) { |
|
| 292 | if ($fileLanguageValue) { |
|
| 293 | $output .= "\t<option value=\"language_".strtolower($lang).'.php"'; |
|
| 294 | } else { |
|
| 295 | $output .= "\t<option value=\"".strtolower($lang).'"'; |
|
| 296 | } |
|
| 297 | $output .= ' selected="selected"'; |
|
| 298 | $output .= '>'.$value."</option>\n"; |
|
| 299 | break; |
|
| 300 | } |
|
| 301 | } else { |
|
| 302 | if ($fileLanguageValue) { |
|
| 303 | $output .= "\t<option value=\"language_".strtolower($key).'.php"'; |
|
| @@ 301-311 (lines=11) @@ | ||
| 298 | $output .= '>'.$value."</option>\n"; |
|
| 299 | break; |
|
| 300 | } |
|
| 301 | } else { |
|
| 302 | if ($fileLanguageValue) { |
|
| 303 | $output .= "\t<option value=\"language_".strtolower($key).'.php"'; |
|
| 304 | } else { |
|
| 305 | $output .= "\t<option value=\"".strtolower($key).'"'; |
|
| 306 | } |
|
| 307 | if (strtolower($key) == $lang) { |
|
| 308 | $output .= ' selected="selected"'; |
|
| 309 | } |
|
| 310 | $output .= '>'.$value."</option>\n"; |
|
| 311 | } |
|
| 312 | } |
|
| 313 | ||
| 314 | return $output; |
|