i18n Message improvements

Registered by Brad Pokorny

During the Oslo meeting on 2013-10-11 (http://eavesdrop.openstack.org/meetings/oslo/2013/) we discussed the integration of Messages into OpenStack vs other approaches, and also came up with some ideas for improving the current implementation and on how to implement the translated logs feature.

After the corresponding blueprint is implemented in oslo (https://blueprints.launchpad.net/oslo/+spec/i18n-messages) we will have the ability to translate REST API responses, and to create additional logs in languages other than the default system locale.

This blueprint is for synchronizing the oslo code into heat, re-enabling the lazy translation, and making necessary adjustments in existing messages so they are translatable (e.g. Messages should not be created with +, but with % instead).

Blueprint information

Status:
Complete
Approver:
Steve Baker
Priority:
Undefined
Drafter:
Brad Pokorny
Direction:
Approved
Assignee:
Liang Chen
Definition:
Obsolete
Series goal:
None
Implementation:
Good progress
Milestone target:
None
Started by
Thierry Carrez
Completed by
Rico Lin

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/i18n-messages,n,z

Addressed by: https://review.openstack.org/67326
    Sync gettextutils from Oslo

Addressed by: https://review.openstack.org/69133
    Re-enable lazy translation

Addressed by: https://review.openstack.org/75794
    Replace '+' with string interpolation operation

Addressed by: https://review.openstack.org/75795
    Replace str with six.text_type

Addressed by: https://review.openstack.org/75796
    Avoid referencing Message.__str__ in exceptions

Addressed by: https://review.openstack.org/75797
    Replace str with six.text_type in tests

Addressed by: https://review.openstack.org/75798
    Enable lazy translation in unit tests

Addressed by: https://review.openstack.org/75799
    sync oslo.db to bring in fixes to message handling

Addressed by: https://review.openstack.org/75800
    Re-enable lazy translation

Addressed by: https://review.openstack.org/77413
    Tidy up urlfetch.py exception handling

(stevebaker) I'm going to defer this blueprint but leave the reviews open. A lot of these changes could be resubmitted as bug fixes, or wait until feature freeze is thawed.

Addressed by: https://review.openstack.org/81956
    Replace str with six.text_type

Addressed by: https://review.openstack.org/81960
    Tidy up urlfetch.py exception handling

Addressed by: https://review.openstack.org/108917
    Enable lazy translation on heat

Gerrit topic: https://review.openstack.org/#q,topic:bp/oslo-i18n,n,z

Gerrit topic: https://review.openstack.org/#q,topic:bp/log-translation-hints,n,z

Addressed by: https://review.openstack.org/110192
    Remove deprecated function i18n.install('heat')

Addressed by: https://review.openstack.org/109479
    Switch heat api to oslo i18n

Addressed by: https://review.openstack.org/108924
    Import oslo.i18n and port heat bins to use oslo.i18n

Addressed by: https://review.openstack.org/109510
    Switch heat resources to oslo.i18n

Addressed by: https://review.openstack.org/109488
    Switch heat engine to oslo.i18n

Addressed by: https://review.openstack.org/109333
    Adding log messages to improve error handling

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.