translation_center 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/README.md +3 -2
  2. data/app/assets/stylesheets/translation_center/translation_keys.css +5 -0
  3. data/app/assets/stylesheets/translation_center/translations.css +0 -1
  4. data/app/helpers/translation_center/application_helper.rb +5 -0
  5. data/app/views/translation_center/translation_keys/_show.html.haml +2 -2
  6. data/app/views/translation_center/translation_keys/_show_keys.html.haml +5 -0
  7. data/app/views/translation_center/translations/_index.html.haml +1 -1
  8. data/app/views/translation_center/translations/_show.html.haml +9 -9
  9. data/lib/generators/translation_center/install/templates/config/translation_center.yml +1 -1
  10. data/lib/translation_center.rb +3 -0
  11. data/lib/translation_center/locale/en.yml +65 -0
  12. data/lib/translation_center/translation_helpers.rb +5 -3
  13. data/lib/translation_center/version.rb +1 -1
  14. data/test/dummy/app/assets/javascripts/{posts.js → articles.js} +0 -0
  15. data/test/dummy/app/assets/stylesheets/{posts.css → articles.css} +0 -0
  16. data/test/dummy/app/controllers/articles_controller.rb +85 -0
  17. data/test/dummy/app/helpers/articles_helper.rb +2 -0
  18. data/test/dummy/app/models/article.rb +5 -0
  19. data/test/dummy/app/models/user.rb +1 -5
  20. data/test/dummy/app/views/articles/_form.html.haml +16 -0
  21. data/test/dummy/app/views/articles/edit.html.haml +7 -0
  22. data/test/dummy/app/views/articles/index.html.haml +21 -0
  23. data/test/dummy/app/views/articles/new.html.haml +5 -0
  24. data/test/dummy/app/views/articles/show.html.haml +12 -0
  25. data/test/dummy/config/initializers/devise.rb +13 -5
  26. data/test/dummy/config/locales/devise.en.yml +48 -47
  27. data/test/dummy/config/locales/en.yml +0 -419
  28. data/test/dummy/config/routes.rb +4 -4
  29. data/test/dummy/config/translation_center.yml +45 -11
  30. data/test/dummy/db/migrate/{20121129070437_devise_create_users.rb → 20130410082611_devise_create_users.rb} +0 -1
  31. data/test/dummy/db/migrate/{20121121124501_create_posts.rb → 20130410082701_create_articles.rb} +2 -2
  32. data/test/dummy/db/migrate/{20121219092928182074_create_translation_center_categories.rb → 20130410084711234392_create_translation_center_categories.rb} +0 -0
  33. data/test/dummy/db/migrate/{20121219092928182741_create_translation_center_translation_keys.rb → 20130410084711235054_create_translation_center_translation_keys.rb} +0 -2
  34. data/test/dummy/db/migrate/{20121219092928183282_create_translation_center_translations.rb → 20130410084711235601_create_translation_center_translations.rb} +0 -0
  35. data/test/dummy/db/migrate/{20130103124224_install_audited.rb → 20130410084711235602_install_audited.rb} +0 -0
  36. data/test/dummy/db/migrate/{20130218091808_acts_as_votable_migration.rb → 20130410084711_acts_as_votable_migration.rb} +0 -0
  37. data/test/dummy/db/migrate/20130410113111070575_add_de_status_translation_center_translation_keys.rb +5 -0
  38. data/test/dummy/db/schema.rb +16 -18
  39. data/test/dummy/log/development.log +65885 -0
  40. data/test/dummy/test/fixtures/articles.yml +9 -0
  41. data/test/dummy/test/fixtures/users.yml +1 -1
  42. data/test/dummy/test/functional/articles_controller_test.rb +49 -0
  43. data/test/dummy/test/unit/article_test.rb +7 -0
  44. data/test/dummy/test/unit/helpers/articles_helper_test.rb +4 -0
  45. data/test/dummy/tmp/cache/assets/CD6/F30/sprockets%2F3d4924f68747fc1d600b4d7a0b181f20 +0 -0
  46. data/test/dummy/tmp/cache/assets/CDB/0B0/sprockets%2Fd44248d455dc32b5d0d0694193b9a3f3 +0 -0
  47. data/test/dummy/tmp/cache/assets/CEC/260/sprockets%2F5aac1d5511a4610034d1d00628abd48f +0 -0
  48. data/test/dummy/tmp/cache/assets/D20/350/sprockets%2F35207dd785a3f4e98ceeaf12894a5917 +0 -0
  49. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  50. data/test/dummy/tmp/cache/assets/D3D/A50/sprockets%2F117dc38b0a178661ba6d8ab89dcd3654 +0 -0
  51. data/test/dummy/tmp/cache/assets/D4D/010/sprockets%2Fec636c8534d9e6236a1cd8d7a45e94a7 +0 -0
  52. data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  53. data/test/dummy/tmp/cache/assets/D7E/C10/sprockets%2Fd4ea295413a05aab4f4a3c04a380f3ca +0 -0
  54. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  55. data/test/dummy/tmp/cache/assets/D9C/E20/sprockets%2Fb865317c6a5e8d0a7287d5bbe5aeab34 +0 -0
  56. data/test/dummy/tmp/cache/assets/D9E/B80/sprockets%2F97e683d4fae31c45cfb5db8ad7151c31 +0 -0
  57. data/test/dummy/tmp/cache/assets/DA5/E10/sprockets%2F5832171b4dbe59aae921ccd70f9a9fd8 +0 -0
  58. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  59. data/test/dummy/tmp/pids/server.pid +1 -1
  60. metadata +55 -42
  61. data/test/dummy/app/controllers/posts_controller.rb +0 -84
  62. data/test/dummy/app/helpers/posts_helper.rb +0 -2
  63. data/test/dummy/app/models/post.rb +0 -3
  64. data/test/dummy/app/views/posts/_form.html.haml +0 -16
  65. data/test/dummy/app/views/posts/edit.html.haml +0 -7
  66. data/test/dummy/app/views/posts/index.html.haml +0 -22
  67. data/test/dummy/app/views/posts/new.html.haml +0 -5
  68. data/test/dummy/app/views/posts/show.html.haml +0 -12
  69. data/test/dummy/config/locales/ar.yml +0 -42
  70. data/test/dummy/config/locales/de.yml +0 -12
  71. data/test/dummy/db/migrate/20121219094037954653_add_ar_status_translation_center_translation_keys.rb +0 -5
