Re: [openstack-dev] [stable][i18n] What is the backport policy on i18n changes?

2016-02-22 Thread Ihar Hrachyshka

Thierry Carrez  wrote:


Matt Riedemann wrote:

I don't think we have an official policy for stable backports with
respect to translatable string changes.

I'm looking at a release request for ironic-inspector on stable/liberty
[1] and one of the changes in that has translatable string changes to
user-facing error messages [2].

mrunge brought up this issue in the stable team meeting this week also
since Horizon has to be extra careful about backporting changes with
translatable string changes.

I think on the server side, if they are changes that just go in the
logs, it's not a huge issue. But for user facing changes, should we
treat those like StringFreeze [3]? Or only if the stable branches for
the given project aren't getting translation updates? I know the server
projects (at least nova) is still get translation updates on
stable/liberty so if we do backport changes with translatable string
updates, they aren't getting updated in stable. I don't see anything
like that happening for ironic-inspector on stable/liberty though.

Thoughts?


My take would be, you generally shouldn't change the strings in a stable  
branch... Some people might rely on certain patterns in logs and others  
might find it funny if a previously-translated string suddenly becomes  
untranslated.


Now there can be exceptions, where the value of changing the string  
outweighs the value of not changing it (like, the error message itself  
was wrong)... but it should really be an exception ?


Also, sometimes the only thing that changed is translation domain (f.e. _LE  
-> _LW). In that case, I think we should just retain the translation  
domain, but log it with proper log level. So you may have something like:


LOG.warn(_LE(‘…’))

Note that it will trigger pep8 check failure in some projects that have a  
hacking rule that validates the domain corresponds to translation marker.  
That can be overcome by ‘#  noqa’ comment in the same line.


For reference, we are looking at applying the approach here for neutron:

https://review.openstack.org/#/c/270622/4/neutron/agent/linux/external_process.py

Ihar

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [stable][i18n] What is the backport policy on i18n changes?

2016-02-22 Thread Thierry Carrez

Matt Riedemann wrote:

I don't think we have an official policy for stable backports with
respect to translatable string changes.

I'm looking at a release request for ironic-inspector on stable/liberty
[1] and one of the changes in that has translatable string changes to
user-facing error messages [2].

mrunge brought up this issue in the stable team meeting this week also
since Horizon has to be extra careful about backporting changes with
translatable string changes.

I think on the server side, if they are changes that just go in the
logs, it's not a huge issue. But for user facing changes, should we
treat those like StringFreeze [3]? Or only if the stable branches for
the given project aren't getting translation updates? I know the server
projects (at least nova) is still get translation updates on
stable/liberty so if we do backport changes with translatable string
updates, they aren't getting updated in stable. I don't see anything
like that happening for ironic-inspector on stable/liberty though.

Thoughts?


My take would be, you generally shouldn't change the strings in a stable 
branch... Some people might rely on certain patterns in logs and others 
might find it funny if a previously-translated string suddenly becomes 
untranslated.


Now there can be exceptions, where the value of changing the string 
outweighs the value of not changing it (like, the error message itself 
was wrong)... but it should really be an exception ?


--
Thierry Carrez (ttx)

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [stable][i18n] What is the backport policy on i18n changes?

2016-02-18 Thread Dmitry Tantsur

On 02/18/2016 01:16 AM, Matt Riedemann wrote:

I don't think we have an official policy for stable backports with
respect to translatable string changes.

I'm looking at a release request for ironic-inspector on stable/liberty
[1] and one of the changes in that has translatable string changes to
user-facing error messages [2].

mrunge brought up this issue in the stable team meeting this week also
since Horizon has to be extra careful about backporting changes with
translatable string changes.

I think on the server side, if they are changes that just go in the
logs, it's not a huge issue. But for user facing changes, should we
treat those like StringFreeze [3]? Or only if the stable branches for
the given project aren't getting translation updates? I know the server
projects (at least nova) is still get translation updates on
stable/liberty so if we do backport changes with translatable string
updates, they aren't getting updated in stable. I don't see anything
like that happening for ironic-inspector on stable/liberty though.


Hi!

I had this concern, but ironic-inspector has never had any actual 
translations, so I don't think it's worth blocking this (pretty 
annoying) bug fix based on that.




Thoughts?

[1] https://review.openstack.org/#/c/279515/
[2] https://review.openstack.org/#/c/279071/1/ironic_inspector/process.py
[3] https://wiki.openstack.org/wiki/StringFreeze




__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev