diff --git a/miku/plugins/shell.lua b/miku/plugins/shell.lua index 0371977..08e7308 100644 --- a/miku/plugins/shell.lua +++ b/miku/plugins/shell.lua @@ -12,6 +12,14 @@ function shell:init(config) end function shell:transeng(ger) + local ger = string.gsub(ger, "Monday", "Montag") + local ger = string.gsub(ger, "Tuesday", "Dienstag") + local ger = string.gsub(ger, "Wednesday", "Mittwoch") + local ger = string.gsub(ger, "Thursday", "Donnerstag") + local ger = string.gsub(ger, "Friday", "Freitag") + local ger = string.gsub(ger, "Saturday", "Samstag") + local ger = string.gsub(ger, "Sunday", "Sonntag") + local ger = string.gsub(ger, 'week,', 'Woche,') local ger = string.gsub(ger, 'weeks,', 'Wochen,') local ger = string.gsub(ger, 'day,', 'Tag,') @@ -20,13 +28,6 @@ function shell:transeng(ger) local ger = string.gsub(ger, 'hours,', 'Stunden und') local ger = string.gsub(ger, 'minute$', 'Minute.') local ger = string.gsub(ger, 'minutes', 'Minuten.') - local ger = string.gsub(ger, "Monday", "Montag") - local ger = string.gsub(ger, "Tuesday", "Dienstag") - local ger = string.gsub(ger, "Wednesday", "Mittwoch") - local ger = string.gsub(ger, "Thursday", "Donnerstag") - local ger = string.gsub(ger, "Friday", "Freitag") - local ger = string.gsub(ger, "Saturday", "Samstag") - local ger = string.gsub(ger, "Sunday", "Sonntag") return ger end