Skip to main content

Translation system based on gettext, same API in Perl, Python 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:

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.

Source Distribution

locale_simple-0.101.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

locale_simple-0.101-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file locale_simple-0.101.tar.gz.

File metadata

  • Download URL: locale_simple-0.101.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for locale_simple-0.101.tar.gz
Algorithm Hash digest
SHA256 55d5198d834f6e744d78864979de48390adc1212d3bb754cda737fd3129ec64e
MD5 1d0e31e964c274a0cd02eda70c7d4891
BLAKE2b-256 c84960cb7908016d7c46a42a3ead1c1b2992361ac0db29830232dbffb6203eeb

See more details on using hashes here.

File details

Details for the file locale_simple-0.101-py3-none-any.whl.

File metadata

  • Download URL: locale_simple-0.101-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for locale_simple-0.101-py3-none-any.whl
Algorithm Hash digest
SHA256 285980c4a23c5c19a00896aeebb41662b5a34ef829c5f941c63859255e4c94fb
MD5 087f494b0f4427a5ca8f2ae7e4cbed96
BLAKE2b-256 4c5539b14d4f90d1d53039e9ffc31671768b89917410be979acab46cf8e6d459

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page