Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/i18n/example/index.html
blob: b0ef394414ec6747fa020f70a3d39c0e83b4bd1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>