]> git.ipfire.org Git - people/stevee/pakfire.git/blame - pakfire/i18n.py
Initial import.
[people/stevee/pakfire.git] / pakfire / i18n.py
CommitLineData
47a4cb89
MT
1#!/usr/bin/python
2
3"""
4 The translation process of all strings is done in here.
5"""
6
7import gettext
8
9"""
10 A function that returnes the same string.
11"""
12N_ = lambda x: x
13
14
15"""
16 A function that returnes the translation of a string if available.
17
18 The language is taken from the system environment.
19"""
20# Enable this to have translation in the development environment.
21# gettext.bindtextdomain("pakfire", "build/mo")
22
23_ = lambda x: gettext.ldgettext("pakfire", x)
24