1
1
name : haskell-gettext
2
2
version : 0.1.0.0
3
- synopsis : GNU Gettext mo/gmo files format support in pure Haskell
4
- description : This package provides loader for GNU Gettext .mo (.gmo) files, and API to use
5
- them from within Haskell.
3
+ synopsis : GetText runtime library implementation in pure Haskell
4
+ description : This package is pure Haskell implementation of GetText library runtime.
5
+ It allows you to :
6
+ .
7
+ * Load GNU Gettext binary catalog files (`.mo`, `.gmo`).
8
+ * Execute lookups for messages in catalog (gettext and ngettext functions).
9
+ .
10
+ Support for plural form selection expressions is fully implemented.
11
+ .
12
+ This package is however relatively low-level and may be not very nice to
13
+ use in applications. So it can be used as a backend for some more user-friendly
14
+ \"translation framework\".
15
+ .
16
+ This package has the following advantages comparing to hgettext :
17
+ .
18
+ * It is easier to build it on different platforms, since it has no dependency on
19
+ C code;
20
+ * It does not depend on additional C libraries in runtime;
21
+ * And probably the most important : this library does not use global process-level
22
+ variables to store "current catalog" (current locale), the catalog should be
23
+ specified for each call of translation function. So it can be much simpler to
24
+ use this library for example in web applications.
25
+
6
26
license : BSD3
7
27
license-file : LICENSE
8
28
author : IlyaPortnov
@@ -12,6 +32,10 @@ category: Text
12
32
build-type : Simple
13
33
cabal-version : >= 1.8
14
34
35
+ extra-source-files : README.md
36
+ examples/gmodump.hs
37
+ examples/gmotest.hs
38
+
15
39
library
16
40
exposed-modules : Data.Gettext
17
41
build-depends : base > 4 && < 5 ,
@@ -34,3 +58,7 @@ executable hgettext
34
58
old-locale >= 1.0 ,
35
59
filepath >= 1.4
36
60
61
+ source-repository head
62
+ type : git
63
+ location : https://github.com/portnov/haskell-gettext.git
64
+
0 commit comments