| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Change-Id: I6a661282d6e9381861ff0cf4ba564f76e4812d4a
Closes-bug: #1367761
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I806bef9ccffcf914e802b903390c93799aa4d47f
|
|/
|
|
| |
Change-Id: I0b2152153a2ea35193140c999dcf061051484861
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Add documentation for how to add import exceptions so hacking does not
complain about the way the library is used.
Change-Id: Ic33307215abbc38d3d3d2435588f79dc115510fd
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| | |
The Message class is not part of the public API of the library, so don't
refer to it in documentation that appears for the public API.
Change-Id: Ie28ce6f8f2c2de351c8a233b7de9dc31abaa9e04
|
| |
| |
| |
| | |
Change-Id: I3a8fb8ea66627c929bbb47f16750e7e25e599fa3
|
| |
| |
| |
| | |
Change-Id: I96aec806392672ff69a3af6c3e0a04a621656f78
|
| |
| |
| |
| | |
Change-Id: I5ba88ea72ea224f2c9e25c5cffab4b93b74e2c59
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
Include the ChangeLog generated by pbr in the documentation
Closes-Bug: 1336974
Change-Id: I2f2cb935dc52d5d0e9ddc4439a0022f739776f45
Signed-off-by: Rosario Di Somma <rosario.disomma@dreamhost.com>
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Start building up a list of links to the history of the policy
discussions about internationalization and translation. This list is not
yet complete, and other links can be added in later changesets.
Change-Id: I5a5dc636a6612dc13c0fdea765fc89083f282cfc
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
To start translation, we need to initially import the
translation file - and place it at the proper place so that
the usual CI scripts can handle it.
The proper place is for all python projects
$PROJECT/locale/$PROJECT.pot - see setup.cfg.
Further imports will be done by the OpenStack Proposal bot.
Change-Id: I8b14e54091e2e3d36605d9493c93ba87eb4105d2
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Rather than forcing everyone to say "from oslo.i18n import gettextutils"
allow "from oslo import i18n".
Change-Id: If87182beb8c7fa6a12f7a1524fdda4910b4e19d5
|
|\ \ \
| | |/
| |/| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Provide more detailed guidelines based on the info we have in the
wiki at https://wiki.openstack.org/wiki/LoggingStandards#Guidelines
Provide API documentation for the gettextutils module.
Fix up some formatting issues with the contributing page that kept it
from being included in the table of contents.
Add a description to the README.
Other minor section and document title fixes, and remove unused pages.
Change-Id: I1e0a2be2918fe8f5d4194fc5a82b19edb225c1d0
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I92a3a695cf9391af2a684c9ef7ee62b3fc524129
|
|\ \ \ \
| |_|/ /
|/| | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
Since Babel>=1.3 is required, code to work with earlier versions
can be removed and the logic made clearer.
Change-Id: I33f358912802fb1bd49ed377d974af9e213b9257
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Update the sphinx version allowed for building documentation.
Update the version of hacking used for code checks. At the same time,
fix the code that causes new checks in hacking 0.9 to fail.
Change-Id: Iafbfaf961838de9e6a1c2f5d474929cafd049a70
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fix some import statements based on comments left on
https://review.openstack.org/#/c/92681/5
Change-Id: Ied2f65ae2f04e2b17632b860008b785e30e7638c
|
|/ /
| |
| |
| |
| |
| |
| | |
Use get_locale_dir_variable_name to build the environment variable in
get_available_languages() and Message._translate_msgid().
Change-Id: I660debd0680f2c2e29b62c5d6c1bbe29b308b695
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Favor one-line conditional assignments instead of more verbose
assignments inside if...else clauses
* Favor the usage of generators instead of explicit for loops for
perfomance
Change-Id: Idfbbec7cd2efa1ebbf5111abb24cb147edb176ee
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Move code around to hide parts that we want to protect, keeping the
public API exposed through the gettextutils and log modules. There
shouldn't be any changes to the code other than what is required to make
the moves work.
Change-Id: I135c535983b74a2e72d9ed133d3f3062752187ef
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Update lazy flag handling to check it at runtime when each message is
translated, instead of once at startup when the translation function is
created. This allows a library to support lazy translation, without
requiring an application that uses the library to support it.
Change-Id: Iae22668119c8d0f5fb9c486436bfc35cdb88ac58
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Refactor the bit of code used to build the translation
domain variable name so it can be tested more easily.
If a translation domain includes '.' or '-' in the name,
replace them with '_' when building the environment variable
name.
bp graduate-oslo-i18n
Change-Id: I149bf82b9802f88d33d8a5b82dc32817305ca2fe
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Split the tests up into multiple files for easier
maintenance.
Update the import order of modules used by the
tests.
bp graduate-oslo-i18n
Change-Id: If225bfa0a4d319ebc530c6497f74a20d0f25835b
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Clean up the documentation a little bit and write slightly
more verbose (and correct) instructions for using the library.
bp graduate-oslo-i18n
Change-Id: Ice626b6eae3c02be84cf79a1ad57817ec8736d8a
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
bp graduate-oslo-i18n
Change-Id: I328e1217e760780841f08ea26fdf2fb97a6a8556
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Move py33 to the front of the list so that running "tox"
by itself builds the .testrepository database using a
version of dbm available on all versions of python.
Remove pypy from the default tox envlist until the issue
with setuptools and pypy is fixed.
bp graduate-oslo-i18n
Change-Id: Ifccfc2248097e8d25136e3163ef06dbaabc3d327
|
|/
|
|
| |
Change-Id: Ie03659997dba4e415c2499f5e88ac95ad53f295c
|
|
|
|
| |
Change-Id: Iafdd4286a88a6d528b25b142a01fbc4e8d27877e
|
|
|
|
| |
Change-Id: I8b5f31fcee83fb3d33d2b144c91376ae47bb78b8
|
|
|
|
| |
Change-Id: I52080be9946464b9d65361643f73bbe02f9e46eb
|
|
|
|
| |
Change-Id: I3f68c1cf0b0780174695b3a596a36523e96b44e7
|
|
|
|
| |
Change-Id: I1494d608bb55b62334a69dad5aea7db45ffadd6e
|
|
|
|
|
|
|
|
|
|
| |
Update test requirements.
Move unit test modules into the right place.
A few small changes to the test code.
Change-Id: I5f118d753de467eed822cf264ab68b911aa7f2fb
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After gettextutils moves to a library, we will not be able to rely on
a single set of global translation functions. Each library will need
its own functions, using a different translation domain, so the right
message catalogs can be loaded.
Since we know when the factory is created which version of Python is
used and whether or not lazy translation should be enabled, return
functions that do the translation without checking those settings
at runtime for each message.
bp graduate-oslo-i18n
Change-Id: I0a177f70e71f1a5708d9e50ff0399eba6ec02c1c
|
|
|
|
|
|
|
|
| |
Module openstack.common.test is obsolete, so we should use
oslotest library instead of it.
Modified tests and common database code, new requirement added.
Change-Id: I853e548f11a4c3785eaf75124510a6d789536634
|
|
|
|
|
|
|
|
|
|
| |
On Python 3, str(obj) calls obj.__str__(), not obj.__unicode__().
The test does not pass with nosetests, LogLevelTranslationsTest fails with an
AttributeError (self.level is missing), because nosetests doesn't play well
with test scenarios.
Change-Id: I78ae106e336480d9995ac4394197ea45b8ef9b07
|
|
|
|
|
|
|
|
|
|
|
| |
Broadened deep copy exception handling and changed the keyword
dictionary deep copy to doing each element separately so that only
the failing dictionary item is converted to unicode.
Also added test cases.
Closes-bug: #1290468
Change-Id: I15f3880b32bec55bb61d96af41762c98486a274d
|