Metadata-Version: 2.4
Name: locale-simple
Version: 0.102
Summary: Translation system based on gettext, same API in Perl, Python and JavaScript
Author-email: Torsten Raudssus <torsten@raudssus.de>
License-Expression: MIT
Project-URL: Homepage, https://github.com/Getty/locale-simple
Project-URL: Repository, https://github.com/Getty/locale-simple
Project-URL: Issues, https://github.com/Getty/locale-simple/issues
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Localization
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# 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
