Skip to main content

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

Project description

# 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](https://metacpan.org/module/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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for locale-simple, version 0.019
Filename, size File type Python version Upload date Hashes
Filename, size locale-simple-0.019.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page