summaryrefslogtreecommitdiff
path: root/vendor/plugins/globalize2/test/data
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-02-07 15:50:40 +0100
committerhukl <hukl@eight.local>2009-02-07 15:50:40 +0100
commit36a2f1f3c085dd81171cf7d8220770d4ff921ab3 (patch)
tree5ded15331b192bf428af4c94d46d1abb28ef0690 /vendor/plugins/globalize2/test/data
parentce9645d0092d42c7bf8781378181ffbd4ff3d088 (diff)
added globalize2 plugin as well as some modifications
which use the new translation facilities. backend mostly.
Diffstat (limited to 'vendor/plugins/globalize2/test/data')
-rw-r--r--vendor/plugins/globalize2/test/data/locale/all.yml2
-rw-r--r--vendor/plugins/globalize2/test/data/locale/de-DE.yml2
-rw-r--r--vendor/plugins/globalize2/test/data/locale/en-US.yml2
-rw-r--r--vendor/plugins/globalize2/test/data/locale/en-US/module.yml2
-rw-r--r--vendor/plugins/globalize2/test/data/locale/fi-FI/module.yml2
-rw-r--r--vendor/plugins/globalize2/test/data/locale/root.yml0
-rw-r--r--vendor/plugins/globalize2/test/data/no_globalize_schema.rb11
-rw-r--r--vendor/plugins/globalize2/test/data/post.rb8
8 files changed, 29 insertions, 0 deletions
diff --git a/vendor/plugins/globalize2/test/data/locale/all.yml b/vendor/plugins/globalize2/test/data/locale/all.yml
new file mode 100644
index 0000000..ee4fb4a
--- /dev/null
+++ b/vendor/plugins/globalize2/test/data/locale/all.yml
@@ -0,0 +1,2 @@
1en-US:
2 from-all-file: From the "all" file.
diff --git a/vendor/plugins/globalize2/test/data/locale/de-DE.yml b/vendor/plugins/globalize2/test/data/locale/de-DE.yml
new file mode 100644
index 0000000..d4c468e
--- /dev/null
+++ b/vendor/plugins/globalize2/test/data/locale/de-DE.yml
@@ -0,0 +1,2 @@
1de-DE:
2 from-locale-file: Aus der Locale Datei. \ No newline at end of file
diff --git a/vendor/plugins/globalize2/test/data/locale/en-US.yml b/vendor/plugins/globalize2/test/data/locale/en-US.yml
new file mode 100644
index 0000000..866b171
--- /dev/null
+++ b/vendor/plugins/globalize2/test/data/locale/en-US.yml
@@ -0,0 +1,2 @@
1en-US:
2 from-locale-file: From the locale file.
diff --git a/vendor/plugins/globalize2/test/data/locale/en-US/module.yml b/vendor/plugins/globalize2/test/data/locale/en-US/module.yml
new file mode 100644
index 0000000..6655e9b
--- /dev/null
+++ b/vendor/plugins/globalize2/test/data/locale/en-US/module.yml
@@ -0,0 +1,2 @@
1en-US:
2 from-locale-dir: From the locale directory.
diff --git a/vendor/plugins/globalize2/test/data/locale/fi-FI/module.yml b/vendor/plugins/globalize2/test/data/locale/fi-FI/module.yml
new file mode 100644
index 0000000..62d00b1
--- /dev/null
+++ b/vendor/plugins/globalize2/test/data/locale/fi-FI/module.yml
@@ -0,0 +1,2 @@
1fi-FI:
2 from-locale-dir: Locale hakemistosta. \ No newline at end of file
diff --git a/vendor/plugins/globalize2/test/data/locale/root.yml b/vendor/plugins/globalize2/test/data/locale/root.yml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/vendor/plugins/globalize2/test/data/locale/root.yml
diff --git a/vendor/plugins/globalize2/test/data/no_globalize_schema.rb b/vendor/plugins/globalize2/test/data/no_globalize_schema.rb
new file mode 100644
index 0000000..7cfaf69
--- /dev/null
+++ b/vendor/plugins/globalize2/test/data/no_globalize_schema.rb
@@ -0,0 +1,11 @@
1# This schema creates tables without columns for the translated fields
2ActiveRecord::Schema.define do
3 create_table :blogs, :force => true do |t|
4 t.string :name
5 end
6
7 create_table :posts, :force => true do |t|
8 t.references :blog
9 end
10end
11
diff --git a/vendor/plugins/globalize2/test/data/post.rb b/vendor/plugins/globalize2/test/data/post.rb
new file mode 100644
index 0000000..20a2495
--- /dev/null
+++ b/vendor/plugins/globalize2/test/data/post.rb
@@ -0,0 +1,8 @@
1class Post < ActiveRecord::Base
2 translates :subject, :content
3 validates_presence_of :subject
4end
5
6class Blog < ActiveRecord::Base
7 has_many :posts, :order => 'id ASC'
8end