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

Unified Diff: chrome/common/extensions/docs/server2/templates/intros/i18n.html

Issue 10834130: Extensions Docs Server: Doc conversion script - SVN (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/templates/intros/i18n.html
===================================================================
--- chrome/common/extensions/docs/server2/templates/intros/i18n.html (revision 150606)
+++ chrome/common/extensions/docs/server2/templates/intros/i18n.html (working copy)
@@ -1,11 +1,9 @@
-<div id="pageData-name" class="pageData">Internationalization (i18n)</div>
-
<!--
[NOTEs for editors:
* Try to be consistent about string vs. message (it's probably not yet).
-->
-<!-- BEGIN AUTHORED CONTENT -->
+
<p id="classSummary">
An <em>internationalized</em> extension
can be easily
@@ -34,7 +32,7 @@
Korean (<code>ko</code>):
</p>
-<img src="../images/i18n-hierarchy.gif"
+<img src="{{static}}/images/i18n-hierarchy.gif"
alt='In the extension directory: manifest.json, *.html, *.js, _locales directory. In the _locales directory: en, es, and ko directories, each with a messages.json file.'
width="385" height="77" />
@@ -46,7 +44,7 @@
with the files shown in the following figure:
</p>
-<img src="../images/i18n-before.gif"
+<img src="{{static}}/images/i18n-before.gif"
alt='A manifest.json file and a file with JavaScript. The .json file has "name": "Hello World". The JavaScript file has title = "Hello World";'
width="323" height="148">
@@ -65,7 +63,7 @@
(note that it still has only English strings):
</p>
-<img src="../images/i18n-after-1.gif"
+<img src="{{static}}/images/i18n-after-1.gif"
alt='In the manifest.json file, "Hello World" has been changed to "__MSG_extName__", and a new "default_locale" item has the value "en". In the JavaScript file, "Hello World" has been changed to chrome.i18n.getMessage("extName"). A new file named _locales/en/messages.json defines "extName".'
width="782" height="228">
@@ -159,7 +157,7 @@
with a new Spanish translation.
</p>
-<img src="../images/i18n-after-2.gif"
+<img src="{{static}}/images/i18n-after-2.gif"
alt='This looks the same as the previous figure, but with a new file at _locales/es/messages.json that contains a Spanish translation of the messages.'
width="782" height="358">
@@ -356,7 +354,7 @@
see the label "Colores" and the extension name "Hola mundo".
</p>
-<img src="../images/i18n-strings.gif"
+<img src="{{static}}/images/i18n-strings.gif"
alt='Four files: manifest.json and three messages.json files (for es, en, and en_GB). The es and en files show entries for messages named "extName" and "colores"; the en_GB file has just one entry (for "colores").'
width="493" height="488" />
@@ -571,6 +569,4 @@
<p>
For details on calling <code>getAcceptLanguages()</code>, see the
<a href="#method-getAcceptLanguages">API reference</a>.
-</p>
-
-<!-- END AUTHORED CONTENT -->
+</p>

Powered by Google App Engine
This is Rietveld 408576698