org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-4CD10DEB-6C79-4320-AC82-F17DD264CF28.html
Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="copyright" content="(C) Copyright 2009"/><meta name="DC.rights.owner" content="(C) Copyright 2009"/><meta name="DC.Type" content="concept"/><meta name="DC.Title" content="Localizing widget display name"/><meta name="DC.Relation" scheme="URI" content="GUID-C442113C-5FBE-493E-AD5A-CF0A0FB3C5FD"/><meta name="DC.Relation" scheme="URI" content="GUID-71BE0F0B-B6B2-475C-A87B-A04E207F3292"/><meta name="DC.Relation" scheme="URI" content="GUID-1EFD7043-E9B8-4B4E-9EA6-A20B3EECC14A"/><meta name="DC.Relation" scheme="URI" content="GUID-E3EA4F85-E0AE-42AB-8E51-EFD3F0E0A51E"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-4CD10DEB-6C79-4320-AC82-F17DD264CF28"/><title>Localizing widget display name </title><script type="text/javascript">
function initPage() {}
</script><link href="../PRODUCT_PLUGIN/book.css" rel="stylesheet" type="text/css"/><link href="css/s60/style.css" rel="stylesheet" type="text/css" media="all"/></head><body onload="initPage();"><div class="body"><div class="contentLeft prTxt"><h1 class="pageHeading" id="GUID-4CD10DEB-6C79-4320-AC82-F17DD264CF28">Localizing widget display name</h1><div>
<p>The widget display name is a text string defined in the widget <a href="GUID-BBA0299B-81B6-4508-8D5B-5627206CBF7B.html#GUID-BBA0299B-81B6-4508-8D5B-5627206CBF7B"><code>info.plist</code></a> file and specified by the <code><DisplayName></code> key.</p>
<p>To localize the display name of a widget:</p>
<ol>
<li id="GUID-F1AE54DE-C56C-4073-9720-27D35C2E9479"><a name="GUID-F1AE54DE-C56C-4073-9720-27D35C2E9479"><!----></a><p>Define a localized display name in a file called <code>infoplist.strings</code>.</p></li>
<li id="GUID-080D59FD-49B8-4850-AB1A-C1AAD33DF9E4"><a name="GUID-080D59FD-49B8-4850-AB1A-C1AAD33DF9E4"><!----></a><p>Store the file under the appropriate <a href="GUID-71BE0F0B-B6B2-475C-A87B-A04E207F3292.html#GUID-71BE0F0B-B6B2-475C-A87B-A04E207F3292">language project directory</a>.</p></li>
</ol>
<p>The following is an example display name definition in an <code>infoplist.strings</code> file:</p>
<pre class="codeblock" id="GUID-796D111F-F58C-4516-B28B-5A5196DB15C3">DisplayName = "Localized name"</pre>
<p>When a widget is being installed, the installer searches for the <code>infoplist.strings</code> file under a language project directory that matches with the current device system language. If the installer finds the <code>infoplist.strings</code> file and a localized name is provided, the localized name overrides the display name defined in the widget <a href="GUID-BBA0299B-81B6-4508-8D5B-5627206CBF7B.html#GUID-BBA0299B-81B6-4508-8D5B-5627206CBF7B"><code>info.plist</code></a> file.</p>
<div class="note"><p><strong class="note_title">Note: </strong>The display name is loaded only once, when a widget is being installed. If users change the system language later, the display name is not changed.</p></div>
</div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>