babelphish 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/LICENSE +1 -1
- data/README.rdoc +91 -1
- data/Rakefile +17 -31
- data/VERSION +1 -0
- data/babelphish.gemspec +268 -0
- data/bin/babelphish +1 -0
- data/config/website.yml +2 -0
- data/doc/classes/Babelphish.html +206 -0
- data/doc/classes/Babelphish/Exceptions.html +111 -0
- data/doc/classes/Babelphish/Exceptions/GoogleResponseError.html +111 -0
- data/doc/classes/Babelphish/GoogleTranslate.html +565 -0
- data/doc/classes/Babelphish/HtmlTranslator.html +335 -0
- data/doc/classes/Babelphish/Translator.html +311 -0
- data/doc/classes/Babelphish/YmlTranslator.html +402 -0
- data/doc/created.rid +1 -0
- data/doc/files/History_txt.html +110 -0
- data/doc/files/PostInstall_txt.html +108 -0
- data/doc/files/README_rdoc.html +255 -0
- data/doc/files/bin/babelphish.html +109 -0
- data/doc/files/lib/babelphish/exceptions_rb.html +101 -0
- data/doc/files/lib/babelphish/html_translator_rb.html +101 -0
- data/doc/files/lib/babelphish/languages_rb.html +108 -0
- data/doc/files/lib/babelphish/translator_rb.html +101 -0
- data/doc/files/lib/babelphish/yml_translator_rb.html +101 -0
- data/doc/files/lib/babelphish_rb.html +113 -0
- data/doc/files/lib/tasks/babelphish_rake.html +147 -0
- data/doc/fr_class_index.html +33 -0
- data/doc/fr_file_index.html +37 -0
- data/doc/fr_method_index.html +43 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/babelphish.rb +1 -1
- data/lib/babelphish/html_translator.rb +6 -0
- data/lib/babelphish/translator.rb +8 -4
- data/lib/babelphish/yml_translator.rb +23 -14
- data/lib/tasks/babelphish.rake +25 -12
- data/script/txt2html +71 -0
- data/test/html_translations/test.ar.html.erb +4 -0
- data/test/html_translations/test.bg.html.erb +4 -0
- data/test/html_translations/test.ca.html.erb +4 -0
- data/test/html_translations/test.cs.html.erb +4 -0
- data/test/html_translations/test.da.html.erb +4 -0
- data/test/html_translations/test.de.html.erb +4 -0
- data/test/html_translations/test.el.html.erb +4 -0
- data/test/html_translations/test.es.html.erb +4 -0
- data/test/html_translations/test.et.html.erb +4 -0
- data/test/html_translations/test.fa.html.erb +4 -0
- data/test/html_translations/test.fi.html.erb +4 -0
- data/test/html_translations/test.fr.html.erb +4 -0
- data/test/html_translations/test.gl.html.erb +4 -0
- data/test/html_translations/test.hi.html.erb +4 -0
- data/test/html_translations/test.hr.html.erb +4 -0
- data/test/html_translations/test.html.erb +4 -0
- data/test/html_translations/test.hu.html.erb +4 -0
- data/test/html_translations/test.id.html.erb +4 -0
- data/test/html_translations/test.it.html.erb +4 -0
- data/test/html_translations/test.iw.html.erb +4 -0
- data/test/html_translations/test.ja.html.erb +4 -0
- data/test/html_translations/test.ko.html.erb +4 -0
- data/test/html_translations/test.lt.html.erb +4 -0
- data/test/html_translations/test.lv.html.erb +4 -0
- data/test/html_translations/test.mt.html.erb +4 -0
- data/test/html_translations/test.nl.html.erb +4 -0
- data/test/html_translations/test.no.html.erb +4 -0
- data/test/html_translations/test.pl.html.erb +4 -0
- data/test/html_translations/test.pt-PT.html.erb +4 -0
- data/test/html_translations/test.ro.html.erb +4 -0
- data/test/html_translations/test.ru.html.erb +4 -0
- data/test/html_translations/test.sk.html.erb +4 -0
- data/test/html_translations/test.sl.html.erb +4 -0
- data/test/html_translations/test.sq.html.erb +4 -0
- data/test/html_translations/test.sr.html.erb +4 -0
- data/test/html_translations/test.sv.html.erb +4 -0
- data/test/html_translations/test.text.ar.html.erb +5 -0
- data/test/html_translations/test.text.ar.plain.erb +8 -0
- data/test/html_translations/test.text.bg.html.erb +5 -0
- data/test/html_translations/test.text.bg.plain.erb +8 -0
- data/test/html_translations/test.text.ca.html.erb +5 -0
- data/test/html_translations/test.text.ca.plain.erb +8 -0
- data/test/html_translations/test.text.cs.html.erb +5 -0
- data/test/html_translations/test.text.cs.plain.erb +8 -0
- data/test/html_translations/test.text.da.html.erb +5 -0
- data/test/html_translations/test.text.da.plain.erb +8 -0
- data/test/html_translations/test.text.de.html.erb +5 -0
- data/test/html_translations/test.text.de.plain.erb +8 -0
- data/test/html_translations/test.text.el.html.erb +5 -0
- data/test/html_translations/test.text.el.plain.erb +8 -0
- data/test/html_translations/test.text.es.html.erb +5 -0
- data/test/html_translations/test.text.es.plain.erb +8 -0
- data/test/html_translations/test.text.et.html.erb +5 -0
- data/test/html_translations/test.text.et.plain.erb +8 -0
- data/test/html_translations/test.text.fa.html.erb +5 -0
- data/test/html_translations/test.text.fa.plain.erb +8 -0
- data/test/html_translations/test.text.fi.html.erb +5 -0
- data/test/html_translations/test.text.fi.plain.erb +8 -0
- data/test/html_translations/test.text.fr.html.erb +5 -0
- data/test/html_translations/test.text.fr.plain.erb +8 -0
- data/test/html_translations/test.text.gl.html.erb +5 -0
- data/test/html_translations/test.text.gl.plain.erb +8 -0
- data/test/html_translations/test.text.hi.html.erb +5 -0
- data/test/html_translations/test.text.hi.plain.erb +8 -0
- data/test/html_translations/test.text.hr.html.erb +5 -0
- data/test/html_translations/test.text.hr.plain.erb +8 -0
- data/test/html_translations/test.text.html.erb +5 -0
- data/test/html_translations/test.text.hu.html.erb +5 -0
- data/test/html_translations/test.text.hu.plain.erb +8 -0
- data/test/html_translations/test.text.id.html.erb +5 -0
- data/test/html_translations/test.text.id.plain.erb +8 -0
- data/test/html_translations/test.text.it.html.erb +5 -0
- data/test/html_translations/test.text.it.plain.erb +8 -0
- data/test/html_translations/test.text.iw.html.erb +5 -0
- data/test/html_translations/test.text.iw.plain.erb +8 -0
- data/test/html_translations/test.text.ja.html.erb +5 -0
- data/test/html_translations/test.text.ja.plain.erb +8 -0
- data/test/html_translations/test.text.ko.html.erb +5 -0
- data/test/html_translations/test.text.ko.plain.erb +8 -0
- data/test/html_translations/test.text.lt.html.erb +5 -0
- data/test/html_translations/test.text.lt.plain.erb +8 -0
- data/test/html_translations/test.text.lv.html.erb +5 -0
- data/test/html_translations/test.text.lv.plain.erb +8 -0
- data/test/html_translations/test.text.mt.html.erb +5 -0
- data/test/html_translations/test.text.mt.plain.erb +8 -0
- data/test/html_translations/test.text.nl.html.erb +5 -0
- data/test/html_translations/test.text.nl.plain.erb +8 -0
- data/test/html_translations/test.text.no.html.erb +5 -0
- data/test/html_translations/test.text.no.plain.erb +8 -0
- data/test/html_translations/test.text.pl.html.erb +5 -0
- data/test/html_translations/test.text.pl.plain.erb +8 -0
- data/test/html_translations/test.text.plain.erb +8 -0
- data/test/html_translations/test.text.pt-PT.html.erb +5 -0
- data/test/html_translations/test.text.pt-PT.plain.erb +8 -0
- data/test/html_translations/test.text.ro.html.erb +5 -0
- data/test/html_translations/test.text.ro.plain.erb +8 -0
- data/test/html_translations/test.text.ru.html.erb +5 -0
- data/test/html_translations/test.text.ru.plain.erb +8 -0
- data/test/html_translations/test.text.sk.html.erb +5 -0
- data/test/html_translations/test.text.sk.plain.erb +8 -0
- data/test/html_translations/test.text.sl.html.erb +5 -0
- data/test/html_translations/test.text.sl.plain.erb +8 -0
- data/test/html_translations/test.text.sq.html.erb +5 -0
- data/test/html_translations/test.text.sq.plain.erb +8 -0
- data/test/html_translations/test.text.sr.html.erb +5 -0
- data/test/html_translations/test.text.sr.plain.erb +8 -0
- data/test/html_translations/test.text.sv.html.erb +5 -0
- data/test/html_translations/test.text.sv.plain.erb +8 -0
- data/test/html_translations/test.text.th.html.erb +5 -0
- data/test/html_translations/test.text.th.plain.erb +8 -0
- data/test/html_translations/test.text.tl.html.erb +5 -0
- data/test/html_translations/test.text.tl.plain.erb +8 -0
- data/test/html_translations/test.text.tr.html.erb +5 -0
- data/test/html_translations/test.text.tr.plain.erb +8 -0
- data/test/html_translations/test.text.uk.html.erb +5 -0
- data/test/html_translations/test.text.uk.plain.erb +8 -0
- data/test/html_translations/test.text.vi.html.erb +5 -0
- data/test/html_translations/test.text.vi.plain.erb +8 -0
- data/test/html_translations/test.text.zh-CN.html.erb +5 -0
- data/test/html_translations/test.text.zh-CN.plain.erb +8 -0
- data/test/html_translations/test.text.zh-TW.html.erb +5 -0
- data/test/html_translations/test.text.zh-TW.plain.erb +8 -0
- data/test/html_translations/test.text.zh.html.erb +5 -0
- data/test/html_translations/test.text.zh.plain.erb +8 -0
- data/test/html_translations/test.th.html.erb +4 -0
- data/test/html_translations/test.tl.html.erb +4 -0
- data/test/html_translations/test.tr.html.erb +4 -0
- data/test/html_translations/test.uk.html.erb +4 -0
- data/test/html_translations/test.vi.html.erb +4 -0
- data/test/html_translations/test.zh-CN.html.erb +4 -0
- data/test/html_translations/test.zh-TW.html.erb +4 -0
- data/test/html_translations/test.zh.html.erb +4 -0
- data/test/test_yml_translator.rb +3 -2
- data/test/translations/ar.yml +7 -0
- data/test/translations/bg.yml +7 -0
- data/test/translations/ca.yml +7 -0
- data/test/translations/cs.yml +7 -0
- data/test/translations/da.yml +7 -0
- data/test/translations/de.yml +7 -0
- data/test/translations/el.yml +7 -0
- data/test/translations/en.yml +6 -0
- data/test/translations/es.yml +7 -0
- data/test/translations/et.yml +7 -0
- data/test/translations/fa.yml +7 -0
- data/test/translations/fi.yml +7 -0
- data/test/translations/fr.yml +7 -0
- data/test/translations/gl.yml +7 -0
- data/test/translations/hi.yml +7 -0
- data/test/translations/hr.yml +7 -0
- data/test/translations/hu.yml +7 -0
- data/test/translations/id.yml +7 -0
- data/test/translations/it.yml +7 -0
- data/test/translations/iw.yml +7 -0
- data/test/translations/ja.yml +7 -0
- data/test/translations/ko.yml +7 -0
- data/test/translations/lt.yml +7 -0
- data/test/translations/lv.yml +7 -0
- data/test/translations/mt.yml +7 -0
- data/test/translations/nl.yml +7 -0
- data/test/translations/no.yml +8 -0
- data/test/translations/pl.yml +7 -0
- data/test/translations/pt-PT.yml +7 -0
- data/test/translations/ro.yml +7 -0
- data/test/translations/ru.yml +7 -0
- data/test/translations/sk.yml +7 -0
- data/test/translations/sl.yml +7 -0
- data/test/translations/sq.yml +7 -0
- data/test/translations/sr.yml +7 -0
- data/test/translations/sv.yml +7 -0
- data/test/translations/th.yml +7 -0
- data/test/translations/tl.yml +7 -0
- data/test/translations/tr.yml +7 -0
- data/test/translations/uk.yml +7 -0
- data/test/translations/vi.yml +7 -0
- data/test/translations/zh-CN.yml +7 -0
- data/test/translations/zh-TW.yml +7 -0
- data/test/translations/zh.yml +7 -0
- metadata +222 -49
- data/History.txt +0 -3
- data/Manifest.txt +0 -19
- data/PostInstall.txt +0 -2
@@ -0,0 +1,108 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: PostInstall.txt</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>PostInstall.txt</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>PostInstall.txt
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Mon May 18 23:39:10 -0600 2009</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<p>
|
73
|
+
For more information on babelphish, see <a
|
74
|
+
href="http://babelphish.rubyforge.org">babelphish.rubyforge.org</a>
|
75
|
+
</p>
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
<!-- if includes -->
|
87
|
+
|
88
|
+
<div id="section">
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if method_list -->
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
<div id="validator-badges">
|
104
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|
@@ -0,0 +1,255 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: README.rdoc</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>README.rdoc</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>README.rdoc
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Sat Aug 15 10:43:17 -0600 2009</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<h1>babelphish</h1>
|
73
|
+
<ul>
|
74
|
+
<li><a
|
75
|
+
href="http://github.com/jbasdf/babelphish">github.com/jbasdf/babelphish</a>
|
76
|
+
|
77
|
+
</li>
|
78
|
+
</ul>
|
79
|
+
<h2>DESCRIPTION:</h2>
|
80
|
+
<p>
|
81
|
+
babelphish makes it simple to translate you yaml files into all the
|
82
|
+
languages supported by Google Translate
|
83
|
+
</p>
|
84
|
+
<h2>USAGE:</h2>
|
85
|
+
<p>
|
86
|
+
Translate the en.yml file into all supported languages:
|
87
|
+
</p>
|
88
|
+
<pre>
|
89
|
+
babelphish -y ./my/locales/en.yml
|
90
|
+
</pre>
|
91
|
+
<p>
|
92
|
+
Translate the en.yml file into all supported languages and overwrite other
|
93
|
+
yml files:
|
94
|
+
</p>
|
95
|
+
<pre>
|
96
|
+
babelphish -y ./my/locales/en.yml -o
|
97
|
+
</pre>
|
98
|
+
<h3>Using in your application</h3>
|
99
|
+
<p>
|
100
|
+
<a href="../classes/Babelphish.html">Babelphish</a> can be used to
|
101
|
+
translate content programmatically within your application. Use it thus:
|
102
|
+
</p>
|
103
|
+
<p>
|
104
|
+
Translate content into a single language:
|
105
|
+
</p>
|
106
|
+
<pre>
|
107
|
+
from = 'en'
|
108
|
+
to = 'es'
|
109
|
+
translation = Babelphish::Translator.translate('hello world', to, from)
|
110
|
+
</pre>
|
111
|
+
<p>
|
112
|
+
Translate content into all supported languages at once. This will return a
|
113
|
+
hash table with the locale as keys (ie ‘en’, ‘es’,
|
114
|
+
etc).
|
115
|
+
</p>
|
116
|
+
<pre>
|
117
|
+
translations = Babelphish::Translator.multiple_translate('hello world', Babelphish::GoogleTranslate::LANGUAGES, self.locale)
|
118
|
+
</pre>
|
119
|
+
<p>
|
120
|
+
Here‘s a more extensive example
|
121
|
+
</p>
|
122
|
+
<pre>
|
123
|
+
# Translate title and body using Google
|
124
|
+
def translate()
|
125
|
+
translate_from_locale = 'en'
|
126
|
+
title_translations = Babelphish::Translator.multiple_translate(self.title, Babelphish::GoogleTranslate::LANGUAGES, translate_from_locale)
|
127
|
+
body_translations = Babelphish::Translator.multiple_translate(self.body, Babelphish::GoogleTranslate::LANGUAGES, translate_from_locale)
|
128
|
+
|
129
|
+
Babelphish::GoogleTranslate::LANGUAGES.each do |language|
|
130
|
+
self.content_translations.create!(:title => title_translations[language],
|
131
|
+
:body => body_translations[language],
|
132
|
+
:locale => language)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
</pre>
|
137
|
+
<h2>INSTALL:</h2>
|
138
|
+
<p>
|
139
|
+
ya2yaml should be automatically installed when you install babelphish, but
|
140
|
+
is isn‘t:
|
141
|
+
</p>
|
142
|
+
<ul>
|
143
|
+
<li>sudo gem install ya2yaml
|
144
|
+
|
145
|
+
</li>
|
146
|
+
<li>sudo gem install babelphish
|
147
|
+
|
148
|
+
</li>
|
149
|
+
</ul>
|
150
|
+
<h2>Related Blog Posts</h2>
|
151
|
+
<p>
|
152
|
+
<a
|
153
|
+
href="http://www.justinball.com/2009/05/19/babelphish-yml-translation-made-simple">www.justinball.com/2009/05/19/babelphish-yml-translation-made-simple</a>/
|
154
|
+
</p>
|
155
|
+
<h2>Language Codes:</h2>
|
156
|
+
<p>
|
157
|
+
AFRIKAANS = ‘af’ ALBANIAN = ‘sq’ AMHARIC =
|
158
|
+
‘am’ ARABIC = ‘ar’ ARMENIAN = ‘hy’
|
159
|
+
AZERBAIJANI = ‘az’ BASQUE = ‘eu’ BELARUSIAN =
|
160
|
+
‘be’ BENGALI = ‘bn’ BIHARI = ‘bh’
|
161
|
+
BULGARIAN = ‘bg’ BURMESE = ‘my’ CATALAN =
|
162
|
+
‘ca’ CHEROKEE = ‘chr’ CHINESE = ‘zh’
|
163
|
+
CHINESE_SIMPLIFIED = ‘zh-CN’ CHINESE_TRADITIONAL =
|
164
|
+
‘zh-TW’ CROATIAN = ‘hr’ CZECH = ‘cs’
|
165
|
+
DANISH = ‘da’ DHIVEHI = ‘dv’ DUTCH =
|
166
|
+
‘nl’ ENGLISH = ‘en’ ESPERANTO = ‘eo’
|
167
|
+
ESTONIAN = ‘et’ FILIPINO = ‘tl’ FINNISH =
|
168
|
+
‘fi’ FRENCH = ‘fr’ GALICIAN = ‘gl’
|
169
|
+
GEORGIAN = ‘ka’ GERMAN = ‘de’ GREEK =
|
170
|
+
‘el’ GUARANI = ‘gn’ GUJARATI = ‘gu’
|
171
|
+
HEBREW = ‘iw’ HINDI = ‘hi’ HUNGARIAN =
|
172
|
+
‘hu’ ICELANDIC = ‘is’ INDONESIAN = ‘id’
|
173
|
+
INUKTITUT = ‘iu’ ITALIAN = ‘it’ JAPANESE =
|
174
|
+
‘ja’ KANNADA = ‘kn’ KAZAKH = ‘kk’ KHMER
|
175
|
+
= ‘km’ KOREAN = ‘ko’ KURDISH = ‘ku’
|
176
|
+
KYRGYZ = ‘ky’ LAOTHIAN = ‘lo’ LATVIAN =
|
177
|
+
‘lv’ LITHUANIAN = ‘lt’ MACEDONIAN =
|
178
|
+
‘mk’ MALAY = ‘ms’ MALAYALAM = ‘ml’
|
179
|
+
MALTESE = ‘mt’ MARATHI = ‘mr’ MONGOLIAN =
|
180
|
+
‘mn’ NEPALI = ‘ne’ NORWEGIAN = ‘no’
|
181
|
+
ORIYA = ‘or’ PASHTO = ‘ps’ PERSIAN =
|
182
|
+
‘fa’ POLISH = ‘pl’ PORTUGUESE = ‘pt-PT’
|
183
|
+
PUNJABI = ‘pa’ ROMANIAN = ‘ro’ RUSSIAN =
|
184
|
+
‘ru’ SANSKRIT = ‘sa’ SERBIAN = ‘sr’
|
185
|
+
SINDHI = ‘sd’ SINHALESE = ‘si’ SLOVAK =
|
186
|
+
‘sk’ SLOVENIAN = ‘sl’ SPANISH = ‘es’
|
187
|
+
SWAHILI = ‘sw’ SWEDISH = ‘sv’ TAJIK =
|
188
|
+
‘tg’ TAMIL = ‘ta’ TAGALOG = ‘tl’ TELUGU
|
189
|
+
= ‘te’ THAI = ‘th’ TIBETAN = ‘bo’
|
190
|
+
TURKISH = ‘tr’ UKRAINIAN = ‘uk’ URDU =
|
191
|
+
‘ur’ UZBEK = ‘uz’ UIGHUR = ‘ug’
|
192
|
+
VIETNAMESE = ‘vi‘
|
193
|
+
</p>
|
194
|
+
<h2>LICENSE:</h2>
|
195
|
+
<p>
|
196
|
+
(The MIT License)
|
197
|
+
</p>
|
198
|
+
<p>
|
199
|
+
Copyright (c) 2009 Justin Ball
|
200
|
+
</p>
|
201
|
+
<p>
|
202
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
203
|
+
copy of this software and associated documentation files (the
|
204
|
+
‘Software’), to deal in the Software without restriction,
|
205
|
+
including without limitation the rights to use, copy, modify, merge,
|
206
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
207
|
+
permit persons to whom the Software is furnished to do so, subject to the
|
208
|
+
following conditions:
|
209
|
+
</p>
|
210
|
+
<p>
|
211
|
+
The above copyright notice and this permission notice shall be included in
|
212
|
+
all copies or substantial portions of the Software.
|
213
|
+
</p>
|
214
|
+
<p>
|
215
|
+
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND,
|
216
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
217
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
218
|
+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
219
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
220
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
221
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
222
|
+
</p>
|
223
|
+
|
224
|
+
</div>
|
225
|
+
|
226
|
+
|
227
|
+
</div>
|
228
|
+
|
229
|
+
|
230
|
+
</div>
|
231
|
+
|
232
|
+
|
233
|
+
<!-- if includes -->
|
234
|
+
|
235
|
+
<div id="section">
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
<!-- if method_list -->
|
245
|
+
|
246
|
+
|
247
|
+
</div>
|
248
|
+
|
249
|
+
|
250
|
+
<div id="validator-badges">
|
251
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
252
|
+
</div>
|
253
|
+
|
254
|
+
</body>
|
255
|
+
</html>
|
@@ -0,0 +1,109 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: babelphish</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>babelphish</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>bin/babelphish
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Sat Aug 15 10:47:08 -0600 2009</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
<div id="requires-list">
|
73
|
+
<h3 class="section-bar">Required files</h3>
|
74
|
+
|
75
|
+
<div class="name-list">
|
76
|
+
optparse
|
77
|
+
babelphish
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
|
87
|
+
<!-- if includes -->
|
88
|
+
|
89
|
+
<div id="section">
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<!-- if method_list -->
|
99
|
+
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
|
104
|
+
<div id="validator-badges">
|
105
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
106
|
+
</div>
|
107
|
+
|
108
|
+
</body>
|
109
|
+
</html>
|