engines/adva_cms/vendor/plugins/stringex/lib/lucky_sneaks/string_extensions.rb
# Converts German Umlauts to their transliteration according to German conventions.
Converts German Umlauts to their transliteration according to German conventions.
Converts German Umlauts to their transliteration according to German conventions .
def convert_german_umlauts
      map = {
        "Ä" => "ae",
        "Ö" => "oe",
        "Ü" => "ue",
        "ä" => "ae",
        "ö" => "oe",
        "ü" => "ue",
        "ß" => "ss"
      }
      gsub(/#{map.keys.join('|')}/) { |match| map[match] }
    end
def convert_german_umlauts map = { "Ä"  >  ae", "Ö"  >  oe", "Ü"  >  ue", "ä"  >  ae", "ö"  >  oe", "ü"  >  ue", "ß"  >  ss" } gsub ( / #{ map . keys . join ( '|' ) } / ) { | match | map [ match ] } end
Converts German Umlauts to their transliteration according to German conventions.
Converts German Umlauts to their transliteration according to German conventions .