skip to navigation
skip to content

Not Logged In

locale-simple 0.016

Python verrsion of Locale::Simple, Translation system based on gettext storage, same API in Perl and Javascript

Latest Version: 0.019

# Description This is a small wrapper around Gettext functionality that integrates sprintf and makes it a bit more easy to setup the internationalization. It ONLY supports UTF8 data, and in or output, that is a fixed setup (and always will be).

# Usage

Usage of this module is very similar to that of [Locale::Simple]

from locale_simple import *

# Set the locale dir l_dir(‘data/locale’) # Set the default domain ltd(‘test’) # Set the default language l_lang(‘de_DE’)

print l(“Hello”) # Hallo print ln(“You have %d message”,”You have %d messages”,1) # Du hast 1 Nachricht

File Type Py Version Uploaded on Size
locale-simple-0.016.tar.gz (md5) Source 2013-05-13 2KB
  • Downloads (All Versions):
  • 24 downloads in the last day
  • 143 downloads in the last week
  • 515 downloads in the last month