* blog is now running off acid-state (this thing is *fast*)
This commit is contained in:
parent
1c4db3b576
commit
6092eb6f5e
5 changed files with 286 additions and 261 deletions
|
|
@ -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: "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue