Skip to content

Commit 0055536

Browse files
author
Ilya Portnov
committed
Update cabal file and readme.
1 parent b749127 commit 0055536

File tree

2 files changed

+34
-6
lines changed

2 files changed

+34
-6
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This package has the following advantages comparing to hgettext:
1919
C code;
2020
* It does not depend on additional C libraries in runtime;
2121
* And probably the most important: this library does not use global process-level
22-
variables to store "current catalog", the catalog should be specified for each
23-
call of translation function. So it can be much simpler to use this library for
24-
example in web applications.
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.
2525

haskell-gettext.cabal

+31-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
11
name: haskell-gettext
22
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+
626
license: BSD3
727
license-file: LICENSE
828
author: IlyaPortnov
@@ -12,6 +32,10 @@ category: Text
1232
build-type: Simple
1333
cabal-version: >=1.8
1434

35+
extra-source-files: README.md
36+
examples/gmodump.hs
37+
examples/gmotest.hs
38+
1539
library
1640
exposed-modules: Data.Gettext
1741
build-depends: base > 4 && < 5,
@@ -34,3 +58,7 @@ executable hgettext
3458
old-locale >= 1.0,
3559
filepath >= 1.4
3660

61+
source-repository head
62+
type: git
63+
location: https://github.com/portnov/haskell-gettext.git
64+

0 commit comments

Comments
 (0)