<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Doug Hellmann <<a href="mailto:doug.hellmann@dreamhost.com">doug.hellmann@dreamhost.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, March 13, 2014 at 12:44 PM<br>
<span style="font-weight:bold">To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [openstack-dev] does exception need localize or not?<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Feb 27, 2014 at 3:45 AM, yongli he <span dir="ltr">
<<a href="mailto:yongli.he@intel.com" target="_blank">yongli.he@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">refer to :<br>
<a href="https://wiki.openstack.org/wiki/Translations" target="_blank">https://wiki.openstack.org/wiki/Translations</a><br>
<br>
now some exception use _ and some not.  the wiki suggest do not to do that. but i'm not sure.<br>
<br>
what's the correct way?<br>
<br>
<br>
F.Y.I <br>
<br>
<h4><span>What To Translate</span></h4>
<p style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:20px;color:rgb(51,51,51);text-transform:none;font-size:14px;white-space:normal;margin:0px 0px 10px;font-family:'Arial Unicode MS',Arial,sans-serif;word-spacing:0px">
At present the convention is to translate<span> </span><i>all</i><span> </span>user-facing strings. This means API messages, CLI responses, documentation, help text, etc.</p>
<p style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:20px;color:rgb(51,51,51);text-transform:none;font-size:14px;white-space:normal;margin:0px 0px 10px;font-family:'Arial Unicode MS',Arial,sans-serif;word-spacing:0px">
There has been a lack of consensus about the translation of log messages; the current ruling is that while it is not against policy to mark log messages for translation if your project feels strongly about it, translating log messages is not actively encouraged.</p>
</div>
</blockquote>
<div><br>
</div>
<div>
<div class="gmail_default" style="font-size:small">I've updated the wiki to replace that paragraph with a pointer to
<a href="https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation">https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation</a> which explains the log translation rules. We will be adding the job needed to have different log translations during
 Juno.</div>
<br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:20px;color:rgb(51,51,51);text-transform:none;font-size:14px;white-space:normal;margin:0px 0px 10px;font-family:'Arial Unicode MS',Arial,sans-serif;word-spacing:0px">
Exception text should<span> </span><i>not</i><span> </span>be marked for translation, becuase if an exception occurs there is no guarantee that the translation machinery will be functional.</p>
</div>
</blockquote>
<div><br>
</div>
<div>
<div class="gmail_default" style="font-size:small">This makes no sense to me. Exceptions should be translated. By far the largest number of errors will be presented to users through the API or through Horizon (which gets them from the API). We will ensure that
 the translation code does its best to fall back to the original string if the translation fails.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Doug</div>
<br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><br>
<br>
Regards<span class=""><font color="#888888"><br>
Yongli He<br>
<br>
</font></span></div>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>I think this question comes up every 3 months, haha ;)</div>
<div><br>
</div>
<div>As we continue to expand all the libraries in <a href="https://github.com/openstack/requirements/blob/master/global-requirements.txt">https://github.com/openstack/requirements/blob/master/global-requirements.txt</a> and knowing that those libraries likely
 don't translate there exceptions (probably in the majority of cases, especially in non-openstack/oslo 3rd party libraries) are we chasing a ideal that can not be caught?</div>
<div><br>
</div>
<div>Food for thought,</div>
<div><br>
</div>
<div>-Josh</div>
</body>
</html>