Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding tinymce

Signed-off-by: kosmas58 <kosmas.schuetz@gmx.com>
  • Loading branch information...
commit ed56b3ce56f7bc6e25a6a6dc246658ef7ff2174e 1 parent 8418ffd
@kosmas58 authored
Showing with 436 additions and 15,971 deletions.
  1. +16 −1 README.md
  2. +4 −0 app/controllers/widgets/tiny_mce_controller.rb
  3. +6 −2 app/views/layouts/ribbon.html.haml
  4. +6 −2 app/views/layouts/tiny_mce.html.haml
  5. +4 −0 app/views/welcome/hello.html.haml
  6. +8 −15 app/views/widgets/tiny_mce/_default.js.haml
  7. +1 −1  app/views/widgets/tiny_mce/_license.html.haml
  8. +25 −27 app/views/widgets/tiny_mce/default.html.haml
  9. +0 −1  config/initializers/tiny_mce.rb
  10. +90 −90 config/locales/de.yml
  11. +1 −1  config/locales/en.yml
  12. +1 −2  config/locales/log/from_en_to_de.yml
  13. +2 −1  config/routes.rb
  14. +4 −804 db/seeds.rb
  15. 0  lib/{ → tiny_mce}/gzip_action_cache.rb
  16. 0  lib/{ → tiny_mce}/tiny_mce_gzip_controller.rb
  17. 0  lib/{ → tiny_mce}/tiny_mce_gzip_routes.rb
  18. +1 −1  public/javascripts/tiny_mce/plugins/advhr/rule.htm
  19. +27 −27 public/javascripts/tiny_mce/plugins/advimage/image.htm
  20. +0 −3  public/javascripts/tiny_mce/plugins/advlink/js/advlink.js
  21. +1 −1  public/javascripts/tiny_mce/plugins/advlink/link.htm
  22. +1 −1  public/javascripts/tiny_mce/plugins/example/dialog.htm
  23. +4 −4 public/javascripts/tiny_mce/plugins/fullpage/fullpage.htm
  24. +1 −1  public/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js
  25. +10 −2 public/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js
  26. +0 −10 public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css
  27. +111 −111 public/javascripts/tiny_mce/plugins/inlinepopups/template.htm
  28. +1 −1  public/javascripts/tiny_mce/plugins/media/media.htm
  29. +1 −1  public/javascripts/tiny_mce/plugins/paste/editor_plugin.js
  30. +2 −3 public/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js
  31. +1 −1  public/javascripts/tiny_mce/plugins/paste/pastetext.htm
  32. +1 −1  public/javascripts/tiny_mce/plugins/paste/pasteword.htm
  33. +2 −4 public/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js
  34. +1 −1  public/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm
  35. +1 −1  public/javascripts/tiny_mce/plugins/style/props.htm
  36. +1 −1  public/javascripts/tiny_mce/plugins/table/cell.htm
  37. +9 −11 public/javascripts/tiny_mce/plugins/table/js/cell.js
  38. +13 −18 public/javascripts/tiny_mce/plugins/table/js/row.js
  39. +0 −4 public/javascripts/tiny_mce/plugins/table/js/table.js
  40. +1 −1  public/javascripts/tiny_mce/plugins/table/merge_cells.htm
  41. +1 −1  public/javascripts/tiny_mce/plugins/table/row.htm
  42. +1 −1  public/javascripts/tiny_mce/plugins/table/table.htm
  43. +1 −1  public/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm
  44. +1 −1  public/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm
  45. +1 −1  public/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm
  46. +1 −1  public/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm
  47. +1 −1  public/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm
  48. +1 −1  public/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm
  49. +0 −1  public/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js
  50. +2 −2 public/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js
  51. +0 −2  public/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js
  52. +4 −3 public/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js
  53. +1 −1  public/javascripts/tiny_mce/themes/advanced/anchor.htm
  54. +2 −2 public/javascripts/tiny_mce/themes/advanced/color_picker.htm
  55. +1 −1  public/javascripts/tiny_mce/themes/advanced/editor_template.js
  56. +4 −8 public/javascripts/tiny_mce/themes/advanced/editor_template_src.js
  57. +1 −1  public/javascripts/tiny_mce/themes/advanced/image.htm
  58. +43 −2 public/javascripts/tiny_mce/themes/advanced/js/color_picker.js
  59. +0 −3  public/javascripts/tiny_mce/themes/advanced/js/link.js
  60. +1 −1  public/javascripts/tiny_mce/themes/advanced/link.htm
  61. +1 −1  public/javascripts/tiny_mce/themes/advanced/skins/default/ui.css
  62. +6 −8 public/javascripts/tiny_mce/themes/advanced/skins/highcontrast/dialog.css
  63. +1 −1  public/javascripts/tiny_mce/themes/advanced/skins/highcontrast/ui.css
  64. +1 −1  public/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css
  65. +1 −1  public/javascripts/tiny_mce/themes/advanced/source_editor.htm
  66. +1 −1  public/javascripts/tiny_mce/tiny_mce.js
  67. +0 −137 public/javascripts/tiny_mce/tiny_mce_gzip.js
  68. +0 −14,630 public/javascripts/tiny_mce/tiny_mce_src.js
