shell.lua: Übersetzte Monate
This commit is contained in:
parent
5f4e9fc3bd
commit
9fa5d55858
@ -363,7 +363,7 @@ function rss:cron()
|
|||||||
else
|
else
|
||||||
content = ''
|
content = ''
|
||||||
end
|
end
|
||||||
text = text..'\n<b>[</b>#RSS<b>] '..title..'</b>\n<i>~ '..feed_title..' ~</i>\n'..utilities.trim(content)..'\n<a href="'..link..'">Auf '..link_name..' ansehen.</a>\n'
|
text = text..'\n<b>[</b>#RSS<b>] '..title..'</b>\n<i>'..feed_title..'</i>\n'..utilities.trim(content)..'\n<a href="'..link..'">Auf '..link_name..' ansehen.</a>\n'
|
||||||
end
|
end
|
||||||
if text ~= '' then
|
if text ~= '' then
|
||||||
local newlast = newentr[1].id
|
local newlast = newentr[1].id
|
||||||
|
@ -12,6 +12,7 @@ function shell:init(config)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function shell:transeng(ger)
|
function shell:transeng(ger)
|
||||||
|
--Days
|
||||||
local ger = string.gsub(ger, "Monday", "Montag")
|
local ger = string.gsub(ger, "Monday", "Montag")
|
||||||
local ger = string.gsub(ger, "Tuesday", "Dienstag")
|
local ger = string.gsub(ger, "Tuesday", "Dienstag")
|
||||||
local ger = string.gsub(ger, "Wednesday", "Mittwoch")
|
local ger = string.gsub(ger, "Wednesday", "Mittwoch")
|
||||||
@ -20,6 +21,7 @@ function shell:transeng(ger)
|
|||||||
local ger = string.gsub(ger, "Saturday", "Samstag")
|
local ger = string.gsub(ger, "Saturday", "Samstag")
|
||||||
local ger = string.gsub(ger, "Sunday", "Sonntag")
|
local ger = string.gsub(ger, "Sunday", "Sonntag")
|
||||||
|
|
||||||
|
--Weeks
|
||||||
local ger = string.gsub(ger, 'week,', 'Woche,')
|
local ger = string.gsub(ger, 'week,', 'Woche,')
|
||||||
local ger = string.gsub(ger, 'weeks,', 'Wochen,')
|
local ger = string.gsub(ger, 'weeks,', 'Wochen,')
|
||||||
local ger = string.gsub(ger, 'day,', 'Tag,')
|
local ger = string.gsub(ger, 'day,', 'Tag,')
|
||||||
@ -28,6 +30,20 @@ function shell:transeng(ger)
|
|||||||
local ger = string.gsub(ger, 'hours,', 'Stunden und')
|
local ger = string.gsub(ger, 'hours,', 'Stunden und')
|
||||||
local ger = string.gsub(ger, 'minute$', 'Minute.')
|
local ger = string.gsub(ger, 'minute$', 'Minute.')
|
||||||
local ger = string.gsub(ger, 'minutes', 'Minuten.')
|
local ger = string.gsub(ger, 'minutes', 'Minuten.')
|
||||||
|
|
||||||
|
--Months
|
||||||
|
local ger = string.gsub(ger, "January", "Januar")
|
||||||
|
local ger = string.gsub(ger, "February", "Februar")
|
||||||
|
local ger = string.gsub(ger, "March", "März")
|
||||||
|
local ger = string.gsub(ger, "April", "April")
|
||||||
|
local ger = string.gsub(ger, "May", "Mai")
|
||||||
|
local ger = string.gsub(ger, "June", "Juni")
|
||||||
|
local ger = string.gsub(ger, "July", "Juli")
|
||||||
|
local ger = string.gsub(ger, "August", "August")
|
||||||
|
local ger = string.gsub(ger, "September", "September")
|
||||||
|
local ger = string.gsub(ger, "October", "Oktober")
|
||||||
|
local ger = string.gsub(ger, "November", "November")
|
||||||
|
local ger = string.gsub(ger, "December", "Dezember")
|
||||||
return ger
|
return ger
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user