* blog is now running off acid-state (this thing is *fast*)

This commit is contained in:
Vincent Ambo 2012-03-13 05:31:13 +01:00
parent 1c4db3b576
commit 6092eb6f5e
5 changed files with 286 additions and 261 deletions

View file

@ -6,18 +6,13 @@ import Data.Data (Data, Typeable)
import Data.Text (Text)
import qualified Data.Text as T
import BlogDB (BlogLang (..))
{- to add a language simply define its abbreviation and Show instance then
- translate the appropriate strings and add CouchDB views in Server.hs -}
data BlogLang = EN | DE deriving (Data, Typeable)
instance Show BlogLang where
show EN = "en"
show DE = "de"
data BlogError = NotFound | DBError
version = "2.2b"
allLang = [EN, DE]
@ -77,6 +72,10 @@ nextText :: BlogLang -> Text
nextText DE = "Später"
nextText EN = "Later"
readMore :: BlogLang -> Text
readMore DE = "[Weiterlesen]"
readMore EN = "[Read more]"
-- contact information
contactText :: BlogLang -> Text
contactText DE = "Wer mich kontaktieren will: "