Symbian3/SDK/Source/GUID-94C64AC2-5680-4DED-8CCB-55CD5C25F1E5.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Thu, 21 Jan 2010 18:18:20 +0000
changeset 0 89d6a7a84779
permissions -rw-r--r--
Initial contribution of Documentation_content according to Feature bug 1266 bug 1268 bug 1269 bug 1270 bug 1372 bug 1374 bug 1375 bug 1379 bug 1380 bug 1381 bug 1382 bug 1383 bug 1385

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
	Nokia Corporation - initial contribution.
Contributors: 
-->  <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"><concept id="GUID-94C64AC2-5680-4DED-8CCB-55CD5C25F1E5" xml:lang="en"><title>Resource
string handling</title><prolog><metadata><keywords></keywords></metadata></prolog><conbody>
<p>The Symbian platform provides support for loading and formatting
resource strings through the StringLoader class.
To use this class, you must define your strings in the resource file with
the <parmname>RESOURCE TBUF</parmname> statement.</p>
<p>The syntax for the resource string declaration is as follows:</p>
<codeblock xml:space="preserve" id="GUID-04157BE9-A433-44BB-94B1-F6D32FF51163">RESOURCE TBUF r_name34 { buf = STRING_value_in_rls_file; }</codeblock>
<p>where</p>
<ul>
<li><p><parmname>RESOURCE</parmname> is the keyword for the statement</p>
</li>
<li><p><parmname>TBUF</parmname> is a utility structure to contain
the string</p></li>
<li><p><parmname>r_name34</parmname> is the symbolic ID used in
your code</p></li>
<li><p><parmname>STRING_value_in_rls_file</parmname> maps to a value
in an <parmname>rls</parmname> file to support <xref href="GUID-9EA7B72B-8394-48B8-A0CC-4BB34CBDB01C.dita">localization
and internationalization</xref></p></li>
</ul>
<p> For more information, see <xref href="jar:GUID-35228542-8C95-4849-A73F-2B4F082F0C44.jar!/sdk/doc_source/reference/reference-resource/bafl/TBUFStruct.html#TBUF" format="application/java-archive"><parmname>TBUF</parmname></xref>.</p>
</conbody></concept>