Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: chrome/common/extensions/docs/static/i18n-messages.html

Issue 1392002: Update i18n pages to include predefined messages (e.g. @@bidi_dir).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/docs/static/i18n.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <div id="pageData-name" class="pageData">Formats: Locale-Specific Messages</div> 1 <div id="pageData-name" class="pageData">Formats: Locale-Specific Messages</div>
2 <div id="pageData-showTOC" class="pageData">true</div> 2 <div id="pageData-showTOC" class="pageData">true</div>
3 3
4 <p> 4 <p>
5 Each internationalized extension has at least one 5 Each internationalized extension has at least one
6 file named <code>messages.json</code> 6 file named <code>messages.json</code>
7 that provides locale-specific strings for the extension. 7 that provides locale-specific strings for the extension.
8 This page describes the format of <code>messages.json</code> files. 8 This page describes the format of <code>messages.json</code> files.
9 For information on how to internationalize and localize your extension, 9 For information on how to internationalize and localize your extension,
10 see the <a href="i18n.html">Internationalization</a> page. 10 see the <a href="i18n.html">Internationalization</a> page.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 The name is a case-insensitive key 102 The name is a case-insensitive key
103 that lets you retrieve the localized message text. 103 that lets you retrieve the localized message text.
104 The name can include the following characters: 104 The name can include the following characters:
105 </p> 105 </p>
106 106
107 <ul> 107 <ul>
108 <li> A-Z </li> 108 <li> A-Z </li>
109 <li> a-z </li> 109 <li> a-z </li>
110 <li> 0-9 </li> 110 <li> 0-9 </li>
111 <li> _ (underscore) </li> 111 <li> _ (underscore) </li>
112 <li> @ </li>
112 </ul> 113 </ul>
113 114
115 <p class="note">
116 <b>Note:</b>
117 Don't define names that begin with "@@".
118 Those names are reserved for
119 <a href="i18n.html#overview-predefined">predefined messages</a>.
120 </p>
121
114 <p> 122 <p>
115 Here are three examples of names, 123 Here are three examples of names,
116 taken from the <a href="#example">Example</a> section: 124 taken from the <a href="#example">Example</a> section:
117 </p> 125 </p>
118 126
119 <pre> 127 <pre>
120 "prompt_for_name": { 128 "prompt_for_name": {
121 ... 129 ...
122 }, 130 },
123 "hello": { 131 "hello": {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 }, 324 },
317 "user": { 325 "user": {
318 "content": "$1", 326 "content": "$1",
319 "example": "Cira" 327 "example": "Cira"
320 } 328 }
321 } 329 }
322 </pre> 330 </pre>
323 331
324 332
325 333
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/static/i18n.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698