Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/i18n/example/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'i18n/example/index.html')
-rw-r--r--i18n/example/index.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/i18n/example/index.html b/i18n/example/index.html
new file mode 100644
index 0000000..b0ef394
--- /dev/null
+++ b/i18n/example/index.html
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html> <head>
+<title class="translate">An English Title</title>
+</head>
+
+<body>
+<h1 class="translate">An English Header</h1>
+<p><div class="someClass translate">This is a div with <i>markup</i>.</div>
+
+<h1>Instructions</h1>
+To translate (part of) this page I followed these steps:
+<ul>
+ <li>I added a class "translate" to each html element that needs to be
+ translated.</li>
+ <li>I ran the script ../html2po.py to generate messages.po (this
+ xgettext(1) equivalent for html)</li>
+ <li>I moved messages.po to messages.pot</li>
+ <li>msginit -l es -i messages.pot -o messages.es.po</li>
+ <li>I added the Spanish translations to messages.es.po</li>
+ <li>msgfmt -i messages.es.po</li>
+ <li>../translate-html.py -o index.es.html</li>
+</ul>
+
+</body> </html>