aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dudle.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/dudle.rb b/dudle.rb
index aac7940..7cf1dc0 100644
--- a/dudle.rb
+++ b/dudle.rb
@@ -219,9 +219,11 @@ READY
["sv", "Svenska"]
]
lang.each{|short,long|
- @html << "<a href='?lang=#{short}'>" unless short == GetText.locale.language
- @html << long
- @html << "</a>" unless short == GetText.locale.language
+ if short == GetText.locale.language
+ @html << long
+ else
+ @html << "<a href='?lang=#{short}'>#{long}</a>"
+ end
}
@html << "</div>" # languageChooser