View
17 README.md
@@ -18,7 +18,7 @@ A Sass-based Meta-Framework for Compass that allows you to mix and match any of
* jquery.dynatree.js V1.0.2
* jquery.ribbon.js
* jquery.jqGrid.js V3.8.2 (with minor changes to make it RESTful)
-
+* jquery.tinymce.js V3.4
and for mobile devices <i>(using pure haml/sass without compass)</i>:
* jquery.mobile.js 1.0a3
@@ -168,6 +168,19 @@ To use the stylesheets and javacripts include:
= stylesheet_link_tag :ical, :media => 'screen, projection'
= javascript_include_tag :ical</pre>
+
+jQuery TinyMCE Plugin
+--------------------
+
+Use compass to install the jQuery TinyMCE Editor Javascript WYSIWYG Editor into your project.
+
+<pre>compass install [-r jquery] jquery/tiny_mce <project name></pre>
+
+To use the javascripts include:
+
+<pre>
+= javascript_include_tag :tiny_mce</pre>
+
Graphics
--------
@@ -280,6 +293,7 @@ jQuery Plugins included:
* Andrew M Andrews III for [Any+Time][29]
* Steven Wittens for [Farbtastic Colorpicker plugin][30]
* Adam Shaw for [FullCalendar][31]
+* Moxiecode Systems AB for [TinyMCE][40]
Other stuff included:
---------------------
@@ -343,3 +357,4 @@ Copyright &copy; 2009-2011 Kosmas Schuetz. See LICENSE for details.
[37]: http://github.com/cowboy/jquery-dotimeout
[38]: http://github.com/gamache/DSt
[39]: http://github.com/thegrubbsian/jquery.ganttView
+ [40]: http://tinymce.moxiecode.com/
View
4 app/controllers/widgets/tiny_mce_controller.rb
@@ -2,4 +2,8 @@ class Widgets::TinyMceController < ApplicationController
layout 'tiny_mce'
protect_from_forgery
+
+ def dump
+ puts "wiili"
+ end
end
View
8 app/views/layouts/ribbon.html.haml
@@ -30,5 +30,9 @@
= yield :content_head
%body{body_attributes}
- = yield
- = render :partial => "widgets/ribbon/license"
+ #content
+ #flash_messages
+ %span
+ = raw flash_messages
+ = yield
+ = render :partial => "widgets/ribbon/license"
View
8 app/views/layouts/tiny_mce.html.haml
@@ -34,5 +34,9 @@
= yield :content_head
%body{body_attributes}
- = yield
- = render :partial => "widgets/tiny_mce/license"
+ #content
+ #flash_messages
+ %span
+ = raw flash_messages
+ = yield
+ = render :partial => "widgets/tiny_mce/license"
View
4 app/views/welcome/hello.html.haml
@@ -55,6 +55,10 @@
%li
= link_to raw("<b>FullCalendar</b>"), "http://arshaw.com/fullcalendar/", :class=> :greybox
%br
+ %li
+ %p
+ TinyMCE Javascript WYSIWYG Editor plugin
+ = link_to raw("<b>jquery.tinymce.js</b>"), "http://tinymce.moxiecode.com/index.php", :class=> :greybox
%li
%p
%b
View
23 app/views/widgets/tiny_mce/_default.js.haml
@@ -1,18 +1,4 @@
:css
- .tinymce {
- background-color: #FFFFFF;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 10px;
- scrollbar-3dlight-color: #F0F0EE;
- scrollbar-arrow-color: #676662;
- scrollbar-base-color: #F0F0EE;
- scrollbar-darkshadow-color: #DDDDDD;
- scrollbar-face-color: #E0E0DD;
- scrollbar-highlight-color: #F0F0EE;
- scrollbar-shadow-color: #F0F0EE;
- scrollbar-track-color: #F5F5F5;
- }
-
.tinymce td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
@@ -105,7 +91,14 @@
text-align: inherit;
}
+ .toolbar { padding: 0.3em; }
+ .toolbar .ui-button{ font-size: 0.8em; }
+
:javascript
+ $(function() {
+ $("a, input", ".toolbar").button();
+ });
+
$().ready(function() {
$('textarea.tinymce').tinymce({
// Location of TinyMCE script
@@ -126,7 +119,7 @@
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
- content_css : "css/content.css",
+ //content_css : "css/content.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "lists/template_list.js",
View
2  app/views/widgets/tiny_mce/_license.html.haml
@@ -1,6 +1,6 @@
%br
%p
The TinyMCE is released under the
- %a{ :href => "http://tinymce.moxiecode.com/js/tinymce/jscripts/tiny_mce/license.txt", :class => :greybox }
+ %a{ :href => "http://tinymce.moxiecode.com/js/tinymce/jscripts/tiny_mce/license.txt"}
GNU LGPL Version 2.1
View
52 app/views/widgets/tiny_mce/default.html.haml
@@ -5,36 +5,34 @@
.demo
%h3
- =image_tag("icons/22x22/alarmclock.png", :border => 0)
+ =image_tag("icons/22x22/editor.png", :border => 0)
=raw @title
-
+ %p
+ This example shows how TinyMCE can be lazy loaded using jQuery. The jQuery plugin will also attach it's self to various jQuery methods to make it more easy to get/set editor contents etc.
+ .toolbar.ui-widget-header.ui-corner-all
+ %a{:href => "javascript:;", :onmousedown => "$('#elm1').tinymce().show();"} Show
+ %a{:href => "javascript:;", :onmousedown => "$('#elm1').tinymce().hide();"} Hide
+ %a{:href => "javascript:;", :onmousedown => "$('#elm1').tinymce().execCommand('Bold');"} Bold
+ %a{:href => "javascript:;", :onmousedown => "alert($('#elm1').html());"} Get contents
+ %a{:href => "javascript:;", :onmousedown => "alert($('#elm1').tinymce().selection.getContent());"} Get selected HTML
+ %a{:href => "javascript:;", :onmousedown => "alert($('#elm1').tinymce().selection.getContent({format : 'text'}));"} Get selected text
+ %a{:href => "javascript:;", :onmousedown => "alert($('#elm1').tinymce().selection.getNode().nodeName);"} Get selected element
+ %a{:href => "javascript:;", :onmousedown => "$('#elm1').tinymce().execCommand('mceInsertContent',false,'<b>Hello world!!</b>');"} Insert HTML
+ %a{:href => "javascript:;", :onmousedown => "$('#elm1').tinymce().execCommand('mceReplaceContent',false,'<b>{$selection}</b>');"} Replace selection
.tinymce
- %form{:action => "http://tinymce.moxiecode.com/dump.php?example=true", :method => "post"}
+ %form{:action => "/widgets/tiny_mce/dump?example=true", :method => "post"}
%div
- %h3 Full featured example using jQuery plugin
- %p
- This example shows how TinyMCE can be lazy loaded using jQuery. The jQuery plugin will also attach it's self to various jQuery methods to make it more easy to get/set editor contents etc.
/ Gets replaced with TinyMCE, remember HTML in a textarea should be encoded
%div
- %textarea#elm1.tinymce{:cols => "80", :name => "elm1", :rows => "15", :style => "width: 80%"}
+ %textarea#elm1.tinymce{:cols => "80", :name => "elm1", :rows => "15", :style => "width: 100%"}
:preserve
-
- &lt;p&gt;
- This is some example text that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
- &lt;/p&gt;
- &lt;p&gt;
- Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
- &lt;/p&gt;
- / Some integration calls
- %a{:href => "javascript:;", :onmousedown => "$('#elm1').tinymce().show();"} [Show]
- %a{:href => "javascript:;", :onmousedown => "$('#elm1').tinymce().hide();"} [Hide]
- %a{:href => "javascript:;", :onmousedown => "$('#elm1').tinymce().execCommand('Bold');"} [Bold]
- %a{:href => "javascript:;", :onmousedown => "alert($('#elm1').html());"} [Get contents]
- %a{:href => "javascript:;", :onmousedown => "alert($('#elm1').tinymce().selection.getContent());"} [Get selected HTML]
- %a{:href => "javascript:;", :onmousedown => "alert($('#elm1').tinymce().selection.getContent({format : 'text'}));"} [Get selected text]
- %a{:href => "javascript:;", :onmousedown => "alert($('#elm1').tinymce().selection.getNode().nodeName);"} [Get selected element]
- %a{:href => "javascript:;", :onmousedown => "$('#elm1').tinymce().execCommand('mceInsertContent',false,'<b>Hello world!!</b>');"} [Insert HTML]
- %a{:href => "javascript:;", :onmousedown => "$('#elm1').tinymce().execCommand('mceReplaceContent',false,'<b>{$selection}</b>');"} [Replace selection]
- %br/
- %input{:name => "save", :type => "submit", :value => "Submit"}/
- %input{:name => "reset", :type => "reset", :value => "Reset"}/
+ &lt;p&gt;
+ This is some example text that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
+ &lt;/p&gt;
+ &lt;p&gt;
+ Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
+ &lt;/p&gt;
+ / Some integration calls
+ .toolbar.ui-widget-header.ui-corner-all
+ %input{:name => "save", :type => "submit", :value => "Submit"}
+ %input{:name => "reset", :type => "reset", :value => "Reset"}
View
1  config/initializers/tiny_mce.rb
@@ -1,4 +1,3 @@
require 'jquery/tiny_mce'
-require 'tiny_mce_gzip_routes'
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :tiny_mce => ['tiny_mce/jquery.tinymce']
View
180 config/locales/de.yml
@@ -43,6 +43,12 @@ de:
num: Anzahl
unit: Mengeneinheit
item: Element
+ player:
+ pseudo: Pseudonym
+ role: Rolle
+ lastname: Nachname
+ firstname: Vorname
+ email: E-Mail
invheader:
tax: Steuer
ship_via: "Versenden \xC3\xBCber"
@@ -53,19 +59,13 @@ de:
client: Kunde
note: Hinweis
invdate: Datum
- player:
- pseudo: Pseudonym
- role: Rolle
- lastname: Nachname
- firstname: Vorname
- email: E-Mail
account:
name: Name
debit: Soll
credit: Haben
enabled: Aktiviert
- balance: Kontostand
acc_num: Kontonr.
+ balance: Kontostand
event:
location: Ort
dtend: Ende
@@ -134,32 +134,32 @@ de:
themeroller: Themenwahl
xml: XML-Daten
dnd: Drag'n Drop
- radio: Umschalttasten
- checkbox: "Auswahlk\xC3\xA4stchen"
demo: Demonstration
+ checkbox: "Auswahlk\xC3\xA4stchen"
+ radio: Umschalttasten
cookies: Cookies
json: JSON-Daten
types: Typen
- lang: Sprachen
contextmenu: "Kontextmen\xC3\xBC"
+ lang: Sprachen
sort: Sortieren
unique: Eindeutig
- ui: UI
core: "Basisfunktionalit\xC3\xA4t"
+ ui: UI
search: Suche
crrm: CRRM
themes: Themen
+ plugins:
+ name: jQuery-Plugins
graphics:
name: Graphik
ganttview:
name: Gantt-Ansicht
default: Beispiel
sparklines:
- name: Sparklines
examples: Beispiele
+ name: Sparklines
default: Probieren Sie es aus
- plugins:
- name: jQuery-Plugins
layout:
colon: ":"
back: "Zur\xC3\xBCck"
@@ -168,8 +168,8 @@ de:
delete: "L\xC3\xB6schen"
theme: Thema
from: von
- language: Sprache
navigation browse: Browsen Sie durch die Beispiele
+ language: Sprache
show: Anzeigen
footer:
legalese: "Copyright \xC2\xA9 2009-2011 Kosmas Sch\xC3\xBCtz. N\xC3\xA4heres finden Sie unter LICENSE."
@@ -184,23 +184,6 @@ de:
trees: !binary |
QsOkdW1l
- emu:
- name: "jQuery auf mobilen Ger\xC3\xA4ten"
- ipad: iPad
- black: Blackberry Torch
- jqt:
- name: "<i>(Ben\xC3\xB6tigt einen WebKit-Engine)</i>"
- default: jQTouch Demonstration
- home: "&beta;@jqtouch.com"
- port: Hochformat
- land: Querformat
- jqm:
- name: jQuery mobile Framework
- experiments: Weitere Demos
- default: jQuery mobile Demonstration
- home: "&alpha;3@jquerymobile.com"
- palm: Palm Pre
- iphone: iPhone
haml:
name: Javascript und Haml.
jhaml: jQuery-haml-Plugin
@@ -226,16 +209,16 @@ de:
30cmulti: Benutzerdefinierte Mehrfachauswahl
31v: Neu in Version 3.1
20big_sets: "Gro\xC3\x9Fe Datenmengen durchsuchen"
+ 30optimize: Datenoptimierung
38array1: Einfache Gruppierung mit Matrixdaten
20as_subgrid: Gitter als Untergitter
35sortable: Sortierbare Spalten anzeigen
35summary: "Zusammenfassung in der Fu\xC3\x9Fzeile"
- 30optimize: Datenoptimierung
38array2: Spalten verbergen
34v: Neu in Version 3.4
36validation: Benutzerdefinierte Validierung
- 32client: Clientseitige Validierung
36cinput: Benutzerdefiniertes Eingabeelement erstellen
+ 32client: Clientseitige Validierung
20data: Gitterdaten
34format: Formatierer
38array3: Kopfzeile konfigurieren
@@ -255,12 +238,12 @@ de:
38remote4: "Dynamische Ver\xC3\xA4nderung der Gruppierung"
34autoscroll: Das automatische Laden von Daten beim Scrollen
38array6: "Summarische Fu\xC3\x9Fzeilen"
- 30searching: Daten suchen
32cbutton: "Benutzerdefinierte Schaltfl\xC3\xA4chen und Formulare"
+ 30searching: Daten suchen
31cparams: "Gebr\xC3\xA4uchliche Parameter"
38remote5: Summenzeile anzeigen
- 32new_methods: Neue Methoden
36tscroll: Echte scrollende Zeilen
+ 32new_methods: Neue Methoden
20array: Daten aus einer Matrix
37single: Einfache Suche
30edit_row: "Zeile \xC3\xA4ndern"
@@ -277,17 +260,17 @@ de:
32insert: "Ereignis nach Einf\xC3\xBCgen einer Zeile"
37server: Daten auf einmal vom Server laden
35real: "Reales Beispiel eines Baumgitters "
- 33mform: Mehrfache Formularsuche
20subgrid: Untergitter
- 35stoolbar: Integrierte Suchleiste
+ 33mform: Mehrfache Formularsuche
20json_data: JSON-Daten
33rdnd: Drag and Drop von Zeilen
30json_map: JSON-Mapping
35v: Neu in Version 3.5
- 20loading: Laden von Daten
+ 35stoolbar: Integrierte Suchleiste
+ 35number: Automatische Breite und Reihennummerierung
20multi: Mehrfachauswahl
+ 20loading: Laden von Daten
36chooser: Spaltenauswahl
- 35number: Automatische Breite und Reihennummerierung
actions: Aktionen
30basic: Einfaches Beispiel
38v: Gruppierung
@@ -320,12 +303,12 @@ de:
30datepicker: Datumsauswahl
30row: "Zeilen \xC3\xA4ndern"
37array: Matrixdaten auf einmal laden
- 33visible: Sichtbare Spalten
33mtoolbar: Mehrfache Symbolleistensuche
+ 33visible: Sichtbare Spalten
2dc: 2dc_jqGrid Beispiele
+ 31userdata: Benutzerdaten
20xml_data: XML-Daten
35navigation: Formularnavigation
- 31userdata: Benutzerdaten
33function: Datentyp als Funktion
36rtl: "RNL-Unterst\xC3\xBCtzung"
20manipulating: Manipulation
@@ -356,9 +339,26 @@ de:
cedit3: server-seitig
cedit4: server-seitig mit jQuery UI-Symbolen
cedit5: server-seitig mit eigenen Symbolen
- secret: Secret Sauce jqGrid
improvements:
name: mit Verbesserungen der Form
+ secret: Secret Sauce jqGrid
+ emu:
+ name: "jQuery auf mobilen Ger\xC3\xA4ten"
+ ipad: iPad
+ jqt:
+ name: "<i>(Ben\xC3\xB6tigt einen WebKit-Engine)</i>"
+ default: jQTouch Demonstration
+ home: "&beta;@jqtouch.com"
+ black: Blackberry Torch
+ port: Hochformat
+ land: Querformat
+ jqm:
+ name: jQuery mobile Framework
+ experiments: Weitere Demos
+ default: jQuery mobile Demonstration
+ home: "&alpha;3@jquerymobile.com"
+ iphone: iPhone
+ palm: Palm Pre
ribbon:
name: Multifunktionsleiste
simple: jQuery Ribbon Simple Demo
@@ -384,19 +384,19 @@ de:
lazy: "Sp\xC3\xA4tes Laden"
default: Standardeinstellungen
dnd2: "Dynatree: Ziehen und Ablegen 2"
- dnd: "Dynatree: Ziehen und Ablegen"
api: Programmier-API
- iframe: iframe und URL-Navigation
quick: JS-Objekt initialisieren
+ dnd: "Dynatree: Ziehen und Ablegen"
+ iframe: iframe und URL-Navigation
+ events: Ergeignisverarbeitung
minexpand: Feste Expansionsebene
dnd3: "jQUery UI: Ziehen und Ablegen"
- events: Ergeignisverarbeitung
- effects: Effekte
form: In Formular integriert
+ effects: Effekte
json: Aus externen Daten initialisieren
contextmenu: "Kontextmen\xC3\xBC, Kopieren / Einf\xC3\xBCgen"
- select: "K\xC3\xA4stchen & Auswahl"
multiline: "Gro\xC3\x9Fe Knoten"
+ select: "K\xC3\xA4stchen & Auswahl"
benchmark: "Benchmark f\xC3\xBCr gro\xC3\x9Fe B\xC3\xA4ume"
lazy_persist: Langsames Laden
theming:
@@ -410,8 +410,8 @@ de:
toolbox:
name: Toolbox
flashembed:
- name: Flashembed
demo06: Flashembed und Flowplayer
+ name: Flashembed
demo01: Grundlagen von Flashembedl
demo02: Flashembed und jQuery
demo03: "L\xC3\xA4dt Flash per Mausklick"
@@ -431,15 +431,15 @@ de:
demo03: "Das Portfolio beschleunigen "
default: "Standard-Funktionalit\xC3\xA4t"
form:
- name: Formularwerkzeuge
validator:
- name: Validator
demo06: Lokalisieren von Validator (Finnisch)
+ name: Validator
demo01: "Minimales Setup f\xC3\xBCr Validator"
demo02: Benutzerdefinierter Eingabetypen und -attribute
demo03: Kombinierte server-und client-seitige Validierung
demo04: Zeige alle Fehler in einem einzigen DIV
demo05: Validator-Ereignisse in Aktion
+ name: Formularwerkzeuge
rangeinput:
name: Rangeinput
demo01: "Minimales Setup f\xC3\xBCr Rangeinput"
@@ -452,8 +452,8 @@ de:
demo02: ""
demo03: ""
dateinput:
- name: Dateinput
demo06: "Lokalisieren von Dateinput (franz\xC3\xB6sisch)"
+ name: Dateinput
demo01: "Minimales Setup f\xC3\xBCr Dateinput"
demo02: "Eine gro\xC3\x9Fe Skin f\xC3\xBCr Dateinput"
demo03: Benutzerdefiniertes Dateinput-Verhalten
@@ -462,8 +462,8 @@ de:
ui:
name: UI-Tools
tooltips:
- name: Tooltips
demo06: Benutzerdefinierter Tooltip-Effekt
+ name: Tooltips
demo07: Dynamische Positionierung der Tooltips
demo01: Grundlagen der Verwendung von Tooltips
demo02: Mit einem beliebigen HTML im Tooltip
@@ -471,8 +471,8 @@ de:
demo04: Tooltips in Formularfeldern
demo05: Tooltips in Tabellen oder Listen
scrollable:
- name: Bildlauf
demo06: Bildlauf-Plugin in Aktion
+ name: Bildlauf
demo07: "Navigation mit Zur\xC3\xBCck-Knopf des Browser' s"
demo08: Setup jQuery Tools Homepage
demo09: Ein komplettes scrollbares Navigationssystem
@@ -484,8 +484,8 @@ de:
demo04: Eine weitere scrollbare Galerie
demo05: Ein scrollbarer Registrierungsassistent
overlay:
- name: Overlay
demo06: Laden von externen Seiten in Overlay
+ name: Overlay
demo07: Mehrere Overlays auf der gleichen Seite
demo08: Erstellen eines benutzerdefinierten Overlay-Effekt
demo01: "Minimales Setup f\xC3\xBCr Overlay"
@@ -494,15 +494,15 @@ de:
demo04: "Overlays programmatisch \xC3\xB6ffnen"
demo05: Overlays mit verschiedenen Stilen
tabs:
- name: Registerkarten
demo06: Akkordeons mit Registerkarten
+ name: Registerkarten
demo07: Anpassen des Akkordeon-Effekt
demo08: Horizontal Akkordeon mit dem Registerkarten
demo09: Mehrfache Registerkarten und Akkordeon-Instanzen
demo10: "Zur\xC3\xBCck-Button des Browsers handhaben"
demo11: Registerkarte mit AJAX laden
- demo01: "Minimales Setup f\xC3\xBCr Registerkarte"
demo12: AJAX-Registerkarte mit Historie
+ demo01: "Minimales Setup f\xC3\xBCr Registerkarte"
demo02: Benennen der Registerkarten
demo13: "Slideshow-Plugin f\xC3\xBCr Registerkarten"
demo03: 4 verschiedene Skins mit CSS
@@ -510,9 +510,7 @@ de:
demo05: Assistenten mit Registerkarten
tinymce:
name: TinyMCE
- default: Beispiel
- handling:
- name: Handhabung
+ default: "Vollst\xC3\xA4ndiges Beispiel mit jQuery-Plugin"
ical:
name: iCalendar
anytime:
@@ -527,8 +525,8 @@ de:
fullcalendar:
name: FullCalendar Plugin
gcal: Google-Kalender der US-Feiertage
- theme: Kalender mit jQuery UI Thema
selectable: "Zeitbereiche f\xC3\xBCr das Erstellen eines Ereignisses ausw\xC3\xA4hlen"
+ theme: Kalender mit jQuery UI Thema
default: Standardansicht
agenda: Agenda-Ansicht
external: Ziehen Sie externe Ereignisse auf den Kalender
@@ -539,8 +537,8 @@ de:
location: Ort
default: Veranstaltung
starts_at: Beginnt um
- listing: Termine anzeigen
ends_at: Endet um
+ listing: Termine anzeigen
summary: Betreff
description: Beschreibung
all_day: "Ganzt\xC3\xA4giges Ereignis"
@@ -560,6 +558,8 @@ de:
show: " iCalendar anzeigen"
iphone: Zeigen es auf einem iPhone
hello: ""
+ handling:
+ name: Handhabung
ui:
name: jQquery UI
utilities:
@@ -597,30 +597,30 @@ de:
connect-lists: Listen verbinden
placeholder: "Platzhalter f\xC3\xBCr den Abwurf"
draggable:
- handle: Position des Griffs
snap-to: In Element oder Gitter einrasten
+ handle: Position des Griffs
scroll: Autoscrollen
default: Ziehbar
sortable: Zieh- und sortierbar
constrain-movement: "Einschr\xC3\xA4nken der Bewegung"
events: Ereignisse
delay-start: "Start verz\xC3\xB6gern"
- cursor-style: Cursorstil
revert: "Zur Position zur\xC3\xBCckkehren"
+ cursor-style: Cursorstil
visual-feedback: Visuelles Feedback
droppable:
default: Ablegbar
propagation: Weitergabe verhindern
revert: "R\xC3\xBCckkehr zur Position"
shopping-cart: Einkaufswagen
- accepted-elements: Akzeptierte Elemente
photo-manager: Einfacher Photomanager
visual-feedback: Visuelles Feedback
+ accepted-elements: Akzeptierte Elemente
widgets:
button:
default: "Schaltfl\xC3\xA4che"
- radio: Umschalttasten
checkbox: Auswahltasten
+ radio: Umschalttasten
icon: Symbole
toolbar: Werkzeugleiste
splitbutton: "Geteilte Schaltfl\xC3\xA4che"
@@ -659,17 +659,13 @@ de:
background: "Beispiel: Hintergrundbild"
icons: "Stil: <b>Popup</b> mit UI-Symbolen"
ajax: "Beispiel: Callback mit AJAX"
- text-formatting: "Stil: <b>Popup</b> mit der Option Textformatierung"
optgroups: "Stil: <b>Popup</b> mit optgroups"
+ text-formatting: "Stil: <b>Popup</b> mit der Option Textformatierung"
positioning: Positionierung
menuwidth: "Stil: <b>Dropdown</b> mit menuWidth und Textformatierung"
- disable-enable: "Beispiel: Deaktivieren"
custom-icons: "Stil: <b>Popup</b> mit benutzerdefinierten Icons"
+ disable-enable: "Beispiel: Deaktivieren"
dropdown: "Stil: <b>Popup</b>-Stil"
- progressbar:
- resize: "Vergr\xC3\xB6\xC3\x9Ferbarer Fortschrittsbalken"
- default: Fortschrittsbalken
- animated: Animiert
datepicker:
alt-field: "Alternatives Feld f\xC3\xBCllen"
buttonbar: "Schaltfl\xC3\xA4chen anzeigen"
@@ -694,6 +690,10 @@ de:
mouseover: "\xC3\x96ffnen, wenn die Maus dar\xC3\xBCberf\xC3\xA4hrt"
custom-icons: Benutzerdefinierte Symbole
collapsible: Inhalt einklappen
+ progressbar:
+ resize: "Vergr\xC3\xB6\xC3\x9Ferbarer Fortschrittsbalken"
+ default: Fortschrittsbalken
+ animated: Animiert
tabs:
manipulation: Einfache Handhabung
bottom: Registerkarte unterhalb des Inhalts
@@ -703,27 +703,34 @@ de:
mouseover: "\xC3\x96ffnen, wenn die Maus dar\xC3\xBCberf\xC3\xA4hrt"
cookie: "Persistenz \xC3\xBCber Cookie"
collapsible: Inhalt wegklappen
- dialog:
- greybox: Greybox
- default: Dialog
- modal-confirmation: "Modale Best\xC3\xA4tigung"
- modal: Modaler Dialog
- animated: Animierter Dialog
- modal-form: Modale Form
- modal-message: Modale Nachricht
autocomplete:
maxheight: Scrollbare Ergebnisse
default: "Autovervollst\xC3\xA4ndigung"
remote-jsonp: Entfernte JSONP-Datenquelle
- multiple-remote: Mehrfachwerte, entfernt
folding: "Akzente ber\xC3\xBCcksichtigen"
+ multiple-remote: Mehrfachwerte, entfernt
remote-with-cache: Entfernt mit Caching
custom-data: Benutzerdefinierte Daten und Anzeige
multiple: Mehrfachwerte
- categories: Kategorien
remote: Entfernte Datenquelle
- remote-xml: XML-Daten einmalig geparsed
+ categories: Kategorien
combobox: Auswahleiste
+ remote-xml: XML-Daten einmalig geparsed
+ dialog:
+ greybox: Greybox
+ default: Dialog
+ modal-confirmation: "Modale Best\xC3\xA4tigung"
+ modal: Modaler Dialog
+ animated: Animierter Dialog
+ modal-form: Modale Form
+ modal-message: Modale Nachricht
+ form:
+ new: Anlegen
+ edit: Bearbeiten
+ cancel: Abbrechen
+ delete: "L\xC3\xB6schen"
+ save: Speichern
+ sure: Sind Sie sicher?
effects:
toggle:
default: Umschalten
@@ -746,13 +753,6 @@ de:
showcase: Effekte im Schaufenster
remove_class:
default: Klasse entfernen
- form:
- new: Anlegen
- edit: Bearbeiten
- cancel: Abbrechen
- delete: "L\xC3\xB6schen"
- save: Speichern
- sure: Sind Sie sicher?
theme-switcher:
button: "Thema: "
initial: Thema wechseln
View
2  config/locales/en.yml
@@ -181,7 +181,7 @@ en:
name: Widgets
tinymce:
name: TinyMCE
- default: Example
+ default: Full featured example using jQuery plugin
handling:
name: Handling
haml:
View
3  config/locales/log/from_en_to_de.yml
@@ -29,8 +29,7 @@ txt:
demo02: Scripting styleable Forms
demo03: Alternate form skin
tinymce:
- name: TinyMCE
- default: example
+ default: Full featured example using jQuery plugin
hello: Hello world
support:
array:
View
3  config/routes.rb
@@ -83,6 +83,8 @@
jqgrid.resources :animals
jqgrid.resources :mine
end
+
+ widget.resources :member => {:dump => :post}
end
map.namespace :jqtouch do |jqtouch|
@@ -96,7 +98,6 @@
end
Translate::Routes.translation_ui(map) if RAILS_ENV != "production "
- TinyMceGzip::Routes.add_routes
map.root :controller => "welcome"
View
808 db/seeds.rb
@@ -1,807 +1,3 @@
-# Users
-puts "Started creating users"
-User.create!(:pseudo => "ahe", :firstname => "Anthony", :lastname => "Heukmes", :email => "ahe@ahe.be", :role => "admin")
-User.create!(:pseudo => "willd", :firstname => "Wilfried", :lastname => "Dalmat", :email => "willd@ahe.be", :role => "middlefielder")
-User.create!(:pseudo => "marcos", :firstname => "Marcos", :lastname => "Camozzato", :email => "marcos@ahe.be", :role => "defender")
-User.create!(:pseudo => "onyewuo", :firstname => "Ogushi", :lastname => "Onyewu", :email => "onyewuo@ahe.be", :role => "defender")
-User.create!(:pseudo => "sarrm", :firstname => "Momo", :lastname => "Sarr", :email => "sarrm@ahe.be", :role => "defender")
-User.create!(:pseudo => "mulemol", :firstname => "Landry", :lastname => "Mulemo", :email => "mulemol@ahe.be", :role => "defender")
-User.create!(:pseudo => "witsela", :firstname => "Axel", :lastname => "Witsel", :email => "witsela@ahe.be", :role => "middlefielder")
-User.create!(:pseudo => "defours", :firstname => "Steven", :lastname => "Defour", :email => "defours@ahe.be", :role => "middlefielder")
-User.create!(:pseudo => "goreuxr", :firstname => "Reginal", :lastname => "Goreux", :email => "goureux@ahe.be", :role => "middlefielder")
-User.create!(:pseudo => "jova", :firstname => "Milan", :lastname => "Jovanovic", :email => "jova@ahe.be", :role => "striker")
-User.create!(:pseudo => "decamar", :firstname => "Igor", :lastname => "De Camargo", :email => "decamar@ahe.be", :role => "striker")
-User.create!(:pseudo => "mbokani", :firstname => "Dieumerci", :lastname => "Mbokani", :email => "mbokani@ahe.be", :role => "striker")
-User.create!(:pseudo => "nicaise", :firstname => "Benjamin", :lastname => "Nicaise", :email => "nicaise@ahe.be", :role => "middlefielder")
-User.create!(:pseudo => "bolats", :firstname => "Sinan", :lastname => "Bolat", :email => "bolats@ahe.be", :role => "goalkeeper")
-User.create!(:pseudo => "leonb", :firstname => "Leon", :lastname => "Benko", :email => "leonb@ahe.be", :role => "striker")
-User.create!(:pseudo => "espi", :firstname => "Aragon", :lastname => "Espinoza", :email => "espi@ahe.be", :role => "goalkeeper")
-User.create!(:pseudo => "carce", :firstname => "Medhi", :lastname => "Carcela", :email => "carce@ahe.be", :role => "middlefielder")
-User.create!(:pseudo => "manga", :firstname => "Eliaquim", :lastname => "Mangala", :email => "manga@ahe.be", :role => "middlefielder")
-User.create!(:pseudo => "miku", :firstname => "Tomislav", :lastname => "Mikulic", :email => "miku@ahe.be", :role => "defender")
-User.create!(:pseudo => "maestro", :firstname => "Segio", :lastname => "Conceicao", :email => "maestro@ahe.be", :role => "middlefielder")
-User.create!(:pseudo => "bolo", :firstname => "Laszlo", :lastname => "Boloni", :email => "bolo@ahe.be", :role => "trainer")
-User.create!(:pseudo => "pesto", :firstname => "Joaquim", :lastname => "Preto", :email => "ahe@ahe.be", :role => "trainer")
-User.create!(:pseudo => "pf", :firstname => "Pierre", :lastname => "Francois", :email => "pf@ahe.be", :role => "admin")
-User.create!(:pseudo => "moi", :firstname => "Moi", :lastname => "Moi", :email => "moi@ahe.be", :role => "striker")
-puts "Finished creating users"
-puts "\n"
-
-# Pets
-puts "Started creating pets"
-Pet.create!(:name => "Youpi", :user_id => 1)
-Pet.create!(:name => "Blouk", :user_id => 1)
-Pet.create!(:name => "Pif", :user_id => 1)
-Pet.create!(:name => "Paf", :user_id => 2)
-Pet.create!(:name => "Meuh", :user_id => 3)
-Pet.create!(:name => "Boug", :user_id => 3)
-Pet.create!(:name => "Zigg", :user_id => 4)
-Pet.create!(:name => "Iop", :user_id => 4)
-Pet.create!(:name => "Tcham", :user_id => 4)
-Pet.create!(:name => "Outch", :user_id => 5)
-Pet.create!(:name => "Tzii", :user_id => 5)
-Pet.create!(:name => "Tutu", :user_id => 6)
-Pet.create!(:name => "Tata", :user_id => 7)
-Pet.create!(:name => "Bobo", :user_id => 7)
-Pet.create!(:name => "Bulk", :user_id => 7)
-Pet.create!(:name => "Rocky", :user_id => 7)
-Pet.create!(:name => "Arnold", :user_id => 8)
-Pet.create!(:name => "Miii", :user_id => 9)
-Pet.create!(:name => "Tititi", :user_id => 10)
-Pet.create!(:name => "Bob", :user_id => 11)
-Pet.create!(:name => "Max", :user_id => 12)
-Pet.create!(:name => "Poop", :user_id => 12)
-Pet.create!(:name => "Bikk", :user_id => 13)
-Pet.create!(:name => "Allo", :user_id => 13)
-puts "Finished creating pets"
-puts "\n"
-
-# Players
-puts "Started creating players"
-Player.create!(:pseudo => "ahe", :firstname => "Anthony", :lastname => "Heukmes", :email => "ahe@ahe.be", :role => "admin")
-Player.create!(:pseudo => "willd", :firstname => "Wilfried", :lastname => "Dalmat", :email => "willd@ahe.be", :role => "middlefielder")
-Player.create!(:pseudo => "marcos", :firstname => "Marcos", :lastname => "Camozzato", :email => "marcos@ahe.be", :role => "defender")
-Player.create!(:pseudo => "onyewuo", :firstname => "Ogushi", :lastname => "Onyewu", :email => "onyewuo@ahe.be", :role => "defender")
-Player.create!(:pseudo => "sarrm", :firstname => "Momo", :lastname => "Sarr", :email => "sarrm@ahe.be", :role => "defender")
-Player.create!(:pseudo => "mulemol", :firstname => "Landry", :lastname => "Mulemo", :email => "mulemol@ahe.be", :role => "defender")
-Player.create!(:pseudo => "witsela", :firstname => "Axel", :lastname => "Witsel", :email => "witsela@ahe.be", :role => "middlefielder")
-Player.create!(:pseudo => "defours", :firstname => "Steven", :lastname => "Defour", :email => "defours@ahe.be", :role => "middlefielder")
-Player.create!(:pseudo => "goreuxr", :firstname => "Reginal", :lastname => "Goreux", :email => "goureux@ahe.be", :role => "middlefielder")
-Player.create!(:pseudo => "jova", :firstname => "Milan", :lastname => "Jovanovic", :email => "jova@ahe.be", :role => "striker")
-Player.create!(:pseudo => "decamar", :firstname => "Igor", :lastname => "De Camargo", :email => "decamar@ahe.be", :role => "striker")
-Player.create!(:pseudo => "mbokani", :firstname => "Dieumerci", :lastname => "Mbokani", :email => "mbokani@ahe.be", :role => "striker")
-Player.create!(:pseudo => "nicaise", :firstname => "Benjamin", :lastname => "Nicaise", :email => "nicaise@ahe.be", :role => "middlefielder")
-Player.create!(:pseudo => "bolats", :firstname => "Sinan", :lastname => "Bolat", :email => "bolats@ahe.be", :role => "goalkeeper")
-Player.create!(:pseudo => "leonb", :firstname => "Leon", :lastname => "Benko", :email => "leonb@ahe.be", :role => "striker")
-Player.create!(:pseudo => "espi", :firstname => "Aragon", :lastname => "Espinoza", :email => "espi@ahe.be", :role => "goalkeeper")
-Player.create!(:pseudo => "carce", :firstname => "Medhi", :lastname => "Carcela", :email => "carce@ahe.be", :role => "middlefielder")
-Player.create!(:pseudo => "manga", :firstname => "Eliaquim", :lastname => "Mangala", :email => "manga@ahe.be", :role => "middlefielder")
-Player.create!(:pseudo => "miku", :firstname => "Tomislav", :lastname => "Mikulic", :email => "miku@ahe.be", :role => "defender")
-Player.create!(:pseudo => "maestro", :firstname => "Segio", :lastname => "Conceicao", :email => "maestro@ahe.be", :role => "middlefielder")
-Player.create!(:pseudo => "bolo", :firstname => "Laszlo", :lastname => "Boloni", :email => "bolo@ahe.be", :role => "trainer")
-Player.create!(:pseudo => "pesto", :firstname => "Joaquim", :lastname => "Preto", :email => "ahe@ahe.be", :role => "trainer")
-Player.create!(:pseudo => "pf", :firstname => "Pierre", :lastname => "Francois", :email => "pf@ahe.be", :role => "admin")
-Player.create!(:pseudo => "moi", :firstname => "Moi", :lastname => "Moi", :email => "moi@ahe.be", :role => "striker")
-puts "Finished creating players"
-puts "\n"
-
-# Animals
-puts "Started creating animals"
-Animal.create!(:name => "Youpi", :player_id => 1)
-Animal.create!(:name => "Blouk", :player_id => 1)
-Animal.create!(:name => "Pif", :player_id => 1)
-Animal.create!(:name => "Paf", :player_id => 2)
-Animal.create!(:name => "Meuh", :player_id => 3)
-Animal.create!(:name => "Boug", :player_id => 3)
-Animal.create!(:name => "Zigg", :player_id => 4)
-Animal.create!(:name => "Iop", :player_id => 4)
-Animal.create!(:name => "Tcham", :player_id => 4)
-Animal.create!(:name => "Outch", :player_id => 5)
-Animal.create!(:name => "Tzii", :player_id => 5)
-Animal.create!(:name => "Tutu", :player_id => 6)
-Animal.create!(:name => "Tata", :player_id => 7)
-Animal.create!(:name => "Bobo", :player_id => 7)
-Animal.create!(:name => "Bulk", :player_id => 7)
-Animal.create!(:name => "Rocky", :player_id => 7)
-Animal.create!(:name => "Arnold", :player_id => 8)
-Animal.create!(:name => "Miii", :player_id => 9)
-Animal.create!(:name => "Tititi", :player_id => 10)
-Animal.create!(:name => "Bob", :player_id => 11)
-Animal.create!(:name => "Max", :player_id => 12)
-Animal.create!(:name => "Poop", :player_id => 12)
-Animal.create!(:name => "Bikk", :player_id => 13)
-Animal.create!(:name => "Allo", :player_id => 13)
-puts "Finished creating animals"
-puts "\n"
-
-# Clients
-puts "Started creating clients"
-Client.create!(:name => "Client 1")
-Client.create!(:name => "Client 2")
-Client.create!(:name => "Client 3")
-puts "Finished creating clients"
-puts "\n"
-
-# Invheaders
-puts "Started creating invoice headers"
-Invheader.create!(:invdate => "2007-10-01", :client_id => 1, :amount => "100.00", :tax => "20.00", :total => "120.00", :note => "note 1" )
-Invheader.create!(:invdate => "2007-10-03", :client_id => 1, :amount => "200.00", :tax => "40.00", :total => "240.00", :note => "note 2" )
-Invheader.create!(:invdate => "2007-10-02", :client_id => 2, :amount => "300.00", :tax => "60.00", :total => "360.00", :note => "note for invoice 3" )
-Invheader.create!(:invdate => "2007-10-04", :client_id => 3, :amount => "150.00", :tax => "0.00", :total => "150.00", :note => "no tax" )
-Invheader.create!(:invdate => "2007-10-05", :client_id => 3, :amount => "100.00", :tax => "0.00", :total => "100.00", :note => "no tax" )
-Invheader.create!(:invdate => "2007-10-05", :client_id => 1, :amount => "50.00", :tax => "10.00", :total => "60.00", :note => nil )
-Invheader.create!(:invdate => "2007-10-05", :client_id => 2, :amount => "120.00", :tax => "12.00", :total => "134.00", :note => nil )
-Invheader.create!(:invdate => "2007-10-06", :client_id => 3, :amount => "200.00", :tax => "0.00", :total => "200.00", :note => nil )
-Invheader.create!(:invdate => "2007-10-06", :client_id => 1, :amount => "200.00", :tax => "40.00", :total => "240.00", :note => nil )
-Invheader.create!(:invdate => "2007-10-06", :client_id => 2, :amount => "100.00", :tax => "20.00", :total => "120.00", :note => nil )
-Invheader.create!(:invdate => "2007-10-06", :client_id => 1, :amount => "600.00", :tax => "120.00", :total => "720.00", :note => nil )
-Invheader.create!(:invdate => "2007-10-06", :client_id => 2, :amount => "700.00", :tax => "140.00", :total => "840.00", :note => nil )
-Invheader.create!(:invdate => "2007-10-06", :client_id => 3, :amount => "1000.00", :tax => "0.00", :total => "1000.00", :note => nil )
-puts "Finished creating invoice headers"
-puts "\n"
-
-# Invlines
-puts "Started creating invoice lines"
-Invline.create!( :invheader_id => 1, :num => 1, :item => "item 1", :qty => "1.00", :unit => "20.00" )
-Invline.create!( :invheader_id => 1, :num => 2, :item => "item 2", :qty => "2.00", :unit => "40.00" )
-Invline.create!( :invheader_id => 2, :num => 1, :item => "item 1", :qty => "2.00", :unit => "20.00" )
-Invline.create!( :invheader_id => 2, :num => 2, :item => "item 2", :qty => "4.00", :unit => "40.00" )
-Invline.create!( :invheader_id => 3, :num => 1, :item => "item 3", :qty => "1.00", :unit => "100.00" )
-Invline.create!( :invheader_id => 3, :num => 4, :item => "item 4", :qty => "1.00", :unit => "200.00" )
-Invline.create!( :invheader_id => 4, :num => 1, :item => "item 1", :qty => "1.00", :unit => "100.00" )
-Invline.create!( :invheader_id => 4, :num => 2, :item => "item 2", :qty => "1.00", :unit => "50.00" )
-Invline.create!( :invheader_id => 5, :num => 3, :item => "item 3", :qty => "1.00", :unit => "100.00" )
-Invline.create!( :invheader_id => 6, :num => 4, :item => "item 4", :qty => "1.00", :unit => "50.00" )
-Invline.create!( :invheader_id => 7, :num => 1, :item => "item 5", :qty => "2.00", :unit => "10.00" )
-Invline.create!( :invheader_id => 7, :num => 2, :item => "item 1", :qty => "1.00", :unit => "100.00" )
-Invline.create!( :invheader_id => 8, :num => 1, :item => "item 3", :qty => "1.00", :unit => "50.00" )
-Invline.create!( :invheader_id => 8, :num => 2, :item => "item 2", :qty => "1.00", :unit => "120.00" )
-Invline.create!( :invheader_id => 8, :num => 3, :item => "item 3", :qty => "1.00", :unit => "30.00" )
-Invline.create!( :invheader_id => 9, :num => 1, :item => "item 6", :qty => "1.00", :unit => "140.00" )
-Invline.create!( :invheader_id => 9, :num => 2, :item => "item 3", :qty => "1.00", :unit => "60.00" )
-Invline.create!( :invheader_id => 10, :num => 1, :item => "item 5", :qty => "3.00", :unit => "10.00" )
-Invline.create!( :invheader_id => 10, :num => 2, :item => "item 4", :qty => "1.00", :unit => "70.00" )
-Invline.create!( :invheader_id => 11, :num => 1, :item => "item 1", :qty => "2.00", :unit => "100.00" )
-Invline.create!( :invheader_id => 11, :num => 2, :item => "item 2", :qty => "3.00", :unit => "50.00" )
-Invline.create!( :invheader_id => 11, :num => 3, :item => "item 3", :qty => "1.00", :unit => "50.00" )
-Invline.create!( :invheader_id => 11, :num => 4, :item => "item 4", :qty => "1.00", :unit => "200.00" )
-Invline.create!( :invheader_id => 12, :num => 4, :item => "item 4", :qty => "1.00", :unit => "300.00" )
-Invline.create!( :invheader_id => 12, :num => 2, :item => "item 2", :qty => "1.00", :unit => "400.00" )
-Invline.create!( :invheader_id => 13, :num => 13, :item => "item 13", :qty => "1.00", :unit => "1000.00" )
-puts "Finished creating invoice lines"
-puts "\n"
-
-# Items
-puts "Started creating 20001 items"
-puts "Please be patient ..."
-f = File.open("#{RAILS_ROOT}/db/longtext.txt", "r")
-wordlist = f.read.split(/ /)
-wordlist_length = wordlist.length
-
-20001.times do
- word = wordlist[rand(wordlist_length)]
- number = 1
- while number < 99999
- number = rand(999999)
- end
- Item.create!(:item => "#{word}", :cd => "#{number.to_s}")
-end
-puts "Finished creating items"
-puts "\n"
-
-# Accounts
-puts "Started creating Accounts"
-Account.create!(:parent_id => nil, :name => "ROOT", :level => 0, :lft => 1, :rgt => 18 )
-Account.create!(:parent_id => 1, :name => "Cash" , :acc_num => 100, :debit => 400, :credit => 250, :balance => 150, :level => 1, :lft => 2, :rgt => 9 )
-Account.create!(:parent_id => 2, :name => "Cash 1" , :acc_num => 1, :debit => 300, :credit => 200, :balance => 100, :level => 2 ,:lft => 3, :rgt => 6 )
-Account.create!(:parent_id => 3, :name => "Sub Cash 1" , :acc_num => 1, :debit => 300, :credit => 200, :balance => 100, :level => 3, :lft => 4, :rgt => 5 )
-Account.create!(:parent_id => 2, :name => "Cash 2" , :acc_num => 2, :debit => 100, :credit => 50, :balance => 50, :level => 2, :lft => 7, :rgt => 8 )
-Account.create!(:parent_id => 1, :name => "Bank's" , :acc_num => 200, :debit => 1500, :credit => 1000, :balance => 500, :level => 1, :lft => 10, :rgt => 15 )
-Account.create!(:parent_id => 6, :name => "Bank 1" , :acc_num => 1, :debit => 500, :credit => 0, :balance => 500, :level => 2, :lft => 11, :rgt => 12 )
-Account.create!(:parent_id => 6, :name => "Bank 2" , :acc_num => 2, :debit => 1000, :credit => 1000, :balance => 0, :level => 2, :lft => 13, :rgt => 14 )
-Account.create!(:parent_id => 1, :name => "Fixed asset" , :acc_num => 300, :debit => 0, :credit => 1000, :balance => -1000, :level => 1, :lft => 16, :rgt => 17 )
-puts "Finished creating Accounts"
-puts "\n"
-
-# Birds
-puts "Started creating birds"
-Bird.create!(:name => "Great <em>Bittern</em>", :scientific_name => "Botaurus stellaris")
-Bird.create!(:name => "Little <em>Grebe</em>", :scientific_name => "Tachybaptus ruficollis")
-Bird.create!(:name => "Black-necked Grebe", :scientific_name => "Podiceps nigricollis")
-Bird.create!(:name => "Little Bittern", :scientific_name => "Ixobrychus minutus")
-Bird.create!(:name => "Black-crowned Night Heron", :scientific_name => "Nycticorax nycticorax")
-Bird.create!(:name => "Purple Heron", :scientific_name => "Ardea purpurea")
-Bird.create!(:name => "White Stork", :scientific_name => "Ciconia ciconia")
-Bird.create!(:name => "Spoonbill", :scientific_name => "Platalea leucorodia")
-Bird.create!(:name => "Red-crested Pochard", :scientific_name => "Netta rufina")
-Bird.create!(:name => "Common Eider", :scientific_name => "Somateria mollissima")
-Bird.create!(:name => "Red Kite", :scientific_name => "Milvus milvus")
-Bird.create!(:name => "Hen Harrier", :scientific_name => "Circus cyaneus")
-Bird.create!(:name => "Montagu`s Harrier", :scientific_name => "Circus pygargus")
-Bird.create!(:name => "Black Grouse", :scientific_name => "Tetrao tetrix")
-Bird.create!(:name => "Grey Partridge", :scientific_name => "Perdix perdix")
-Bird.create!(:name => "Spotted Crake", :scientific_name => "Porzana porzana")
-Bird.create!(:name => "Corncrake", :scientific_name => "Crex crex")
-Bird.create!(:name => "Common Crane", :scientific_name => "Grus grus")
-Bird.create!(:name => "Avocet", :scientific_name => "Recurvirostra avosetta")
-Bird.create!(:name => "Stone Curlew", :scientific_name => "Burhinus oedicnemus")
-Bird.create!(:name => "Common Ringed Plover", :scientific_name => "Charadrius hiaticula")
-Bird.create!(:name => "Kentish Plover", :scientific_name => "Charadrius alexandrinus")
-Bird.create!(:name => "Ruff", :scientific_name => "Philomachus pugnax")
-Bird.create!(:name => "Common Snipe", :scientific_name => "Gallinago gallinago")
-Bird.create!(:name => "Black-tailed Godwit", :scientific_name => "Limosa limosa")
-Bird.create!(:name => "Common Redshank", :scientific_name => "Tringa totanus")
-Bird.create!(:name => "Sandwich Tern", :scientific_name => "Sterna sandvicensis")
-Bird.create!(:name => "Common Tern", :scientific_name => "Sterna hirundo")
-Bird.create!(:name => "Arctic Tern", :scientific_name => "Sterna paradisaea")
-Bird.create!(:name => "Little Tern", :scientific_name => "Sternula albifrons")
-Bird.create!(:name => "Black Tern", :scientific_name => "Chlidonias niger")
-Bird.create!(:name => "Barn Owl", :scientific_name => "Tyto alba")
-Bird.create!(:name => "Little Owl", :scientific_name => "Athene noctua")
-Bird.create!(:name => "Short-eared Owl", :scientific_name => "Asio flammeus")
-Bird.create!(:name => "European Nightjar", :scientific_name => "Caprimulgus europaeus")
-Bird.create!(:name => "Common Kingfisher", :scientific_name => "Alcedo atthis")
-Bird.create!(:name => "Eurasian Hoopoe", :scientific_name => "Upupa epops")
-Bird.create!(:name => "Eurasian Wryneck", :scientific_name => "Jynx torquilla")
-Bird.create!(:name => "European Green Woodpecker", :scientific_name => "Picus viridis")
-Bird.create!(:name => "Crested Lark", :scientific_name => "Galerida cristata")
-Bird.create!(:name => "White-headed Duck", :scientific_name => "Oxyura leucocephala")
-Bird.create!(:name => "Pale-bellied Brent Goose", :scientific_name => "Branta hrota")
-Bird.create!(:name => "Tawny Pipit", :scientific_name => "Anthus campestris")
-Bird.create!(:name => "Whinchat", :scientific_name => "Saxicola rubetra")
-Bird.create!(:name => "European Stonechat", :scientific_name => "Saxicola rubicola")
-Bird.create!(:name => "Northern Wheatear", :scientific_name => "Oenanthe oenanthe")
-Bird.create!(:name => "Savi`s Warbler", :scientific_name => "Locustella luscinioides")
-Bird.create!(:name => "Sedge Warbler", :scientific_name => "Acrocephalus schoenobaenus")
-Bird.create!(:name => "Great Reed Warbler", :scientific_name => "Acrocephalus arundinaceus")
-Bird.create!(:name => "Bearded Reedling", :scientific_name => "Panurus biarmicus")
-Bird.create!(:name => "Red-backed Shrike", :scientific_name => "Lanius collurio")
-Bird.create!(:name => "Great Grey Shrike", :scientific_name => "Lanius excubitor")
-Bird.create!(:name => "Woodchat Shrike", :scientific_name => "Lanius senator")
-Bird.create!(:name => "Common Raven", :scientific_name => "Corvus corax")
-Bird.create!(:name => "Yellowhammer", :scientific_name => "Emberiza citrinella")
-Bird.create!(:name => "Ortolan Bunting", :scientific_name => "Emberiza hortulana")
-Bird.create!(:name => "Corn Bunting", :scientific_name => "Emberiza calandra")
-Bird.create!(:name => "Great Cormorant", :scientific_name => "Phalacrocorax carbo")
-Bird.create!(:name => "Hawfinch", :scientific_name => "Coccothraustes coccothraustes")
-Bird.create!(:name => "Common Shelduck", :scientific_name => "Tadorna tadorna")
-Bird.create!(:name => "Bluethroat", :scientific_name => "Luscinia svecica")
-Bird.create!(:name => "Grey Heron", :scientific_name => "Ardea cinerea")
-Bird.create!(:name => "Barn Swallow", :scientific_name => "Hirundo rustica")
-Bird.create!(:name => "Hooded Crow", :scientific_name => "Corvus cornix")
-Bird.create!(:name => "Dunlin", :scientific_name => "Calidris alpina")
-Bird.create!(:name => "Eurasian Pied Flycatcher", :scientific_name => "Ficedula hypoleuca")
-Bird.create!(:name => "Eurasian Nuthatch", :scientific_name => "Sitta europaea")
-Bird.create!(:name => "Short-toed Tree.Creeper", :scientific_name => "Certhia brachydactyla")
-Bird.create!(:name => "Wood Lark", :scientific_name => "Lullula arborea")
-Bird.create!(:name => "Tree.Pipit", :scientific_name => "Anthus trivialis")
-Bird.create!(:name => "Eurasian Hobby", :scientific_name => "Falco subbuteo")
-Bird.create!(:name => "Marsh Warbler", :scientific_name => "Acrocephalus palustris")
-Bird.create!(:name => "Wood Sandpiper", :scientific_name => "Tringa glareola")
-Bird.create!(:name => "Tawny Owl", :scientific_name => "Strix aluco")
-Bird.create!(:name => "Lesser Whitethroat", :scientific_name => "Sylvia curruca")
-Bird.create!(:name => "Barnacle Goose", :scientific_name => "Branta leucopsis")
-Bird.create!(:name => "Common Goldeneye", :scientific_name => "Bucephala clangula")
-Bird.create!(:name => "Western Marsh Harrier", :scientific_name => "Circus aeruginosus")
-Bird.create!(:name => "Common Buzzard", :scientific_name => "Buteo buteo")
-Bird.create!(:name => "Sanderling", :scientific_name => "Calidris alba")
-Bird.create!(:name => "Little Gull", :scientific_name => "Larus minutus")
-Bird.create!(:name => "Eurasian Magpie", :scientific_name => "Pica pica")
-Bird.create!(:name => "Willow Warbler", :scientific_name => "Phylloscopus trochilus")
-Bird.create!(:name => "Wood Warbler", :scientific_name => "Phylloscopus sibilatrix")
-Bird.create!(:name => "Great Crested Grebe", :scientific_name => "Podiceps cristatus")
-Bird.create!(:name => "Eurasian Jay", :scientific_name => "Garrulus glandarius")
-Bird.create!(:name => "Common Redstart", :scientific_name => "Phoenicurus phoenicurus")
-Bird.create!(:name => "Blue-headed Wagtail", :scientific_name => "Motacilla flava")
-Bird.create!(:name => "Common Swift", :scientific_name => "Apus apus")
-Bird.create!(:name => "Marsh Tit", :scientific_name => "Poecile palustris")
-Bird.create!(:name => "Goldcrest", :scientific_name => "Regulus regulus")
-Bird.create!(:name => "European Golden Plover", :scientific_name => "Pluvialis apricaria")
-Bird.create!(:name => "Eurasian Bullfinch", :scientific_name => "Pyrrhula pyrrhula")
-Bird.create!(:name => "Common Whitethroat", :scientific_name => "Sylvia communis")
-Bird.create!(:name => "Meadow Pipit", :scientific_name => "Anthus pratensis")
-Bird.create!(:name => "Greylag Goose", :scientific_name => "Anser anser")
-Bird.create!(:name => "Spotted Flycatcher", :scientific_name => "Muscicapa striata")
-Bird.create!(:name => "European Greenfinch", :scientific_name => "Carduelis chloris")
-Bird.create!(:name => "Common Greenshank", :scientific_name => "Tringa nebularia")
-Bird.create!(:name => "Great Spotted Woodpecker", :scientific_name => "Dendrocopos major")
-Bird.create!(:name => "Greater Canada Goose", :scientific_name => "Branta canadensis")
-Bird.create!(:name => "Mistle Thrush", :scientific_name => "Turdus viscivorus")
-Bird.create!(:name => "Great Black-backed Gull", :scientific_name => "Larus marinus")
-Bird.create!(:name => "Goosander", :scientific_name => "Mergus merganser")
-Bird.create!(:name => "Great Egret", :scientific_name => "Casmerodius albus")
-Bird.create!(:name => "Northern Goshawk", :scientific_name => "Accipiter gentilis")
-Bird.create!(:name => "Dunnock", :scientific_name => "Prunella modularis")
-Bird.create!(:name => "Stock Dove", :scientific_name => "Columba oenas")
-Bird.create!(:name => "Common Wood Pigeon", :scientific_name => "Columba palumbus")
-Bird.create!(:name => "Eurasian Woodcock", :scientific_name => "Scolopax rusticola")
-Bird.create!(:name => "House Sparrow", :scientific_name => "Passer domesticus")
-Bird.create!(:name => "Common House Martin", :scientific_name => "Delichon urbicum")
-Bird.create!(:name => "Red Knot", :scientific_name => "Calidris canutus")
-Bird.create!(:name => "Western Jackdaw", :scientific_name => "Corvus monedula")
-Bird.create!(:name => "Brambling", :scientific_name => "Fringilla montifringilla")
-Bird.create!(:name => "Northern Lapwing", :scientific_name => "Vanellus vanellus")
-Bird.create!(:name => "European Reed Warbler", :scientific_name => "Acrocephalus scirpaceus")
-Bird.create!(:name => "Lesser Black-backed Gull", :scientific_name => "Larus fuscus")
-Bird.create!(:name => "Little Egret", :scientific_name => "Egretta garzetta")
-Bird.create!(:name => "Little Stint", :scientific_name => "Calidris minuta")
-Bird.create!(:name => "Common Linnet", :scientific_name => "Carduelis cannabina")
-Bird.create!(:name => "Mute Swan", :scientific_name => "Cygnus olor")
-Bird.create!(:name => "Common Cuckoo", :scientific_name => "Cuculus canorus")
-Bird.create!(:name => "Black-headed Gull", :scientific_name => "Larus ridibundus")
-Bird.create!(:name => "Greater White-fronted Goose", :scientific_name => "Anser albifrons")
-Bird.create!(:name => "Great Tit", :scientific_name => "Parus major")
-Bird.create!(:name => "Redwing", :scientific_name => "Turdus iliacus")
-Bird.create!(:name => "Gadwall", :scientific_name => "Anas strepera")
-Bird.create!(:name => "Fieldfare", :scientific_name => "Turdus pilaris")
-Bird.create!(:name => "Tufted Duck", :scientific_name => "Aythya fuligula")
-Bird.create!(:name => "Crested Tit", :scientific_name => "Lophophanes cristatus")
-Bird.create!(:name => "Willow Tit", :scientific_name => "Poecile montanus")
-Bird.create!(:name => "Eurasian Coot", :scientific_name => "Fulica atra")
-Bird.create!(:name => "Common Blackbird", :scientific_name => "Turdus merula")
-Bird.create!(:name => "Smew", :scientific_name => "Mergus albellus")
-Bird.create!(:name => "Common Sandpiper", :scientific_name => "Actitis hypoleucos")
-Bird.create!(:name => "Sand Martin", :scientific_name => "Riparia riparia")
-Bird.create!(:name => "Purple Sandpiper", :scientific_name => "Calidris maritima")
-Bird.create!(:name => "Northern Pintail", :scientific_name => "Anas acuta")
-Bird.create!(:name => "Blue Tit", :scientific_name => "Cyanistes caeruleus")
-Bird.create!(:name => "European Goldfinch", :scientific_name => "Carduelis carduelis")
-Bird.create!(:name => "Eurasian Whimbrel", :scientific_name => "Numenius phaeopus")
-Bird.create!(:name => "Common Reed Bunting", :scientific_name => "Emberiza schoeniclus")
-Bird.create!(:name => "Eurasian Tree Sparrow", :scientific_name => "Passer montanus")
-Bird.create!(:name => "Rook", :scientific_name => "Corvus frugilegus")
-Bird.create!(:name => "European Robin", :scientific_name => "Erithacus rubecula")
-Bird.create!(:name => "Bar-tailed Godwit", :scientific_name => "Limosa lapponica")
-Bird.create!(:name => "Dark-bellied Brent Goose", :scientific_name => "Branta bernicla")
-Bird.create!(:name => "Eurasian Oystercatcher", :scientific_name => "Haematopus ostralegus")
-Bird.create!(:name => "Eurasian Siskin", :scientific_name => "Carduelis spinus")
-Bird.create!(:name => "Northern Shoveler", :scientific_name => "Anas clypeata")
-Bird.create!(:name => "Eurasian Wigeon", :scientific_name => "Anas penelope")
-Bird.create!(:name => "Eurasian Sparrow Hawk", :scientific_name => "Accipiter nisus")
-Bird.create!(:name => "Icterine Warbler", :scientific_name => "Hippolais icterina")
-Bird.create!(:name => "Common Starling", :scientific_name => "Sturnus vulgaris")
-Bird.create!(:name => "Long-tailed Tit", :scientific_name => "Aegithalos caudatus")
-Bird.create!(:name => "Ruddy Turnstone", :scientific_name => "Arenaria interpres")
-Bird.create!(:name => "Mew Gull", :scientific_name => "Larus canus")
-Bird.create!(:name => "Common Pochard", :scientific_name => "Aythya ferina")
-Bird.create!(:name => "Common Chiffchaff", :scientific_name => "Phylloscopus collybita")
-Bird.create!(:name => "Greater Scaup", :scientific_name => "Aythya marila")
-Bird.create!(:name => "Common Kestrel", :scientific_name => "Falco tinnunculus")
-Bird.create!(:name => "Garden Warbler", :scientific_name => "Sylvia borin")
-Bird.create!(:name => "Eurasian Collared Dove", :scientific_name => "Streptopelia decaocto")
-Bird.create!(:name => "Eurasian Skylark", :scientific_name => "Alauda arvensis")
-Bird.create!(:name => "Common Chaffinch", :scientific_name => "Fringilla coelebs")
-Bird.create!(:name => "Common Moorhen", :scientific_name => "Gallinula chloropus")
-Bird.create!(:name => "Water Pipit", :scientific_name => "Anthus spinoletta")
-Bird.create!(:name => "Mallard", :scientific_name => "Anas platyrhynchos")
-Bird.create!(:name => "Winter Wren", :scientific_name => "Troglodytes troglodytes")
-Bird.create!(:name => "Common Teal", :scientific_name => "Anas crecca")
-Bird.create!(:name => "Green Sandpiper", :scientific_name => "Tringa ochropus")
-Bird.create!(:name => "White Wagtail", :scientific_name => "Motacilla alba")
-Bird.create!(:name => "Eurasian Curlew", :scientific_name => "Numenius arquata")
-Bird.create!(:name => "Song Thrush", :scientific_name => "Turdus philomelos")
-Bird.create!(:name => "European Herring Gull", :scientific_name => "Larus argentatus")
-Bird.create!(:name => "Grey Plover", :scientific_name => "Pluvialis squatarola")
-Bird.create!(:name => "Carrion Crow", :scientific_name => "Corvus corone")
-Bird.create!(:name => "Coal Tit", :scientific_name => "Periparus ater")
-Bird.create!(:name => "Spotted Redshank", :scientific_name => "Tringa erythropus")
-Bird.create!(:name => "Blackcap", :scientific_name => "Sylvia atricapilla")
-Bird.create!(:name => "Egyptian Vulture", :scientific_name => "Neophron percnopterus")
-Bird.create!(:name => "Razorbill", :scientific_name => "Alca torda")
-Bird.create!(:name => "Alpine Swift", :scientific_name => "Apus melba")
-Bird.create!(:name => "Long-legged Buzzard", :scientific_name => "Buteo rufinus")
-Bird.create!(:name => "Audouin`s Gull", :scientific_name => "Larus audouinii")
-Bird.create!(:name => "Balearic Shearwater", :scientific_name => "Puffinus mauretanicus")
-Bird.create!(:name => "Upland Sandpiper", :scientific_name => "Bartramia longicauda")
-Bird.create!(:name => "Greater Spotted Eagle", :scientific_name => "Aquila clanga")
-Bird.create!(:name => "Ring Ouzel", :scientific_name => "Turdus torquatus")
-Bird.create!(:name => "Yellow-browed Warbler", :scientific_name => "Phylloscopus inornatus")
-Bird.create!(:name => "Blue Rock Thrush", :scientific_name => "Monticola solitarius")
-Bird.create!(:name => "Buff-breasted Sandpiper", :scientific_name => "Tryngites subruficollis")
-Bird.create!(:name => "Jack Snipe", :scientific_name => "Lymnocryptes minimus")
-Bird.create!(:name => "White-rumped Sandpiper", :scientific_name => "Calidris fuscicollis")
-Bird.create!(:name => "Ruddy Shelduck", :scientific_name => "Tadorna ferruginea")
-Bird.create!(:name => "Cetti's Warbler", :scientific_name => "Cettia cetti")
-Bird.create!(:name => "Citrine Wagtail", :scientific_name => "Motacilla citreola")
-Bird.create!(:name => "Roseate Tern", :scientific_name => "Sterna dougallii")
-Bird.create!(:name => "Black-legged Kittiwake", :scientific_name => "Rissa tridactyla")
-Bird.create!(:name => "Pygmy Cormorant", :scientific_name => "Phalacrocorax pygmeus")
-Bird.create!(:name => "Booted Eagle", :scientific_name => "Aquila pennata")
-Bird.create!(:name => "Lesser White-fronted Goose", :scientific_name => "Anser erythropus")
-Bird.create!(:name => "Little Bunting", :scientific_name => "Emberiza pusilla")
-Bird.create!(:name => "Eleonora's Falcon", :scientific_name => "Falco eleonorae")
-Bird.create!(:name => "European Serin", :scientific_name => "Serinus serinus")
-Bird.create!(:name => "Twite", :scientific_name => "Carduelis flavirostris")
-Bird.create!(:name => "Yellow-legged Gull", :scientific_name => "Larus michahellis")
-Bird.create!(:name => "Gyr Falcon", :scientific_name => "Falco rusticolus")
-Bird.create!(:name => "Greenish Warbler", :scientific_name => "Phylloscopus trochiloides")
-Bird.create!(:name => "Red-necked Phalarope", :scientific_name => "Phalaropus lobatus")
-Bird.create!(:name => "Mealy Redpoll", :scientific_name => "Carduelis flammea")
-Bird.create!(:name => "Glaucous Gull", :scientific_name => "Larus hyperboreus")
-Bird.create!(:name => "Great Skua", :scientific_name => "Stercorarius skua")
-Bird.create!(:name => "Great Bustard", :scientific_name => "Otis tarda")
-Bird.create!(:name => "Velvet Scoter", :scientific_name => "Melanitta fusca")
-Bird.create!(:name => "Pine Grosbeak", :scientific_name => "Pinicola enucleator")
-Bird.create!(:name => "House Crow", :scientific_name => "Corvus splendens")
-Bird.create!(:name => "Hume`s Leaf Warbler", :scientific_name => "Phylloscopus humei")
-Bird.create!(:name => "Great Northern Loon", :scientific_name => "Gavia immer")
-Bird.create!(:name => "Long-tailed Duck", :scientific_name => "Clangula hyemalis")
-Bird.create!(:name => "Lapland Longspur", :scientific_name => "Calcarius lapponicus")
-Bird.create!(:name => "Northern Gannet", :scientific_name => "Morus bassanus")
-Bird.create!(:name => "Eastern Imperial Eagle", :scientific_name => "Aquila heliaca")
-Bird.create!(:name => "Little Auk", :scientific_name => "Alle alle")
-Bird.create!(:name => "Lesser Spotted Woodpecker", :scientific_name => "Dendrocopos minor")
-Bird.create!(:name => "Iceland Gull", :scientific_name => "Larus glaucoides")
-Bird.create!(:name => "Parasitic Jaeger", :scientific_name => "Stercorarius parasiticus")
-Bird.create!(:name => "Bewick`s Swan", :scientific_name => "Cygnus bewickii")
-Bird.create!(:name => "Little Bustard", :scientific_name => "Tetrax tetrax")
-Bird.create!(:name => "Little Crake", :scientific_name => "Porzana parva")
-Bird.create!(:name => "Baillon`s Crake", :scientific_name => "Porzana pusilla")
-Bird.create!(:name => "Long-tailed Jaeger", :scientific_name => "Stercorarius longicaudus")
-Bird.create!(:name => "King Eider", :scientific_name => "Somateria spectabilis")
-Bird.create!(:name => "Greater Short-toed Lark", :scientific_name => "Calandrella brachydactyla")
-Bird.create!(:name => "Houbara Bustard", :scientific_name => "Chlamydotis undulata")
-Bird.create!(:name => "Curlew Sandpiper", :scientific_name => "Calidris ferruginea")
-Bird.create!(:name => "Common Crossbill", :scientific_name => "Loxia curvirostra")
-Bird.create!(:name => "European Shag", :scientific_name => "Phalacrocorax aristotelis")
-Bird.create!(:name => "Horned Grebe", :scientific_name => "Podiceps auritus")
-Bird.create!(:name => "Common Quail", :scientific_name => "Coturnix coturnix")
-Bird.create!(:name => "Bearded Vulture", :scientific_name => "Gypaetus barbatus")
-Bird.create!(:name => "Lanner Falcon", :scientific_name => "Falco biarmicus")
-Bird.create!(:name => "Middle Spotted Woodpecker", :scientific_name => "Dendrocopos medius")
-Bird.create!(:name => "Pomarine Jaeger", :scientific_name => "Stercorarius pomarinus")
-Bird.create!(:name => "Red-breasted Merganser", :scientific_name => "Mergus serrator")
-Bird.create!(:name => "Eurasian Black Vulture", :scientific_name => "Aegypius monachus")
-Bird.create!(:name => "Eurasian Dotterel", :scientific_name => "Charadrius morinellus")
-Bird.create!(:name => "Common Nightingale", :scientific_name => "Luscinia megarhynchos")
-Bird.create!(:name => "Northern willow warbler", :scientific_name => "Phylloscopus trochilus acredula")
-Bird.create!(:name => "Manx Shearwater", :scientific_name => "Puffinus puffinus")
-Bird.create!(:name => "Northern Fulmar", :scientific_name => "Fulmarus glacialis")
-Bird.create!(:name => "Eurasian Eagle Owl", :scientific_name => "Bubo bubo")
-Bird.create!(:name => "Orphean Warbler", :scientific_name => "Sylvia hortensis")
-Bird.create!(:name => "Melodious Warbler", :scientific_name => "Hippolais polyglotta")
-Bird.create!(:name => "Pallas's Leaf Warbler", :scientific_name => "Phylloscopus proregulus")
-Bird.create!(:name => "Atlantic Puffin", :scientific_name => "Fratercula arctica")
-Bird.create!(:name => "Black-throated Loon", :scientific_name => "Gavia arctica")
-Bird.create!(:name => "Bohemian Waxwing", :scientific_name => "Bombycilla garrulus")
-Bird.create!(:name => "Marsh Sandpiper", :scientific_name => "Tringa stagnatilis")
-Bird.create!(:name => "Great Snipe", :scientific_name => "Gallinago media")
-Bird.create!(:name => "Squacco Heron", :scientific_name => "Ardeola ralloides")
-Bird.create!(:name => "Long-eared Owl", :scientific_name => "Asio otus")
-Bird.create!(:name => "Caspian Tern", :scientific_name => "Hydroprogne caspia")
-Bird.create!(:name => "Red-breasted Goose", :scientific_name => "Branta ruficollis")
-Bird.create!(:name => "Red-throated Loon", :scientific_name => "Gavia stellata")
-Bird.create!(:name => "Common Rosefinch", :scientific_name => "Carpodacus erythrinus")
-Bird.create!(:name => "Red-footed Falcon", :scientific_name => "Falco vespertinus")
-Bird.create!(:name => "Ross's Goose", :scientific_name => "Anser rossii")
-Bird.create!(:name => "Red Phalarope", :scientific_name => "Phalaropus fulicarius")
-Bird.create!(:name => "Pied Wagtail", :scientific_name => "Motacilla yarrellii")
-Bird.create!(:name => "Rose-coloured Starling", :scientific_name => "Sturnus roseus")
-Bird.create!(:name => "Rough-legged Buzzard", :scientific_name => "Buteo lagopus")
-Bird.create!(:name => "Saker Falcon", :scientific_name => "Falco cherrug")
-Bird.create!(:name => "European Roller", :scientific_name => "Coracias garrulus")
-Bird.create!(:name => "Short-toed Eagle", :scientific_name => "Circaetus gallicus")
-Bird.create!(:name => "Peregrine Falcon", :scientific_name => "Falco peregrinus")
-Bird.create!(:name => "Merlin", :scientific_name => "Falco columbarius")
-Bird.create!(:name => "Snow Goose", :scientific_name => "Anser caerulescens")
-Bird.create!(:name => "Snowy Owl", :scientific_name => "Bubo scandiacus")
-Bird.create!(:name => "Snow Bunting", :scientific_name => "Plectrophenax nivalis")
-Bird.create!(:name => "Common Grasshopper Warbler", :scientific_name => "Locustella naevia")
-Bird.create!(:name => "Golden Eagle", :scientific_name => "Aquila chrysaetos")
-Bird.create!(:name => "Black-winged Stilt", :scientific_name => "Himantopus himantopus")
-Bird.create!(:name => "Steppe Eagle", :scientific_name => "Aquila nipalensis")
-Bird.create!(:name => "Pallid Harrier", :scientific_name => "Circus macrourus")
-Bird.create!(:name => "European Storm-petrel", :scientific_name => "Hydrobates pelagicus")
-Bird.create!(:name => "Horned Lark", :scientific_name => "Eremophila alpestris")
-Bird.create!(:name => "Eurasian Treereeper", :scientific_name => "Certhia familiaris")
-Bird.create!(:name => "Taiga Bean Goose", :scientific_name => "Anser fabalis")
-Bird.create!(:name => "Temminck`s Stint", :scientific_name => "Calidris temminckii")
-Bird.create!(:name => "Terek Sandpiper", :scientific_name => "Xenus cinereus")
-Bird.create!(:name => "Tundra Bean Goose", :scientific_name => "Anser serrirostris")
-Bird.create!(:name => "European Turtle Dove", :scientific_name => "Streptopelia turtur")
-Bird.create!(:name => "Leach`s Storm-petrel", :scientific_name => "Oceanodroma leucorhoa")
-Bird.create!(:name => "Eurasian Griffon Vulture", :scientific_name => "Gyps fulvus")
-Bird.create!(:name => "Paddyfield Warbler", :scientific_name => "Acrocephalus agricola")
-Bird.create!(:name => "Osprey", :scientific_name => "Pandion haliaetus")
-Bird.create!(:name => "Firecrest", :scientific_name => "Regulus ignicapilla")
-Bird.create!(:name => "Water Rail", :scientific_name => "Rallus aquaticus")
-Bird.create!(:name => "European Honey Buzzard", :scientific_name => "Pernis apivorus")
-Bird.create!(:name => "Eurasian Golden Oriole", :scientific_name => "Oriolus oriolus")
-Bird.create!(:name => "Whooper Swan", :scientific_name => "Cygnus cygnus")
-Bird.create!(:name => "Two-barred Crossbill", :scientific_name => "Loxia leucoptera")
-Bird.create!(:name => "White-tailed Eagle", :scientific_name => "Haliaeetus albicilla")
-Bird.create!(:name => "Atlantic Murre", :scientific_name => "Uria aalge")
-Bird.create!(:name => "Garganey", :scientific_name => "Anas querquedula")
-Bird.create!(:name => "Black Redstart", :scientific_name => "Phoenicurus ochruros")
-Bird.create!(:name => "Common Scoter", :scientific_name => "Melanitta nigra")
-Bird.create!(:name => "Rock Pipit", :scientific_name => "Anthus petrosus")
-Bird.create!(:name => "Lesser Spotted Eagle", :scientific_name => "Aquila pomarina")
-Bird.create!(:name => "Cattle Egret", :scientific_name => "Bubulcus ibis")
-Bird.create!(:name => "White-winged Black Tern", :scientific_name => "Chlidonias leucopterus")
-Bird.create!(:name => "Black Stork", :scientific_name => "Ciconia nigra")
-Bird.create!(:name => "Mediterranean Gull", :scientific_name => "Larus melanocephalus")
-Bird.create!(:name => "Black Kite", :scientific_name => "Milvus migrans")
-Bird.create!(:name => "Yellow Wagtail", :scientific_name => "Motacilla flavissima")
-Bird.create!(:name => "Red-necked Grebe", :scientific_name => "Podiceps grisegena")
-Bird.create!(:name => "Gull-billed Tern", :scientific_name => "Gelochelidon nilotica")
-Bird.create!(:name => "Pectoral Sandpiper", :scientific_name => "Calidris melanotos")
-Bird.create!(:name => "Barred Warbler", :scientific_name => "Sylvia nisoria")
-Bird.create!(:name => "Red-throated Pipit", :scientific_name => "Anthus cervinus")
-Bird.create!(:name => "Grey Wagtail", :scientific_name => "Motacilla cinerea")
-Bird.create!(:name => "Richard`s Pipit", :scientific_name => "Anthus richardi")
-Bird.create!(:name => "Black Woodpecker", :scientific_name => "Dryocopus martius")
-Bird.create!(:name => "Little Ringed Plover", :scientific_name => "Charadrius dubius")
-Bird.create!(:name => "Whiskered Tern", :scientific_name => "Chlidonias hybrida")
-Bird.create!(:name => "Lesser Redpoll", :scientific_name => "Carduelis cabaret")
-Bird.create!(:name => "Pallas' Bunting", :scientific_name => "Emberiza pallasi")
-Bird.create!(:name => "Ferruginous Duck", :scientific_name => "Aythya nyroca")
-Bird.create!(:name => "Whistling Swan", :scientific_name => "Cygnus columbianus")
-Bird.create!(:name => "Black Brant", :scientific_name => "Branta nigricans")
-Bird.create!(:name => "Marbled Teal", :scientific_name => "Marmaronetta angustirostris")
-Bird.create!(:name => "Canvasback", :scientific_name => "Aythya valisineria")
-Bird.create!(:name => "Redhead", :scientific_name => "Aythya americana")
-Bird.create!(:name => "Lesser Scaup", :scientific_name => "Aythya affinis")
-Bird.create!(:name => "Steller`s Eider", :scientific_name => "Polysticta stelleri")
-Bird.create!(:name => "Spectacled Eider", :scientific_name => "Somateria fischeri")
-Bird.create!(:name => "Harlequin Duck", :scientific_name => "Histronicus histrionicus")
-Bird.create!(:name => "Black Scoter", :scientific_name => "Melanitta americana")
-Bird.create!(:name => "Surf Scoter", :scientific_name => "Melanitta perspicillata")
-Bird.create!(:name => "Barrow`s Goldeneye", :scientific_name => "Bucephala islandica")
-Bird.create!(:name => "Falcated Duck", :scientific_name => "Anas falcata")
-Bird.create!(:name => "American Wigeon", :scientific_name => "Anas americana")
-Bird.create!(:name => "Blue-winged Teal", :scientific_name => "Anas discors")
-Bird.create!(:name => "American Black Duck", :scientific_name => "Anas rubripes")
-Bird.create!(:name => "Baikal Teal", :scientific_name => "Anas formosa")
-Bird.create!(:name => "Green-Winged Teal", :scientific_name => "Anas carolinensis")
-Bird.create!(:name => "Hazel Grouse", :scientific_name => "Bonasa bonasia")
-Bird.create!(:name => "Rock Partridge", :scientific_name => "Alectoris graeca")
-Bird.create!(:name => "Red-legged Partridge", :scientific_name => "Alectoris rufa")
-Bird.create!(:name => "Yellow-billed Loon", :scientific_name => "Gavia adamsii")
-Bird.create!(:name => "Cory`s Shearwater", :scientific_name => "Calonectris borealis")
-Bird.create!(:name => "Madeiran Storm-Petrel", :scientific_name => "Oceanodroma castro")
-Bird.create!(:name => "Great White Pelican", :scientific_name => "Pelecanus onocrotalus")
-Bird.create!(:name => "Dalmatian Pelican", :scientific_name => "Pelecanus crispus")
-Bird.create!(:name => "American Bittern", :scientific_name => "Botaurus lentiginosus")
-Bird.create!(:name => "Glossy Ibis", :scientific_name => "Plegadis falcinellus")
-Bird.create!(:name => "Spanish Imperial Eagle", :scientific_name => "Aquila adalberti")
-Bird.create!(:name => "Lesser Kestrel", :scientific_name => "Falco naumanni")
-Bird.create!(:name => "Houbara Bustard", :scientific_name => "Chlamydotis undulata")
-Bird.create!(:name => "Crab-Plover", :scientific_name => "Dromas ardeola")
-Bird.create!(:name => "Cream-coloured Courser", :scientific_name => "Cursorius cursor")
-Bird.create!(:name => "Collared Pratincole", :scientific_name => "Glareola pratincola")
-Bird.create!(:name => "Black-winged Pratincole", :scientific_name => "Glareola nordmanni")
-Bird.create!(:name => "Killdeer", :scientific_name => "Charadrius vociferus")
-Bird.create!(:name => "Lesser Sand Plover", :scientific_name => "Charadrius mongolus")
-Bird.create!(:name => "Greater Sand Plover", :scientific_name => "Charadrius leschenaultii")
-Bird.create!(:name => "Caspian Plover", :scientific_name => "Charadrius asiaticus")
-Bird.create!(:name => "American Golden Plover", :scientific_name => "Pluvialis dominica")
-Bird.create!(:name => "Pacific Golden Plover", :scientific_name => "Pluvialis fulva")
-Bird.create!(:name => "Sharp-tailed Sandpiper", :scientific_name => "Calidris acuminata")
-Bird.create!(:name => "Broad-billed Sandpiper", :scientific_name => "Limicola falcinellus")
-Bird.create!(:name => "Spoon-Billed Sandpiper", :scientific_name => "Eurynorhynchus pygmaeus")
-Bird.create!(:name => "Short-Billed Dowitcher", :scientific_name => "Limnodromus griseus")
-Bird.create!(:name => "Long-billed Dowitcher", :scientific_name => "Limnodromus scolopaceus")
-Bird.create!(:name => "Hudsonian Godwit", :scientific_name => "Limosa haemastica")
-Bird.create!(:name => "Little Curlew", :scientific_name => "Numenius minutus")
-Bird.create!(:name => "Lesser Yellowlegs", :scientific_name => "Tringa flavipes")
-Bird.create!(:name => "Wilson`s Phalarope", :scientific_name => "Phalaropus tricolor")
-Bird.create!(:name => "Pallas`s Gull", :scientific_name => "Larus ichthyaetus")
-Bird.create!(:name => "Laughing Gull", :scientific_name => "Larus atricilla")
-Bird.create!(:name => "Franklin`s Gull", :scientific_name => "Larus pipixcan")
-Bird.create!(:name => "Bonaparte`s Gull", :scientific_name => "Larus philadelphia")
-Bird.create!(:name => "Ring-billed Gull", :scientific_name => "Larus delawarensis")
-Bird.create!(:name => "American Herring Gull", :scientific_name => "Larus smithsonianus")
-Bird.create!(:name => "Caspian Gull", :scientific_name => "Larus cachinnans")
-Bird.create!(:name => "Ivory Gull", :scientific_name => "Pagophila eburnea")
-Bird.create!(:name => "Royal Tern", :scientific_name => "Sterna maxima")
-Bird.create!(:name => "Brünnich`s Murre", :scientific_name => "Uria lomvia")
-Bird.create!(:name => "Crested Auklet", :scientific_name => "Aethia cristatella")
-Bird.create!(:name => "Parakeet Auklet", :scientific_name => "Cyclorrhynchus psittacula")
-Bird.create!(:name => "Tufted Puffin", :scientific_name => "Lunda cirrhata")
-Bird.create!(:name => "Laughing Dove", :scientific_name => "Streptopelia senegalensis")
-Bird.create!(:name => "Great Spotted Cuckoo", :scientific_name => "Clamator glandarius")
-Bird.create!(:name => "Great Grey Owl", :scientific_name => "Strix nebulosa")
-Bird.create!(:name => "Tengmalm`s Owl", :scientific_name => "Aegolius funereus")
-Bird.create!(:name => "Red-Necked Nightjar", :scientific_name => "Caprimulgus ruficollis")
-Bird.create!(:name => "Chimney Swift", :scientific_name => "Chaetura pelagica")
-Bird.create!(:name => "Green Bea-Eater", :scientific_name => "Merops orientalis")
-Bird.create!(:name => "Grey-headed Woodpecker", :scientific_name => "Picus canus")
-Bird.create!(:name => "Lesser Short-Toed Lark", :scientific_name => "Calandrella rufescens")
-Bird.create!(:name => "Eurasian Crag Martin", :scientific_name => "Hirundo rupestris")
-Bird.create!(:name => "Red-rumped Swallow", :scientific_name => "Cecropis daurica")
-Bird.create!(:name => "Blyth`s Pipit", :scientific_name => "Anthus godlewskii")
-Bird.create!(:name => "Pechora Pipit", :scientific_name => "Anthus gustavi")
-Bird.create!(:name => "Grey-headed Wagtail", :scientific_name => "Motacilla thunbergi")
-Bird.create!(:name => "Yellow-Headed Wagtail", :scientific_name => "Motacilla lutea")
-Bird.create!(:name => "White-throated Dipper", :scientific_name => "Cinclus cinclus")
-Bird.create!(:name => "Rufous-Tailed Scrub Robin", :scientific_name => "Cercotrichas galactotes")
-Bird.create!(:name => "Thrush Nightingale", :scientific_name => "Luscinia luscinia")
-Bird.create!(:name => "White-throated Robin", :scientific_name => "Irania gutturalis")
-Bird.create!(:name => "Caspian Stonechat", :scientific_name => "Saxicola maura variegata")
-Bird.create!(:name => "Western Black-eared Wheatear", :scientific_name => "Oenanthe hispanica")
-Bird.create!(:name => "Rufous-tailed Rock Thrush", :scientific_name => "Monticola saxatilis")
-Bird.create!(:name => "Red-throated Thrush/Black-throated", :scientific_name => "Turdus ruficollis")
-Bird.create!(:name => "American Robin", :scientific_name => "Turdus migratorius")
-Bird.create!(:name => "Zitting Cisticola", :scientific_name => "Cisticola juncidis")
-Bird.create!(:name => "Lanceolated Warbler", :scientific_name => "Locustella lanceolata")
-Bird.create!(:name => "River Warbler", :scientific_name => "Locustella fluviatilis")
-Bird.create!(:name => "Blyth`s Reed Warbler", :scientific_name => "Acrocephalus dumetorum")
-Bird.create!(:name => "Caspian Reed Warbler", :scientific_name => "Acrocephalus fuscus")
-Bird.create!(:name => "Aquatic Warbler", :scientific_name => "Acrocephalus paludicola")
-Bird.create!(:name => "Booted Warbler", :scientific_name => "Acrocephalus caligatus")
-Bird.create!(:name => "Marmora's Warbler", :scientific_name => "Sylvia sarda")
-Bird.create!(:name => "Dartford Warbler", :scientific_name => "Sylvia undata")
-Bird.create!(:name => "Subalpine Warbler", :scientific_name => "Sylvia cantillans")
-Bird.create!(:name => "Ménétries's Warbler", :scientific_name => "Sylvia mystacea")
-Bird.create!(:name => "Rüppel's Warbler", :scientific_name => "Sylvia rueppelli")
-Bird.create!(:name => "Asian Desert Warbler", :scientific_name => "Sylvia nana")
-Bird.create!(:name => "Western Orphean Warbler", :scientific_name => "Sylvia hortensis hortensis")
-Bird.create!(:name => "Arctic Warbler", :scientific_name => "Phylloscopus borealis")
-Bird.create!(:name => "Radde`s Warbler", :scientific_name => "Phylloscopus schwarzi")
-Bird.create!(:name => "Western Bonelli`s Warbler", :scientific_name => "Phylloscopus bonelli")
-Bird.create!(:name => "Red-breasted Flycatcher", :scientific_name => "Ficedula parva")
-Bird.create!(:name => "Eurasian Penduline Tit", :scientific_name => "Remiz pendulinus")
-Bird.create!(:name => "Daurian Shrike", :scientific_name => "Lanius isabellinus")
-Bird.create!(:name => "Long-Tailed Shrike", :scientific_name => "Lanius schach")
-Bird.create!(:name => "Lesser Grey Shrike", :scientific_name => "Lanius minor")
-Bird.create!(:name => "Southern Grey Shrike", :scientific_name => "Lanius meridionalis")
-Bird.create!(:name => "Masked Shrike", :scientific_name => "Lanius nubicus")
-Bird.create!(:name => "Spotted Nutcracker", :scientific_name => "Nucifraga caryocatactes")
-Bird.create!(:name => "Daurian Jackdaw", :scientific_name => "Corvus dauuricus")
-Bird.create!(:name => "Purple-Backed Starling", :scientific_name => "Sturnus sturninus")
-Bird.create!(:name => "Red-Fronted Serin", :scientific_name => "Serinus pusillus")
-Bird.create!(:name => "Arctic Redpoll", :scientific_name => "Carduelis hornemanni")
-Bird.create!(:name => "Scottish Crossbill", :scientific_name => "Loxia scotica")
-Bird.create!(:name => "Parrot Crossbill", :scientific_name => "Loxia pytyopsittacus")
-Bird.create!(:name => "Black-faced Bunting", :scientific_name => "Emberiza spodocephala")
-Bird.create!(:name => "Pink-footed Goose", :scientific_name => "Anser brachyrhynchus")
-Bird.create!(:name => "Black-winged Kite", :scientific_name => "Elanus caeruleus")
-Bird.create!(:name => "European Bee-eater", :scientific_name => "Merops apiaster")
-Bird.create!(:name => "Sabine`s Gull", :scientific_name => "Larus sabini")
-Bird.create!(:name => "Sooty Shearwater", :scientific_name => "Puffinus griseus")
-Bird.create!(:name => "Lesser Canada Goose", :scientific_name => "Branta hutchinsii")
-Bird.create!(:name => "Ring-necked Duck", :scientific_name => "Aythya collaris")
-Bird.create!(:name => "Greater Flamingo", :scientific_name => "Phoenicopterus roseus")
-Bird.create!(:name => "Iberian Chiffchaff", :scientific_name => "Phylloscopus ibericus")
-Bird.create!(:name => "Ashy-headed Wagtail", :scientific_name => "Motacilla cinereocapilla")
-Bird.create!(:name => "Stilt Sandpiper", :scientific_name => "Calidris himantopus")
-Bird.create!(:name => "Siberian Stonechat", :scientific_name => "Saxicola maurus")
-Bird.create!(:name => "Greater Yellowlegs", :scientific_name => "Tringa melanoleuca")
-Bird.create!(:name => "Forster`s Tern", :scientific_name => "Sterna forsteri")
-Bird.create!(:name => "Dusky Warbler", :scientific_name => "Phylloscopus fuscatus")
-Bird.create!(:name => "Cirl Bunting", :scientific_name => "Emberiza cirlus")
-Bird.create!(:name => "Olive-backed Pipit", :scientific_name => "Anthus hodgsoni")
-Bird.create!(:name => "Sociable Lapwing", :scientific_name => "Vanellus gregarius")
-Bird.create!(:name => "Spotted Sandpiper", :scientific_name => "Actitis macularius")
-Bird.create!(:name => "Baird`s Sandpiper", :scientific_name => "Calidris bairdii")
-Bird.create!(:name => "Rustic Bunting", :scientific_name => "Emberiza rustica")
-Bird.create!(:name => "Yellow-browed Bunting", :scientific_name => "Emberiza chrysophrys")
-Bird.create!(:name => "Great Shearwater", :scientific_name => "Puffinus gravis")
-Bird.create!(:name => "Bonelli`s Eagle", :scientific_name => "Aquila fasciata")
-Bird.create!(:name => "Calandra Lark", :scientific_name => "Melanocorypha calandra")
-Bird.create!(:name => "Sardinian Warbler", :scientific_name => "Sylvia melanocephala")
-Bird.create!(:name => "Ross's Gull", :scientific_name => "Larus roseus")
-Bird.create!(:name => "Yellow-Breasted Bunting", :scientific_name => "Emberiza aureola")
-Bird.create!(:name => "Pine Bunting", :scientific_name => "Emberiza leucocephalos")
-Bird.create!(:name => "Black Guillemot", :scientific_name => "Cepphus grylle")
-Bird.create!(:name => "Pied-billed Grebe", :scientific_name => "Podilymbus podiceps")
-Bird.create!(:name => "Soft-plumaged Petrel", :scientific_name => "Pterodroma mollis")
-Bird.create!(:name => "Bulwer's Petrel", :scientific_name => "Bulweria bulwerii")
-Bird.create!(:name => "White-Faced Storm-Petrel", :scientific_name => "Pelagodroma marina")
-Bird.create!(:name => "Pallas’s Fish Eagle", :scientific_name => "Haliaeetus leucoryphus")
-Bird.create!(:name => "Sandhill Crane", :scientific_name => "Grus canadensis")
-Bird.create!(:name => "Macqueen’s Bustard", :scientific_name => "Chlamydotis macqueenii")
-Bird.create!(:name => "White-tailed Lapwing", :scientific_name => "Vanellus leucurus")
-Bird.create!(:name => "Great Knot", :scientific_name => "Calidris tenuirostris")
-Bird.create!(:name => "Semipalmated Sandpiper", :scientific_name => "Calidris pusilla")
-Bird.create!(:name => "Red-necked Stint", :scientific_name => "Calidris ruficollis")
-Bird.create!(:name => "Slender-billed Curlew", :scientific_name => "Numenius tenuirostris")
-Bird.create!(:name => "Bridled Tern", :scientific_name => "Onychoprion anaethetus")
-Bird.create!(:name => "Pallas’s Sandgrouse", :scientific_name => "Syrrhaptes paradoxus")
-Bird.create!(:name => "European Scops Owl", :scientific_name => "Otus scops")
-Bird.create!(:name => "Northern Hawk Owl", :scientific_name => "Surnia ulula")
-Bird.create!(:name => "White-Throated Needletail", :scientific_name => "Hirundapus caudacutus")
-Bird.create!(:name => "Belted Kingfisher", :scientific_name => "Ceryle alcyon")
-Bird.create!(:name => "Blue-cheeked Bee-eater", :scientific_name => "Merops persicus")
-Bird.create!(:name => "Black-headed Wagtail", :scientific_name => "Motacilla feldegg")
-Bird.create!(:name => "Northern Mockingbird", :scientific_name => "Mimus polyglottos")
-Bird.create!(:name => "Alpine Accentor", :scientific_name => "Prunella collaris")
-Bird.create!(:name => "Red-flanked Bluetail", :scientific_name => "Tarsiger cyanurus")
-Bird.create!(:name => "Isabelline Wheatear", :scientific_name => "Oenanthe isabellina")
-Bird.create!(:name => "Pied Wheatear", :scientific_name => "Oenanthe pleschanka")
-Bird.create!(:name => "Eastern Black-eared Wheatear", :scientific_name => "Oenanthe melanoleuca")
-Bird.create!(:name => "Desert Wheatear", :scientific_name => "Oenanthe deserti")
-Bird.create!(:name => "White`s Thrush", :scientific_name => "Zoothera aurea")
-Bird.create!(:name => "Siberian Thrush", :scientific_name => "Zoothera sibirica")
-Bird.create!(:name => "Eyebrowed Thrush", :scientific_name => "Turdus obscurus")
-Bird.create!(:name => "Dusky Thrush", :scientific_name => "Turdus eunomus")
-Bird.create!(:name => "Black-throated Thrush", :scientific_name => "Turdus atrogularis")
-Bird.create!(:name => "Pallas`s Grasshopper Warbler", :scientific_name => "Locustella certhiola")
-Bird.create!(:name => "Spectacled Warbler", :scientific_name => "Sylvia conspicillata")
-Bird.create!(:name => "Two-barred Warbler", :scientific_name => "Phylloscopus plumbeitarsus")
-Bird.create!(:name => "Eastern Bonelli’s Warbler", :scientific_name => "Phylloscopus orientalis")
-Bird.create!(:name => "Collared Flycatcher", :scientific_name => "Ficedula albicollis")
-Bird.create!(:name => "Wallcreeper", :scientific_name => "Tichodroma muraria")
-Bird.create!(:name => "Turkestan Shrike", :scientific_name => "Lanius phoenicuroides")
-Bird.create!(:name => "Steppe Grey Shrike", :scientific_name => "Lanius pallidirostris")
-Bird.create!(:name => "Spanish Sparrow", :scientific_name => "Passer hispaniolensis")
-Bird.create!(:name => "Red-eyed Vireo", :scientific_name => "Vireo olivaceus")
-Bird.create!(:name => "Myrtle Warbler", :scientific_name => "Dendroica coronata")
-Bird.create!(:name => "White-crowned Sparrow", :scientific_name => "Zonotrichia leucophrys")
-Bird.create!(:name => "White-throated Sparrow", :scientific_name => "Zonotrichia albicollis")
-Bird.create!(:name => "Cretzschmar`s Bunting", :scientific_name => "Emberiza caesia")
-Bird.create!(:name => "Chestnut Bunting", :scientific_name => "Emberiza rutila")
-Bird.create!(:name => "Red-headed Bunting", :scientific_name => "Emberiza bruniceps")
-Bird.create!(:name => "Black-headed Bunting", :scientific_name => "Emberiza melanocephala")
-Bird.create!(:name => "Indigo Bunting", :scientific_name => "Passerina cyanea")
-Bird.create!(:name => "Balearic Woodchat Shrike", :scientific_name => "Lanius senator badius")
-Bird.create!(:name => "Demoiselle Crane", :scientific_name => "Grus virgo")
-Bird.create!(:name => "Chough", :scientific_name => "Pyrrhocorax pyrrhocorax")
-Bird.create!(:name => "Red-Billed Chough", :scientific_name => "Pyrrhocorax graculus")
-Bird.create!(:name => "Elegant Tern", :scientific_name => "Sterna elegans")
-Bird.create!(:name => "Chukar", :scientific_name => "Alectoris chukar")
-Bird.create!(:name => "Yellow-Billed Cuckoo", :scientific_name => "Coccyzus americanus")
-Bird.create!(:name => "American Sandwich Tern", :scientific_name => "Sterna sandvicensis acuflavida")
-Bird.create!(:name => "Olive-TreeWarbler", :scientific_name => "Hippolais olivetorum")
-Bird.create!(:name => "Eastern Olivaceous Warbler", :scientific_name => "Acrocephalus pallidus")
-Bird.create!(:name => "Indian Cormorant", :scientific_name => "Phalacrocorax fuscicollis")
-Bird.create!(:name => "Spur-Winged Lapwing", :scientific_name => "Vanellus spinosus")
-Bird.create!(:name => "Yelkouan Shearwater", :scientific_name => "Puffinus yelkouan")
-Bird.create!(:name => "Trumpeter Finch", :scientific_name => "Bucanetes githagineus")
-Bird.create!(:name => "Red Grouse", :scientific_name => "Lagopus scoticus")
-Bird.create!(:name => "Rock Ptarmigan", :scientific_name => "Lagopus mutus")
-Bird.create!(:name => "Long-Tailed Cormorant", :scientific_name => "Phalacrocorax africanus")
-Bird.create!(:name => "Double-crested Cormorant", :scientific_name => "Phalacrocorax auritus")
-Bird.create!(:name => "Magnificent Frigatebird", :scientific_name => "Fregata magnificens")
-Bird.create!(:name => "Naumann's Thrush", :scientific_name => "Turdus naumanni")
-Bird.create!(:name => "Oriental Pratincole", :scientific_name => "Glareola maldivarum")
-Bird.create!(:name => "Bufflehead", :scientific_name => "Bucephala albeola")
-Bird.create!(:name => "Snowfinch", :scientific_name => "Montifrigilla nivalis")
-Bird.create!(:name => "Ural owl", :scientific_name => "Strix uralensis")
-Bird.create!(:name => "Spanish Wagtail", :scientific_name => "Motacilla iberiae")
-Bird.create!(:name => "Song Sparrow", :scientific_name => "Melospiza melodia")
-Bird.create!(:name => "Rock Bunting", :scientific_name => "Emberiza cia")
-Bird.create!(:name => "Siberian Rubythroat", :scientific_name => "Luscinia calliope")
-Bird.create!(:name => "Pallid Swift", :scientific_name => "Apus pallidus")
-Bird.create!(:name => "Eurasian Pygmy Owl", :scientific_name => "Glaucidium passerinum")
-Bird.create!(:name => "Madeira Little Shearwater", :scientific_name => "Puffinus baroli")
-Bird.create!(:name => "House Finch", :scientific_name => "Carpodacus mexicanus")
-Bird.create!(:name => "Green Heron", :scientific_name => "Butorides virescens")
-Bird.create!(:name => "Solitary Sandpiper", :scientific_name => "Tringa solitaria")
-Bird.create!(:name => "Heuglin's Gull", :scientific_name => "Larus heuglini")
-puts "Finished creating birds"
-puts "\n"
-
-# Secrets
-puts "Started creating secrets"
-Secret.create!(:name => "kosmas58", :cogs => 1)
-puts "Finished creating secrets"
-puts "\n"
-
-# Calendar
-puts "Started creating calendar"
-Calendar.create!(:name => "iCal Test Calendar", :color => 16711680 )
-puts "Finished creating calendar"
-puts "\n"
-
-# Events
-puts "Started creating events"
-Event.create(:calendar_id => 1, :starts_at=> 24.hours.from_now, :ends_at => 25.hours.from_now, :summary => "Normal Event", :description => "It's a test!", :location => "Test town")
-Event.create(:calendar_id => 1, :starts_at=> 24.hours.from_now, :ends_at => 49.hours.from_now, :summary => "2 day Event", :description => "It's a test!", :location => "Test town")
-puts "Finished creating events"
-puts "\n"
-
-# DemoTree
-puts "Started creating demo tree"
-DemoTree.create(:parent_id => 0, :position => 0, :left => 1, :right => 14, :title => 'ROOT', :ntype => 'ROOT')
-DemoTree.create(:parent_id => 1, :position => 0, :left => 2, :right => 11, :title => 'C:', :ntype => 'drive')
-DemoTree.create(:parent_id => 2, :position => 0, :left => 3, :right => 6, :title => '_demo', :ntype => 'folder')
-DemoTree.create(:parent_id => 3, :position => 0, :left => 4, :right => 5, :title => 'index.html', :ntype => 'default')
-DemoTree.create(:parent_id => 2, :position => 1, :left => 7, :right => 10, :title => '_docs', :ntype => 'folder')
-DemoTree.create(:parent_id => 1, :position => 1, :left => 12, :right => 13, :title => 'D:', :ntype => 'drive')
-DemoTree.create(:parent_id => 5, :position => 0, :left => 8, :right => 9, :title => 'zmei.html', :ntype => 'default')
-puts "Finished creating demo tree"
-puts "\n"
#NavigationTree
puts "Started creating navigation tree"
@@ -1359,6 +555,10 @@
parent_id = node_402
node_420 = NavigationTree.create_node(:id => parent_id, :seed => true, :position => 2, :title => 'txt.ical.calendar.listing', :type => 'default', :icon => '/images/icons/16x16/working.png', :url => '/widgets/ical/calendars')
parent_id = node_173
+node_484 = NavigationTree.create_node(:id => parent_id, :seed => true, :position => 5, :title => 'txt.tinymce.name', :type => 'folder', :icon => '/images/icons/16x16/editor.png')
+parent_id = node_484
+node_485 = NavigationTree.create_node(:id => parent_id, :seed => true, :position => 0, :title => 'txt.tinymce.default', :type => 'default', :icon => '/images/icons/16x16/editor.png', :url => '/widgets/tiny_mce/default')
+parent_id = node_173
parent_id = node_172
node_421 = NavigationTree.create_node(:id => parent_id, :seed => true, :position => 1, :title => 'txt.graphics.name', :type => 'folder', :icon => '/images/icons/16x16/graphics.png')
parent_id = node_421