Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /nuitka/eggshell.build/ |
Upload File : |
��
�Locale�.�� �get_closest�.��� X� Returns the closest match for the given locale codes.
We iterate over all given locale codes in order. If we have a tight
or a loose match for the code (e.g., "en" for "en_US"), we return
the locale. Otherwise we move to the next code in the list.
By default we return ``en_US`` if no translations are found for any of
the specified locales. You can change the default locale with
`set_default_locale()`.
�.�� �_default_locale�.�� �
_translations�.�� �keys�.�� �_supported_locales�.��> X7 Sets the default locale.
The default locale is assumed to be the language used for all strings
in the system. The translations loaded from disk are mappings from
the default locale to the destination locale. Consequently, you don't
need to create a translation file for the default locale.
�.�� �os�.�� �listdir�.�� �endswith�.��
�.csv���.�� �split�.�� �.���.��* �&too many values to unpack (expected 2)�.�� �re�.�� �match�.�� �[a-z]+(_[A-Z]+)?$�.�� �gen_log�.�� �error�.��% �!Unrecognized locale %r (path: %s)�.�� �path�.�� �join�.��
� directory�.�� �encoding�.�� �rb�.��
� __enter__�.�� �__exit__�.�� �read�.��
�codecs�.�� �BOM_UTF16_LE�.�� NNN��.�� �data�.�� �BOM_UTF16_BE�.��
�utf-16�.��
� utf-8-sig�.�� �csv�.��
�reader�.�� �row�.��
�escape�.�� �
to_unicode�.�� �strip�.�� �builtins��slice���NKN��R�.�K.�� �unknown�.��! �plural��singular��unknown���.��2 �.Unrecognized plural indicator %r in %s line %d�.�K.�� �
setdefault�.�� �debug�.�� �Supported locales: %s�.��
�sorted�.��~ Xw Loads translations from CSV files in a directory.
Translations are strings with optional Python-style named placeholders
(e.g., ``My name is %(name)s``) and their associated translations.
The directory should have translation files of the form ``LOCALE.csv``,
e.g. ``es_GT.csv``. The CSV files should have two or three columns: string,
translation, and an optional plural indicator. Plural indicators should
be one of "plural" or "singular". A given string can have both singular
and plural forms. For example ``%(name)s liked this`` may have a
different verb conjugation depending on whether %(name)s is one
name or a list of names. There should be two rows in the CSV file for
that string, one with plural indicator "singular", and one "plural".
For strings with no verbs that would change on translation, simply
use "unknown" or the empty string (or don't include the column at all).
The file is read using the `csv` module in the default "excel" dialect.
In this format there should not be spaces after the commas.
If no ``encoding`` parameter is given, the encoding will be
detected automatically (among UTF-8 and UTF-16) if the file
contains a byte-order marker (BOM), defaulting to UTF-8 if no BOM
is present.
Example translation ``es_LA.csv``::
"I love you","Te amo"
"%(name)s liked this","A %(name)s les gustó esto","plural"
"%(name)s liked this","A %(name)s le gustó esto","singular"
.. versionchanged:: 4.3
Added ``encoding`` parameter. Added support for BOM-based encoding
detection, UTF-16, and UTF-8-with-BOM.
�.�� �glob�.�� �*�.�� �LC_MESSAGES�.�� �.mo�.�� �basename�.�� �dirname�.�� �gettext�.�� �translation�.��
�domain�.�� � languages���.��( �$Cannot load translation for '%s': %s�.�� �_use_gettext�.��# X Loads translations from `gettext`'s locale tree
Locale tree is similar to system's ``/usr/share/locale``, like::
{directory}/{lang}/LC_MESSAGES/{domain}.mo
Three steps are required to have your app translated:
1. Generate POT translation file::
xgettext --language=Python --keyword=_:1,2 -d mydomain file1.py file2.html etc
2. Merge against existing POT file::
msgmerge old.po mydomain.po > new.po
3. Compile::
msgfmt mydomain.po -o {directory}/pt_BR/LC_MESSAGES/mydomain.mo
�.��5 �1Returns a list of all the supported locale codes.�.�� �replace�.�� �-��_���.�� hM��.�K .�� �lower�.�hM.�� �upper�.�� �code�.�� �get�.��8 �4Returns the closest match for the given locale code.�.��
�_cache�.��
� CSVLocale�.�� �
GettextLocale�.��r �nReturns the Locale for the given locale code.
If it is not supported, we raise an exception.
�.�� �LOCALE_NAMES�.�� �name��Unknown���.�� �name�.�� �rtl�.�� �fa��ar��he���.�� �self�.�� �
startswith�.��
� translate�.��
�January���.�� �February���.�� �March���.�� �April���.�� �May���.��
�June���.��
�July���.�� �August���.�� � September���.��
�October���.�� �November���.�� �December���.�� �_months�.�� �Monday���.��
�Tuesday���.�� � Wednesday���.�� �Thursday���.�� �Friday���.�� �Saturday���.�� �Sunday���.��
� _weekdays�.��- X& Returns the translation for the given message for this locale.
If ``plural_message`` is given, you must also provide
``count``. We return ``plural_message`` when ``count != 1``,
and we return the singular form for the given message when
``count == 1``.
�.�� h,�int���h,�float�����.�� �datetime�.�� �utcfromtimestamp�.��
�utcnow�.�� �seconds�.�K<.�� �now�.�� �date�.��
� timedelta�.��
�minutes���.�� K��.�� �hours���.�� �days�.�K2.�� �1 second ago�.�� �%(seconds)d seconds ago�.�� M�.�� �round�.��
G@N .�� �1 minute ago�.�� �%(minutes)d minutes ago�.�� �minutes�.��
G@� .�� �
1 hour ago�.�� �%(hours)d hours ago�.�� �hours�.�� �%(time)s���.�� �day�.�� � yesterday���.�� �yesterday at %(time)s���.�K.�� �%(weekday)s���.�� �%(weekday)s at %(time)s���.�� MN.�� �%(month_name)s %(day)s���.��( �"%(month_name)s %(day)s at %(time)s���.��&