File: gettext.py.in

package info (click to toggle)
xfsprogs 6.18.0-4
  • links: PTS
  • area: main
  • in suites: forky
  • size: 11,304 kB
  • sloc: ansic: 167,330; sh: 4,604; makefile: 1,337; python: 835; cpp: 5
file content (12 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12

if __name__ == '__main__':
	if @HAVE_GETTEXT@:
		import gettext
		# set up gettext before main so that we can set up _().
		gettext.bindtextdomain("@PACKAGE@", "@LOCALEDIR@")
		gettext.textdomain("@PACKAGE@")
		_ = gettext.gettext
	else:
		def _(a):
			return a