translation_center 1.5.9 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/generators/translation_center/install/templates/migrations/create_translation_center_translations.rb +26 -8
- data/lib/translation_center/engine.rb +1 -1
- data/lib/translation_center/version.rb +1 -1
- data/test/dummy/log/development.log +64 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- metadata +4 -2
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
class CreateTranslationCenterTranslations < ActiveRecord::Migration
|
|
2
2
|
def change
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
# if mysql
|
|
4
|
+
if ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::Mysql2Adapter)
|
|
5
|
+
|
|
6
|
+
create_table :translation_center_translations, options: 'CHARACTER SET=utf8' do |t|
|
|
7
|
+
t.integer :translation_key_id
|
|
8
|
+
t.string :value
|
|
9
|
+
t.string :lang
|
|
10
|
+
t.references :translator, polymorphic: true
|
|
11
|
+
t.string :status, default: 'pending'
|
|
12
|
+
|
|
13
|
+
t.timestamps
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# else using pgsql
|
|
17
|
+
else
|
|
18
|
+
|
|
19
|
+
create_table :translation_center_translations, options: "ENCODING 'UTF8'" do |t|
|
|
20
|
+
t.integer :translation_key_id
|
|
21
|
+
t.string :value
|
|
22
|
+
t.string :lang
|
|
23
|
+
t.references :translator, polymorphic: true
|
|
24
|
+
t.string :status, default: 'pending'
|
|
25
|
+
|
|
26
|
+
t.timestamps
|
|
27
|
+
end
|
|
28
|
+
|
|
11
29
|
end
|
|
12
30
|
end
|
|
13
31
|
end
|
|
@@ -6,9 +6,9 @@ require 'acts_as_votable'
|
|
|
6
6
|
require 'ya2yaml'
|
|
7
7
|
require 'font-awesome-rails'
|
|
8
8
|
require 'audited-activerecord'
|
|
9
|
+
require 'meta_search'
|
|
9
10
|
|
|
10
11
|
module TranslationCenter
|
|
11
|
-
require 'meta_search'
|
|
12
12
|
|
|
13
13
|
class Engine < ::Rails::Engine
|
|
14
14
|
isolate_namespace TranslationCenter
|
|
@@ -2616541,3 +2616541,67 @@ Served asset /translation_center/loading.gif - 304 Not Modified (29ms)
|
|
|
2616541
2616541
|
[1m[35mTranslationCenter::TranslationKey Load (0.4ms)[0m SELECT `translation_center_translation_keys`.* FROM `translation_center_translation_keys` WHERE `translation_center_translation_keys`.`name` = 'activerecord.models' LIMIT 1
|
|
2616542
2616542
|
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `translation_center_translations` WHERE `translation_center_translations`.`translation_key_id` = 9414 AND `translation_center_translations`.`lang` = 'en'[0m
|
|
2616543
2616543
|
[1m[35mTranslationCenter::Translation Load (0.4ms)[0m SELECT `translation_center_translations`.* FROM `translation_center_translations` WHERE `translation_center_translations`.`translation_key_id` = 9414 AND `translation_center_translations`.`status` = 'accepted' AND `translation_center_translations`.`lang` = 'en' LIMIT 1
|
|
2616544
|
+
Connecting to database specified by database.yml
|
|
2616545
|
+
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
2616546
|
+
Migrating to DeviseCreateUsers (20130410082611)
|
|
2616547
|
+
Migrating to CreateArticles (20130410082701)
|
|
2616548
|
+
Migrating to ActsAsVotableMigration (20130410084711)
|
|
2616549
|
+
Migrating to FixTranslationUserRelation (20130506103956)
|
|
2616550
|
+
Migrating to FixTranslation (20130506103957)
|
|
2616551
|
+
Connecting to database specified by database.yml
|
|
2616552
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
2616553
|
+
Migrating to DeviseCreateUsers (20130410082611)
|
|
2616554
|
+
Migrating to CreateArticles (20130410082701)
|
|
2616555
|
+
Migrating to ActsAsVotableMigration (20130410084711)
|
|
2616556
|
+
Migrating to FixTranslationUserRelation (20130506103956)
|
|
2616557
|
+
Migrating to FixTranslation (20130506103957)
|
|
2616558
|
+
[1m[35m (260.0ms)[0m CREATE TABLE `hoba` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `translation_key_id` int(11), `value` varchar(255), `lang` varchar(255), `translator_id` int(11), `translator_type` varchar(255), `status` varchar(255) DEFAULT 'pending', `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) CHARACTER SET=utf8
|
|
2616559
|
+
[1m[36m (46.1ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130506103957')[0m
|
|
2616560
|
+
Migrating to CreateTranslationCenterCategories (20130410084711234392)
|
|
2616561
|
+
Migrating to CreateTranslationCenterTranslationKeys (20130410084711235054)
|
|
2616562
|
+
Migrating to CreateTranslationCenterTranslations (20130410084711235601)
|
|
2616563
|
+
Migrating to InstallAudited (20130410084711235602)
|
|
2616564
|
+
Migrating to AddDeStatusTranslationCenterTranslationKeys (20130410113111070575)
|
|
2616565
|
+
Migrating to AddArStatusTranslationCenterTranslationKeys (20130417134539377014)
|
|
2616566
|
+
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
|
2616567
|
+
Connecting to database specified by database.yml
|
|
2616568
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
2616569
|
+
[1m[35m (0.1ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
|
2616570
|
+
Migrating to AddArStatusTranslationCenterTranslationKeys (20130417134539377014)
|
|
2616571
|
+
[1m[36m (488.3ms)[0m [1mALTER TABLE `translation_center_translation_keys` DROP `ar_status`[0m
|
|
2616572
|
+
[1m[35m (77.2ms)[0m DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20130417134539377014'
|
|
2616573
|
+
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
2616574
|
+
Connecting to database specified by database.yml
|
|
2616575
|
+
[1m[36m (0.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
2616576
|
+
Migrating to DeviseCreateUsers (20130410082611)
|
|
2616577
|
+
Migrating to CreateArticles (20130410082701)
|
|
2616578
|
+
Migrating to ActsAsVotableMigration (20130410084711)
|
|
2616579
|
+
Migrating to FixTranslationUserRelation (20130506103956)
|
|
2616580
|
+
Migrating to FixTranslation (20130506103957)
|
|
2616581
|
+
Migrating to CreateTranslationCenterCategories (20130410084711234392)
|
|
2616582
|
+
Migrating to CreateTranslationCenterTranslationKeys (20130410084711235054)
|
|
2616583
|
+
Migrating to CreateTranslationCenterTranslations (20130410084711235601)
|
|
2616584
|
+
Migrating to InstallAudited (20130410084711235602)
|
|
2616585
|
+
Migrating to AddDeStatusTranslationCenterTranslationKeys (20130410113111070575)
|
|
2616586
|
+
Migrating to AddArStatusTranslationCenterTranslationKeys (20130417134539377014)
|
|
2616587
|
+
[1m[35m (375.0ms)[0m ALTER TABLE `translation_center_translation_keys` ADD `ar_status` varchar(255) DEFAULT 'untranslated'
|
|
2616588
|
+
[1m[36m (54.7ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130417134539377014')[0m
|
|
2616589
|
+
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
|
2616590
|
+
Connecting to database specified by database.yml
|
|
2616591
|
+
[1m[36m (0.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
|
2616592
|
+
Migrating to DeviseCreateUsers (20130410082611)
|
|
2616593
|
+
Migrating to CreateArticles (20130410082701)
|
|
2616594
|
+
Migrating to ActsAsVotableMigration (20130410084711)
|
|
2616595
|
+
Migrating to FixTranslationUserRelation (20130506103956)
|
|
2616596
|
+
Migrating to FixTranslation (20130506103957)
|
|
2616597
|
+
Migrating to FixOk (20130506103958)
|
|
2616598
|
+
[1m[35m (145.3ms)[0m CREATE TABLE `me` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `translation_key_id` int(11), `value` varchar(255), `lang` varchar(255), `translator_id` int(11), `translator_type` varchar(255), `status` varchar(255) DEFAULT 'pending', `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) CHARACTER SET=utf8
|
|
2616599
|
+
[1m[36m (60.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130506103958')[0m
|
|
2616600
|
+
Migrating to CreateTranslationCenterCategories (20130410084711234392)
|
|
2616601
|
+
Migrating to CreateTranslationCenterTranslationKeys (20130410084711235054)
|
|
2616602
|
+
Migrating to CreateTranslationCenterTranslations (20130410084711235601)
|
|
2616603
|
+
Migrating to InstallAudited (20130410084711235602)
|
|
2616604
|
+
Migrating to AddDeStatusTranslationCenterTranslationKeys (20130410113111070575)
|
|
2616605
|
+
Migrating to AddArStatusTranslationCenterTranslationKeys (20130417134539377014)
|
|
2616606
|
+
[1m[35m (0.3ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
|
2616607
|
+
Connecting to database specified by database.yml
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
23298
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: translation_center
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2013-06-
|
|
14
|
+
date: 2013-06-23 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rails
|
|
@@ -332,6 +332,7 @@ files:
|
|
|
332
332
|
- test/dummy/public/favicon.ico
|
|
333
333
|
- test/dummy/public/500.html
|
|
334
334
|
- test/dummy/public/404.html
|
|
335
|
+
- test/dummy/tmp/pids/server.pid
|
|
335
336
|
- test/dummy/tmp/cache/assets/E64/640/sprockets%2Fdefdf9f0eddac95f602fd8d18c1c9c10
|
|
336
337
|
- test/dummy/tmp/cache/assets/C5A/9B0/sprockets%2F19a7fe49a7e548113c0b258139735629
|
|
337
338
|
- test/dummy/tmp/cache/assets/D01/3C0/sprockets%2Fd3ffab60d107685c7c005db15093237d
|
|
@@ -796,6 +797,7 @@ test_files:
|
|
|
796
797
|
- test/dummy/public/favicon.ico
|
|
797
798
|
- test/dummy/public/500.html
|
|
798
799
|
- test/dummy/public/404.html
|
|
800
|
+
- test/dummy/tmp/pids/server.pid
|
|
799
801
|
- test/dummy/tmp/cache/assets/E64/640/sprockets%2Fdefdf9f0eddac95f602fd8d18c1c9c10
|
|
800
802
|
- test/dummy/tmp/cache/assets/C5A/9B0/sprockets%2F19a7fe49a7e548113c0b258139735629
|
|
801
803
|
- test/dummy/tmp/cache/assets/D01/3C0/sprockets%2Fd3ffab60d107685c7c005db15093237d
|