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.104.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.104-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: locale_simple-0.104.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.104.tar.gz
Algorithm Hash digest
SHA256 63b12b3b2d45d4219bee744d1a815ac84576b81f8a7f6fcc96b68a28b0d71581
MD5 8df48e669cd21ceed4d45b1769bd08f9
BLAKE2b-256 0d46fb43f0f446507076e81eed9c99de0b8dfadbb36dfeb4d288957b80591aad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: locale_simple-0.104-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.104-py3-none-any.whl
Algorithm Hash digest
SHA256 f68fb5e49326bb239f02eb183f1f29ec9365e1d58b66b0d9b79f3004301f56f5
MD5 ce8da8fb1c0b0f5413d095277b20b5ea
BLAKE2b-256 4d5acb3f93913cd3ee56c105832635ed6074d534834df83d748e0e86b6bb869b

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