Permalink
Browse files

Added language ntoes to example and readme.

  • Loading branch information...
1 parent 0c7cf71 commit 09a8f649edd93298eda4e987ebffab7ead5d511b @Aupajo committed Mar 8, 2011
Showing with 22 additions and 10 deletions.
  1. +8 −2 README.textile
  2. +14 −8 example.html
View
@@ -25,7 +25,7 @@ h3. HTML Snippet
<pre>
<code>
You can format your text using
-<a href="textile-reference/index.html"
+<a href="textile-reference/en/index.html"
onclick="window.open(this.href,'textile_reference','height=400,width=600,scrollbars=1'); return false;">Textile</a>.
</code>
</pre>
@@ -35,10 +35,16 @@ h3. Rails Snippet
<pre>
<code>
You can format your text using
- <%= link_to 'Textile', 'textile-reference/index.html', :popup => ['textile_reference', 'height=400,width=600,scrollbars=1'] %>
+ <%= link_to 'Textile', 'textile-reference/en/index.html', :popup => ['textile_reference', 'height=400,width=600,scrollbars=1'] %>
</code>
</pre>
+h3. Language Support
+
+*English* and *German* are currently supported.
+
+Just change `textile-reference/*en*/index.html` to `textile-reference/*de*/index.html` (on most servers you can also drop the `index.html`).
+
h2. Reference Sections
The reference sections include:
View
@@ -37,6 +37,8 @@
code {
font: 0.9em Monaco, Courier, monospace;
+ background-color: #eef;
+ padding: 0.2em;
}
.example {
@@ -47,11 +49,6 @@
margin-bottom: 2em;
}
- .directory {
- background-color: #eef;
- padding: 0.2em;
- }
-
.tag {
color: #c00;
}
@@ -97,7 +94,7 @@
<h2>Example</h2>
<div class="example">
- You can format your text using <a href="textile-reference/index.html" onclick="window.open(this.href,'textile_reference','height=400,width=600,scrollbars=1');return false;">Textile</a>.
+ You can format your text using <a href="textile-reference/en/index.html" onclick="window.open(this.href,'textile_reference','height=400,width=600,scrollbars=1');return false;">Textile</a>.
</div>
<h2>Code Snippets</h2>
@@ -107,7 +104,7 @@
<code class="example">
You can format your text using<br />
<span class="tag">&lt;a
- <span class="attribute">href=</span><span class="value">"textile-reference/index.html"</span>
+ <span class="attribute">href=</span><span class="value">"textile-reference/en/index.html"</span>
<span class="attribute">onclick=</span><span class="value">"window.open(this.href,'textile_reference','height=400,width=600,scrollbars=1'); return false;"&gt;</span></span><span class="contents">Textile</span><span class="tag">&lt;/a&gt;</span>.
</code>
@@ -116,13 +113,22 @@
<code class="example">
You can format your text using<br />
<span class="tag">&lt;%= link_to <span class="attribute">'Textile'</span>,
- <span class="attribute">'textile-reference/index.html'</span>,
+ <span class="attribute">'textile-reference/en/index.html'</span>,
<span class="attribute">:popup =&gt;</span>
[<span class="value">'textile_reference'</span>,
<span class="value">'height=400,width=600,scrollbars=1'</span>]
%&gt;</span>
</code>
+ <h3>Language Support</h3>
+
+ <p>
+ The reference includes support for <strong>English</strong> and <strong>German</strong>.
+ Just change
+ <code>textile-reference/<strong>en</strong>/index.html</code> to
+ <code>textile-reference/<strong>de</strong>/index.html</code> (on most servers you also can drop the <code>index.html</code> part).
+ </p>
+
<p id="shameless">
Want to help out? Check out the <a href="http://github.com/Aupajo/human-textile-reference/tree/master">repository on GitHub</a>!
</p>

0 comments on commit 09a8f64

Please sign in to comment.