diff options
author | Teddy Wing | 2017-08-19 02:10:38 +0200 |
---|---|---|
committer | Teddy Wing | 2017-08-19 02:10:38 +0200 |
commit | 6cd279630923cdcd053e373b56b8bc0ad85a9b08 (patch) | |
tree | 17efcc7e58d763608a0e7ba19ed75e170d328bdd /src/Plugin/GitHubCommit.hs | |
parent | 3857fca015a802d09a4e169c56895831fef11db8 (diff) | |
download | sorbot-6cd279630923cdcd053e373b56b8bc0ad85a9b08.tar.bz2 |
Set up i18n
en.msg:
* Remove comment lines because apparently comments aren't allowed by the
parser
* Change data type to `T.Text` to match the import from the `I18n`
module
GitHubCommit.hs:
Import the `I18n` module because we'll be testing it in context in a
bit, but for now just want to get the module code to compile.
I18n.hs:
Follow the example on http://www.yesodweb.com/book/internationalization
to make a function for proper internationalisation.
Diffstat (limited to 'src/Plugin/GitHubCommit.hs')
-rw-r--r-- | src/Plugin/GitHubCommit.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Plugin/GitHubCommit.hs b/src/Plugin/GitHubCommit.hs index 187f016..a857604 100644 --- a/src/Plugin/GitHubCommit.hs +++ b/src/Plugin/GitHubCommit.hs @@ -10,6 +10,7 @@ import Database.SQLite.Simple import Database.SQLite.Simple.FromRow import Text.Regex.TDFA +import I18n import qualified Message as M import Plugin.Base |