[openstack-dev] [all][i18n] do we need translation mark for strings in tests?

Ihar Hrachyshka ihrachys at redhat.com
Sun Oct 2 09:25:18 UTC 2016


Matt Riedemann <mriedem at linux.vnet.ibm.com> wrote:

> On 10/1/2016 5:49 PM, Matt Riedemann wrote:
>> No you shouldn't need to mark strings for translation in test code. I
>> believe we have a hacking rule for marking LOG.info/warning/error
>> messages for translation but it should skip test directories.
>
> Ah I guess the hacking rule is nova-specific:
>
> https://github.com/openstack/nova/blob/2851ceaed3010c19f42e308be637b952edab092a/nova/hacking/checks.py#L342

We have a similar one in neutron; but note that it does not explicitly FAIL  
on translation markers in test code; it instead fails on no markers in  
production code, which is different different.

Ihar



More information about the OpenStack-dev mailing list