Commit 82de03b6 authored by Jacob Thornton's avatar Jacob Thornton

start wrapping text in {{_i}} for translation

parent b4b1ef68
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head> </head>
<body> <body>
......
...@@ -6,7 +6,7 @@ var layout, pages ...@@ -6,7 +6,7 @@ var layout, pages
// compile layout template // compile layout template
layout = fs.readFileSync(__dirname + '/../templates/layout.mustache', 'utf-8') layout = fs.readFileSync(__dirname + '/../templates/layout.mustache', 'utf-8')
layout = hogan.compile(layout) layout = hogan.compile(layout, { sectionTags: [{o:'_i', c:'i'}] })
// retrieve pages // retrieve pages
pages = fs.readdirSync(__dirname + '/../templates/pages') pages = fs.readdirSync(__dirname + '/../templates/pages')
...@@ -18,7 +18,9 @@ pages.forEach(function (name) { ...@@ -18,7 +18,9 @@ pages.forEach(function (name) {
, context = {} , context = {}
context[name.replace(/\.mustache$/, '')] = 'active' context[name.replace(/\.mustache$/, '')] = 'active'
page = hogan.compile(page) context._i = true
page = hogan.compile(page, { sectionTags: [{o:'_i', c:'i'}] })
page = layout.render(context, { page = layout.render(context, {
body: page body: page
}) })
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head> </head>
<body> <body>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head> </head>
<body> <body>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head> </head>
<body> <body>
...@@ -299,7 +298,7 @@ ...@@ -299,7 +298,7 @@
<p><span class="label notice">Notice</span> If you want your modal to animate in and out, just add a <code>.fade</code> class to the <code>.modal</code> element (refer to the demo to see this in action).</p> <p><span class="label notice">Notice</span> If you want your modal to animate in and out, just add a <code>.fade</code> class to the <code>.modal</code> element (refer to the demo to see this in action).</p>
<h3>Methods</h3> <h3>Methods</h3>
<h4>.modal(options)</h4> <h4>.modal(options)</h4>
<p>Activates your content as a modal. Accepts an optional options <code>object</code>. <p>Activates your content as a modal. Accepts an optional options <code>object</code>.</p>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
$('#myModal').modal({ $('#myModal').modal({
keyboard: false keyboard: false
...@@ -314,7 +313,7 @@ $('#myModal').modal({ ...@@ -314,7 +313,7 @@ $('#myModal').modal({
<p>Manually hides a modal.</p> <p>Manually hides a modal.</p>
<pre class="prettyprint linenums">$('#myModal').modal('hide')</pre> <pre class="prettyprint linenums">$('#myModal').modal('hide')</pre>
<h3>Events</h3> <h3>Events</h3>
<p>Bootstrap's modal class exposes a few events for hooking into modal functionality. </p> <p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p>
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<thead> <thead>
<tr> <tr>
...@@ -344,7 +343,7 @@ $('#myModal').modal({ ...@@ -344,7 +343,7 @@ $('#myModal').modal({
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
$('#myModal').on('hidden', function () { $('#myModal').on('hidden', function () {
// do something ... // do something
})</pre> })</pre>
</div> </div>
</div> </div>
...@@ -472,9 +471,7 @@ $('#myModal').on('hidden', function () { ...@@ -472,9 +471,7 @@ $('#myModal').on('hidden', function () {
&lt;/ul&gt;</pre> &lt;/ul&gt;</pre>
<h3>Methods</h3> <h3>Methods</h3>
<h4>$().dropdown()</h4> <h4>$().dropdown()</h4>
<p> <p>A programatic api for activating menus for a given navbar or tabbed navigation.</p>
A programatic api for activating menus for a given navbar or tabbed navigation.
</p>
</div> </div>
</div> </div>
</section> </section>
...@@ -544,9 +541,9 @@ $('#myModal').on('hidden', function () { ...@@ -544,9 +541,9 @@ $('#myModal').on('hidden', function () {
<p>Call the scrollspy via javascript:</p> <p>Call the scrollspy via javascript:</p>
<pre class="prettyprint linenums">$('#navbar').scrollspy()</pre> <pre class="prettyprint linenums">$('#navbar').scrollspy()</pre>
<h3>Markup</h3> <h3>Markup</h3>
<p>To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body). <p>To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body).</p>
<pre class="prettyprint linenums">&lt;body data-spy="scroll" &gt;...&lt;/body&gt;</pre> <pre class="prettyprint linenums">&lt;body data-spy="scroll" &gt;...&lt;/body&gt;</pre>
<p><span class="label notice">Notice</span> Navbar anchor tags must have resolvable id targets. For example, a <code>&lt;a href="#home"&gt;home&lt;/a&gt;</code> must correspond to something in the dom like <code>&lt;div id="home"&gt;&lt;/div&gt;</code>. <p><span class="label notice">Notice</span> Navbar anchor tags must have resolvable id targets. For example, a <code>&lt;a href="#home"&gt;home&lt;/a&gt;</code> must correspond to something in the dom like <code>&lt;div id="home"&gt;&lt;/div&gt;</code>.</p>
<h3>Options</h3> <h3>Options</h3>
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<thead> <thead>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head> </head>
<body> <body>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head> </head>
<body> <body>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head> </head>
<body> <body>
......
This diff is collapsed.
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head> </head>
<body> <body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment