Commits

Shlomi Fish committed 0f02b31

[XSLT Facts] Start translating to Hebrew.

1. Extract common functionality into the lib/jqui_tabs.wml include.

2. Implement that in humour/bits/facts/XSLT.

3. Start translate some facts.

  • Participants
  • Parent commits efea978

Comments (0)

Files changed (3)

File lib/jqui_tabs.wml

+<page_extra_head_elements>
+<script type="text/javascript" src="$(ROOT)/js/jquery-ui-1.9.2.custom.min.js"></script>
+<script type="text/javascript" src="$(ROOT)/js/jquery.querystring.js"></script>
+<link rel="stylesheet" type="text/css" href="$(ROOT)/css/redmond/jquery-ui-1.9.2.custom.min.css" media="screen, projection" />
+<link rel="stylesheet" type="text/css" href="$(ROOT)/jqui-override.css" media="screen, projection" />
+<script type="text/javascript">
+$(function() {
+    $(".tabs").tabs();
+});
+</script>
+
+</page_extra_head_elements>
+

File t2/humour/bits/facts/Chuck-Norris/index.html.wml

 #include '../template.wml'
+#include "jqui_tabs.wml"
 
 <latemp_subject "Chuck Norris Facts" />
 
-<page_extra_head_elements>
-<script type="text/javascript" src="$(ROOT)/js/jquery-ui-1.9.2.custom.min.js"></script>
-<script type="text/javascript" src="$(ROOT)/js/jquery.querystring.js"></script>
-<link rel="stylesheet" type="text/css" href="$(ROOT)/css/redmond/jquery-ui-1.9.2.custom.min.css" media="screen, projection" />
-<link rel="stylesheet" type="text/css" href="$(ROOT)/jqui-override.css" media="screen, projection" />
-</page_extra_head_elements>
-
 <p>
 These are additions to <a href="http://www.chucknorrisfacts.com/">the
 Chuck Norris facts</a> by my Internet friends and by me. Most of them are kinda
 
 <h2 id="facts">Chuck Norris Facts</h2>
 
-<script type="text/javascript">
-$(function() {
-    $(".tabs").tabs();
-});
-</script>
-
 <div class="tabs">
 
 <ul>
 </ul>
 </div>
 
-</div>
+</div> ;;; end of .tabs
 
 <h2 id="license">Copyright and Licence</h2>
 

File t2/humour/bits/facts/XSLT/index.html.wml

 #include '../template.wml'
+#include "jqui_tabs.wml"
 
 <latemp_subject "XSLT Facts" />
 
 
 <h2 id="facts">XSLT Facts</h2>
 
+<div class="tabs">
+
+<ul>
+<li><a href="#xslt_facts_en">English</a></li>
+<li><a href="#xslt_facts_he">Hebrew (עברית)</a></li>
+</ul>
+
+<div id="xslt_facts_en">
+
 <ul>
 
 <li>
 
 </ul>
 
+</div>
+
+<div id="xslt_facts_he" class="hebrew">
+
+<ul>
+
+<li>
+XSLT הוא הדבר הגרוע ביותר מאז הלחם שלא נפרס מראש.
+</li>
+
+<li>
+אמהות נהגו לספר לילדיהן סיפורים על אודות XSLT כדי להפחיד אותם.
+</li>
+
+<li>
+XSLT הוא הגורם מספר אחת להתאבדויות של מתכנתים מאז ויז'ואל בייסיק 1.0.
+</li>
+
+</ul>
+</div>
+
+</div> ;;; end of .tabs
+
 <h2 id="license">Copyright and Licence</h2>
 
 <cc_by_sa_british_blurb year="2009" />