summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add missing six dependency1.0.00.4.0Doug Hellmann2014-09-101-0/+1
| | | | | Change-Id: I6a661282d6e9381861ff0cf4ba564f76e4812d4a Closes-bug: #1367761
* Merge "Imported Translations from Transifex"0.3.0Jenkins2014-09-0710-0/+235
|\
| * Imported Translations from TransifexOpenStack Proposal Bot2014-09-0710-0/+235
| | | | | | | | Change-Id: I806bef9ccffcf914e802b903390c93799aa4d47f
* | Updated from global requirementsOpenStack Proposal Bot2014-08-281-2/+2
|/ | | | Change-Id: I0b2152153a2ea35193140c999dcf061051484861
* Merge "Document how to add import exceptions"Jenkins2014-08-271-0/+39
|\
| * Document how to add import exceptionsDoug Hellmann2014-08-231-0/+39
| | | | | | | | | | | | | | Add documentation for how to add import exceptions so hacking does not complain about the way the library is used. Change-Id: Ic33307215abbc38d3d3d2435588f79dc115510fd
* | Merge "Remove mention of Message objects from public docs"Jenkins2014-08-272-8/+9
|\ \ | |/
| * Remove mention of Message objects from public docsDoug Hellmann2014-07-132-8/+9
| | | | | | | | | | | | | | 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
* | Imported Translations from TransifexOpenStack Proposal Bot2014-08-241-0/+35
| | | | | | | | Change-Id: I3a8fb8ea66627c929bbb47f16750e7e25e599fa3
* | Add a test fixture for translatable strings0.2.0Doug Hellmann2014-08-123-0/+108
| | | | | | | | Change-Id: I96aec806392672ff69a3af6c3e0a04a621656f78
* | Imported Translations from TransifexOpenStack Proposal Bot2014-07-255-0/+109
| | | | | | | | Change-Id: I5ba88ea72ea224f2c9e25c5cffab4b93b74e2c59
* | Merge "Add Changelog to the documentation"Jenkins2014-07-142-0/+2
|\ \
| * | Add Changelog to the documentationRosario Di Somma2014-07-112-0/+2
| |/ | | | | | | | | | | | | | | | | 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>
* | Merge "Add links to policy discussions"Jenkins2014-07-122-0/+10
|\ \ | |/ |/|
| * Add links to policy discussionsDoug Hellmann2014-06-262-0/+10
| | | | | | | | | | | | | | | | 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
* | Merge "Setup for translation"Jenkins2014-07-071-0/+29
|\ \
| * | Setup for translationAndreas Jaeger2014-06-051-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Shift public API to top level package0.1.0Doug Hellmann2014-06-2714-60/+136
| | | | | | | | | | | | | | | | | | | | | Rather than forcing everyone to say "from oslo.i18n import gettextutils" allow "from oslo import i18n". Change-Id: If87182beb8c7fa6a12f7a1524fdda4910b4e19d5
* | | Merge "Improve initial documentation"Jenkins2014-06-2512-41/+304
|\ \ \ | | |/ | |/|
| * | Improve initial documentationDoug Hellmann2014-06-2312-41/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Updated from global requirements"Jenkins2014-06-240-0/+0
|\ \ \
| * | | Updated from global requirementsOpenStack Proposal Bot2014-06-181-1/+1
| | | | | | | | | | | | | | | | Change-Id: I92a3a695cf9391af2a684c9ef7ee62b3fc524129
* | | | Merge "Remove Babel version workaround code"Jenkins2014-06-231-16/+4
|\ \ \ \ | |_|/ / |/| | |
| * | | Remove Babel version workaround codeBrant Knudson2014-06-111-16/+4
| |/ / | | | | | | | | | | | | | | | | | | Since Babel>=1.3 is required, code to work with earlier versions can be removed and the logic made clearer. Change-Id: I33f358912802fb1bd49ed377d974af9e213b9257
* | | Update sphinx and hacking requirementsDoug Hellmann2014-06-1810-31/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 import grouping in testsDoug Hellmann2014-06-182-5/+2
| | | | | | | | | | | | | | | | | | | | | Fix some import statements based on comments left on https://review.openstack.org/#/c/92681/5 Change-Id: Ied2f65ae2f04e2b17632b860008b785e30e7638c
* | | Build locale dir env var name consistentlyDoug Hellmann2014-06-182-7/+10
|/ / | | | | | | | | | | | | Use get_locale_dir_variable_name to build the environment variable in get_available_languages() and Message._translate_msgid(). Change-Id: I660debd0680f2c2e29b62c5d6c1bbe29b308b695
* | Trivial refactors for gettextutilsJuan Antonio Osorio2014-06-114-33/+23
| | | | | | | | | | | | | | | | | | | | * 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
* | Update the public API of the libraryDoug Hellmann2014-06-0416-489/+692
| | | | | | | | | | | | | | | | | | 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
* | Check the lazy flag at runtimeDoug Hellmann2014-06-045-71/+121
| | | | | | | | | | | | | | | | | | 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
* | Handle . and - in translation domainsDoug Hellmann2014-06-042-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 up monolithic test fileDoug Hellmann2014-06-046-662/+779
|/ | | | | | | | | | | | 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
* Merge "Fix up usage instructions"Jenkins2014-05-224-16/+43
|\
| * Fix up usage instructionsDoug Hellmann2014-05-074-16/+43
| | | | | | | | | | | | | | | | | | 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
* | Merge "fix docstring for fakes module"Jenkins2014-05-221-1/+1
|\ \ | |/
| * fix docstring for fakes moduleDoug Hellmann2014-05-071-1/+1
| | | | | | | | | | | | bp graduate-oslo-i18n Change-Id: I328e1217e760780841f08ea26fdf2fb97a6a8556
* | Merge "Update default tox settings"Jenkins2014-05-221-2/+2
|\ \ | |/
| * Update default tox settingsDoug Hellmann2014-05-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Updated from global requirementsOpenStack Proposal Bot2014-05-093-3/+11
|/ | | | Change-Id: Ie03659997dba4e415c2499f5e88ac95ad53f295c
* update .gitreviewDoug Hellmann2014-04-291-1/+1
| | | | Change-Id: Iafdd4286a88a6d528b25b142a01fbc4e8d27877e
* update tests for python 3Doug Hellmann2014-04-291-8/+14
| | | | Change-Id: I8b5f31fcee83fb3d33d2b144c91376ae47bb78b8
* sync cross-test script from incubatorDoug Hellmann2014-04-292-0/+99
| | | | Change-Id: I52080be9946464b9d65361643f73bbe02f9e46eb
* pep8 fixes from importDoug Hellmann2014-04-293-3/+3
| | | | Change-Id: I3f68c1cf0b0780174695b3a596a36523e96b44e7
* update .gitignore with new lib nameDoug Hellmann2014-04-291-1/+1
| | | | Change-Id: I1494d608bb55b62334a69dad5aea7db45ffadd6e
* Make unit tests passDoug Hellmann2014-04-295-110/+7
| | | | | | | | | | Update test requirements. Move unit test modules into the right place. A few small changes to the test code. Change-Id: I5f118d753de467eed822cf264ab68b911aa7f2fb
* initial export with graduate.shDoug Hellmann2014-04-2926-0/+578
|
* Add API for creating translation functionsDoug Hellmann2014-04-142-127/+155
| | | | | | | | | | | | | | | | 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
* Use oslotest instead of common test moduleVictor Sergeyev2014-04-151-5/+5
| | | | | | | | 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
* Fix test_gettextutils on Python 3Victor Stinner2014-03-143-9/+23
| | | | | | | | | | 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
* Fix gettextutil.Message handling of deep copy failuresJames Carey2014-03-112-3/+37
| | | | | | | | | | | 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