From e26c860dba1c649314265b4d9c276322a9a433fc Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Mon, 22 Aug 2016 22:19:43 +0200 Subject: [PATCH] Reihenfolge --- miku/plugins/shell.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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