@@ -1,7 +0,0 @@
1
- %h1 Editing post
2
-
3
- = render 'form'
4
-
5
- = link_to 'Show', @post
6
- \|
7
- = link_to 'Back', posts_path
@@ -1,22 +0,0 @@
1
- %h1= t('.Listing_posts')
2
-
3
- %table
4
- %tr
5
- %th= t('.Title')
6
- %th= t('.Content')
7
- %th
8
- %th
9
- %th
10
-
11
- - @posts.each do |post|
12
- %tr
13
- %td= post.title
14
- %td= post.content
15
- %td= link_to 'Show', post
16
- %td= link_to 'Edit', edit_post_path(post)
17
- %td= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' }
18
-
19
- %br
20
- = t('.testing_new_keys')
21
-
22
- = link_to 'New Post', new_post_path
@@ -1,5 +0,0 @@
1
- %h1 New post
2
-
3
- = render 'form'
4
-
5
- = link_to 'Back', posts_path
@@ -1,12 +0,0 @@
1
- %p#notice= notice
2
-
3
- %p
4
- %b Title:
5
- = @post.title
6
- %p
7
- %b Content:
8
- = @post.content
9
-
10
- = link_to 'Edit', edit_post_path(@post)
11
- \|
12
- = link_to 'Back', posts_path
@@ -1,42 +0,0 @@
1
- ---
2
- ar:
3
- actions:
4
- are_you_sure: "هل أنت متأكد ؟"
5
- activerecord:
6
- attributes:
7
- translation_center/translation_key:
8
- name: اسم
9
- errors:
10
- messages:
11
- taken: محجوز
12
- attributes:
13
- email: "البريد الالكترونى"
14
- password: "كلمة السر"
15
- title: عنوان
16
- layouts:
17
- translation_center:
18
- application:
19
- back_to_app: "العودة إلى الموق"
20
- to: إلى
21
- translate_to: "ترجم إلى"
22
- posts:
23
- index:
24
- Content: المحتوى
25
- Title: عنوان
26
- translation_center:
27
- categories:
28
- category:
29
- complete: مكتمل
30
- keys: مفاتيح
31
- index:
32
- categories: التقسيمات
33
- show:
34
- all: الكل
35
- pending: منتظر
36
- translated: مترجم
37
- untranslated: "غير مترجم"
38
- translation_keys:
39
- show:
40
- Add/Edit_Translation: "عدل/اضف ترجمة"
41
- show_keys:
42
- untranslated: "غير مترجم"
@@ -1,12 +0,0 @@
1
- ---
2
- de:
3
- layouts:
4
- translation_center:
5
- application:
6
- Translation_Center: "Translation Center 1"
7
- from: von
8
- posts:
9
- index:
10
- Content: Content2
11
- Title: Title
12
- testing_new_keys: "new keys"
@@ -1,5 +0,0 @@
1
- class AddArStatusTranslationCenterTranslationKeys < ActiveRecord::Migration
2
- def change
3
- add_column :translation_center_translation_keys, :ar_status, :string, default: 'untranslated'
4
- end
5
- end