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