W3C home > Mailing lists > Public > public-automotive@w3.org > September 2015

i18n-ISSUE-487: Consider adding a language tag to indicate the language of an error message

From: Steven Atkin <atkin@us.ibm.com>
Date: Thu, 17 Sep 2015 13:52:03 -0400
10 Vehicle Interface Error
http://www.w3.org/TR/2015/WD-vehicle-information-api-20150616/#idl-def-VehicleInterfaceError

Which languages may be used in the error message? If languages other than
English are permitted then you may want to add an attribute to the
interface to clearly indicate the language of the message.

You may want to consider modifying this interface to permit an array of
messages tagged with their language so that the interface could return
messages in more than one language. This would enable an end-user to select
from a list of possible languages to see messages in.

If you add a language tag then you should follow the BCP47 recommendations
https://tools.ietf.org/html/bcp47

Do not use the ISO639-1 2 letter codes for languages.

One of the problems with using ISO 639-1 2 letter codes is that it does not
adequately address the handling of Chinese. For example, in ISO 639-1
Chinese is represented as zh. This code cannot indicate whether the writing
system is Simplified Chinese or Traditional Chinese. The BCP47 standard
clearly indicates which writing system is in use. In this case if
Simplified Chinese was being used the code would be zh-Hans and for
Traditional Chinese it would be zh-Hant.



Steven Atkin, Ph.D.
STSM - Chief Globalization Architect
IBM Globalization Center of Competency
atkin@us.ibm.com
http://www-3.ibm.com/software/globalization/index.jsp

--0__
BBF450DFF18D8A8f9e8a93df938690918c0ABBF450DFF18D8A
Content-Transfer-Encoding: quoted-printable
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline

<html><body><p>10 Vehicle Interface Error<br><a href="http://www.w3.org/TR/2015/WD-vehicle-information-api-20150616/#idl-def-VehicleInterfaceError">http://www.w3.org/TR/2015/WD-vehicle-information-api-20150616/#idl-def-VehicleInterfaceError</a><br><br>Which languages may be used in the error message? If languages other than English are permitted then you may want to add an attribute to the interface to clearly indicate the language of the message. <br><br>You may want to consider modifying this interface to permit an array of messages tagged with their language so that the interface could return messages in more than one language. This would enable an end-user to select from a list of possible languages to see messages in.<br><br>If you add a language tag then you should follow the BCP47 recommendations <a href="https://tools.ietf.org/html/bcp47">https://tools.ietf.org/html/bcp47</a><br><br>Do not use the ISO639-1 2 letter codes for languages.<br><br>One of the problems with using ISO 639-1 2 letter codes is that it does not adequately address the handling of Chinese. For example, in ISO 639-1 Chinese is represented as zh. This code cannot indicate whether the writing system is Simplified Chinese or Traditional Chinese. The BCP47 standard clearly indicates which writing system is in use. In this case if Simplified Chinese was being used the code would be zh-Hans and for Traditional Chinese it would be zh-Hant.<br><br><br><br>Steven Atkin, Ph.D.<br>STSM - Chief Globalization Architect<br>IBM Globalization Center of Competency<br>atkin@us.ibm.com<br><a href="http://www-3.ibm.com/software/globalization/index.jsp">http://www-3.ibm.com/software/globalization/index.jsp</a><BR>
</body></html>

--0__
BBF450DFF18D8A8f9e8a93df938690918c0ABBF450DFF18D8A--
Received on Thursday, 17 September 2015 17:53:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:05:41 UTC