disguise 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. data/README.rdoc +26 -24
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/app/models/domain_theme.rb +1 -1
  5. data/app/models/theme.rb +4 -4
  6. data/app/views/admin/themes/_theme.html.erb +3 -3
  7. data/app/views/admin/themes/edit.html.erb +9 -2
  8. data/config/locales/ar.yml +20 -0
  9. data/config/locales/bg.yml +20 -0
  10. data/config/locales/ca.yml +20 -0
  11. data/config/locales/cs.yml +20 -0
  12. data/{locales → config/locales}/da.yml +8 -8
  13. data/config/locales/de.yml +20 -0
  14. data/config/locales/el.yml +20 -0
  15. data/{locales → config/locales}/en.yml +0 -0
  16. data/config/locales/es.yml +20 -0
  17. data/config/locales/et.yml +20 -0
  18. data/config/locales/fa.yml +20 -0
  19. data/config/locales/fi.yml +20 -0
  20. data/{locales → config/locales}/fr.yml +8 -8
  21. data/config/locales/gl.yml +20 -0
  22. data/config/locales/hi.yml +20 -0
  23. data/config/locales/hr.yml +20 -0
  24. data/config/locales/hu.yml +20 -0
  25. data/config/locales/id.yml +20 -0
  26. data/config/locales/it.yml +20 -0
  27. data/config/locales/iw.yml +20 -0
  28. data/config/locales/ja.yml +20 -0
  29. data/config/locales/ko.yml +20 -0
  30. data/config/locales/lt.yml +20 -0
  31. data/config/locales/lv.yml +20 -0
  32. data/config/locales/mt.yml +20 -0
  33. data/config/locales/nl.yml +20 -0
  34. data/config/locales/no.yml +21 -0
  35. data/config/locales/pl.yml +20 -0
  36. data/config/locales/pt-PT.yml +20 -0
  37. data/{locales → config/locales}/pt.yml +0 -0
  38. data/config/locales/ro.yml +20 -0
  39. data/config/locales/ru.yml +20 -0
  40. data/config/locales/sk.yml +20 -0
  41. data/config/locales/sl.yml +20 -0
  42. data/{locales → config/locales}/sq.yml +7 -7
  43. data/config/locales/sr.yml +20 -0
  44. data/config/locales/sv.yml +20 -0
  45. data/config/locales/th.yml +20 -0
  46. data/config/locales/tl.yml +20 -0
  47. data/config/locales/tr.yml +20 -0
  48. data/config/locales/uk.yml +20 -0
  49. data/config/locales/vi.yml +20 -0
  50. data/config/locales/zh-CN.yml +20 -0
  51. data/config/locales/zh-TW.yml +20 -0
  52. data/config/locales/zh.yml +20 -0
  53. data/config/routes.rb +6 -0
  54. data/disguise.gemspec +157 -181
  55. data/lib/disguise.rb +2 -10
  56. data/lib/disguise/config.rb +22 -9
  57. data/lib/disguise/controllers/disguise_application.rb +58 -0
  58. data/lib/disguise/engine.rb +14 -0
  59. data/lib/tasks/diguise.rake +9 -0
  60. data/test/{rails_root → rails_test}/.gitignore +0 -0
  61. data/test/{rails_root → rails_test}/.rake_tasks +0 -0
  62. data/test/rails_test/Gemfile +18 -0
  63. data/test/rails_test/Gemfile.lock +114 -0
  64. data/test/{rails_root → rails_test}/Rakefile +2 -4
  65. data/test/{rails_root → rails_test}/app/controllers/admin/domain_themes_controller.rb +0 -0
  66. data/test/{rails_root → rails_test}/app/controllers/admin/themes_controller.rb +0 -0
  67. data/test/{rails_root → rails_test}/app/controllers/application_controller.rb +0 -0
  68. data/test/{rails_root → rails_test}/app/controllers/default_controller.rb +0 -0
  69. data/test/{rails_root → rails_test}/app/models/.keep +0 -0
  70. data/test/rails_test/app/models/user.rb +3 -0
  71. data/test/{rails_root → rails_test}/app/views/default/index.html.erb +0 -0
  72. data/test/{rails_root → rails_test}/app/views/layouts/default.html.erb +0 -0
  73. data/test/rails_test/config.ru +4 -0
  74. data/test/rails_test/config/application.rb +42 -0
  75. data/test/rails_test/config/boot.rb +13 -0
  76. data/test/rails_test/config/database.yml +14 -0
  77. data/test/rails_test/config/environment.rb +5 -0
  78. data/test/rails_test/config/environments/development.rb +26 -0
  79. data/test/rails_test/config/environments/production.rb +49 -0
  80. data/test/rails_test/config/environments/test.rb +35 -0
  81. data/test/rails_test/config/initializers/backtrace_silencers.rb +7 -0
  82. data/test/rails_test/config/initializers/disguise.rb +5 -0
  83. data/test/{rails_root → rails_test}/config/initializers/inflections.rb +2 -2
  84. data/test/{rails_root → rails_test}/config/initializers/mime_types.rb +0 -0
  85. data/test/rails_test/config/initializers/secret_token.rb +7 -0
  86. data/test/rails_test/config/initializers/session_store.rb +8 -0
  87. data/test/rails_test/config/routes.rb +3 -0
  88. data/test/{rails_root → rails_test}/db/.keep +0 -0
  89. data/test/{rails_root → rails_test}/db/migrate/20090530170040_create_themes.rb +0 -0
  90. data/test/{rails_root → rails_test}/db/migrate/20090602041838_create_users.rb +0 -0
  91. data/test/{rails_root → rails_test}/db/migrate/20090606153236_create_domain_themes.rb +0 -0
  92. data/test/{rails_root → rails_test}/features/step_definitions/webrat_steps.rb +0 -0
  93. data/test/{rails_root → rails_test}/features/support/env.rb +0 -0
  94. data/test/{rails_root → rails_test}/public/.htaccess +0 -0
  95. data/test/rails_test/public/404.html +26 -0
  96. data/test/rails_test/public/422.html +26 -0
  97. data/test/rails_test/public/500.html +26 -0
  98. data/test/{rails_root → rails_test}/public/dispatch.rb +1 -1
  99. data/test/{rails_root → rails_test}/public/favicon.ico +0 -0
  100. data/test/{rails_root → rails_test}/public/images/blue/preview.gif +0 -0
  101. data/test/rails_test/public/images/rails.png +0 -0
  102. data/test/{rails_root → rails_test}/public/javascripts/application.js +0 -0
  103. data/test/{rails_root → rails_test}/public/javascripts/controls.js +75 -73
  104. data/test/{rails_root → rails_test}/public/javascripts/dragdrop.js +171 -169
  105. data/test/{rails_root → rails_test}/public/javascripts/effects.js +180 -177
  106. data/test/rails_test/public/javascripts/prototype.js +6001 -0
  107. data/test/rails_test/public/javascripts/rails.js +175 -0
  108. data/test/rails_test/public/robots.txt +5 -0
  109. data/test/{rails_root/public/stylesheets/.keep → rails_test/public/stylesheets/.gitkeep} +0 -0
  110. data/test/{rails_root/test/functional/.keep → rails_test/public/stylesheets/application.css} +0 -0
  111. data/test/rails_test/script/rails +6 -0
  112. data/test/{rails_root → rails_test}/test/factories.rb +0 -0
  113. data/test/{rails_root/test/integration → rails_test/test/functional}/.keep +0 -0
  114. data/test/{rails_root → rails_test}/test/functional/admin/domain_themes_controller_test.rb +6 -6
  115. data/test/{rails_root → rails_test}/test/functional/admin/themes_controller_test.rb +6 -6
  116. data/test/{rails_root → rails_test}/test/functional/default_controller_test.rb +2 -2
  117. data/test/{rails_root/test/mocks/development → rails_test/test/integration}/.keep +0 -0
  118. data/test/{rails_root → rails_test}/test/test_helper.rb +6 -9
  119. data/test/{rails_root/test/mocks/test → rails_test/test/unit}/.keep +0 -0
  120. data/test/{rails_root → rails_test}/test/unit/domain_theme_test.rb +2 -1
  121. data/test/{rails_root → rails_test}/test/unit/theme_test.rb +4 -2
  122. data/test/{rails_root → rails_test}/themes/blue/description.txt +0 -0
  123. data/test/{rails_root → rails_test}/themes/blue/locales/blue.yml +0 -0
  124. data/test/{rails_root → rails_test}/themes/blue/locales/en.yml +0 -0
  125. data/test/{rails_root → rails_test}/themes/blue/views/default/index.html.erb +0 -0
  126. data/test/{rails_root → rails_test}/themes/blue/views/layouts/default.html.erb +0 -0
  127. data/test/{rails_root → rails_test}/themes/blue/views/layouts/global/_footer.html.erb +0 -0
  128. data/test/{rails_root → rails_test}/themes/blue/views/layouts/global/_head.html.erb +0 -0
  129. data/test/{rails_root → rails_test}/themes/blue/views/layouts/global/_header.html.erb +0 -0
  130. data/test/{rails_root → rails_test}/themes/red/description.txt +0 -0
  131. data/test/{rails_root → rails_test}/themes/red/locales/en.yml +0 -0
  132. data/test/{rails_root → rails_test}/themes/red/views/layouts/default.html.erb +0 -0
  133. data/test/{rails_root → rails_test}/themes/red/views/layouts/global/_footer.html.erb +0 -0
  134. data/test/{rails_root → rails_test}/themes/red/views/layouts/global/_head.html.erb +0 -0
  135. data/test/{rails_root → rails_test}/themes/red/views/layouts/global/_header.html.erb +0 -0
  136. metadata +159 -183
  137. data/config/disguise_routes.rb +0 -7
  138. data/lib/action_controller/disguise_application.rb +0 -61
  139. data/lib/disguise/initialize_routes.rb +0 -8
  140. data/lib/disguise/tasks.rb +0 -34
  141. data/locales/ar.yml +0 -20
  142. data/locales/bg.yml +0 -20
  143. data/locales/ca.yml +0 -20
  144. data/locales/cs.yml +0 -20
  145. data/locales/de.yml +0 -20
  146. data/locales/el.yml +0 -20
  147. data/locales/es.yml +0 -20
  148. data/locales/et.yml +0 -20
  149. data/locales/fa.yml +0 -20
  150. data/locales/fi.yml +0 -20
  151. data/locales/gl.yml +0 -20
  152. data/locales/hi.yml +0 -20
  153. data/locales/hr.yml +0 -20
  154. data/locales/hu.yml +0 -20
  155. data/locales/id.yml +0 -20
  156. data/locales/it.yml +0 -20
  157. data/locales/iw.yml +0 -20
  158. data/locales/ja.yml +0 -20
  159. data/locales/ko.yml +0 -20
  160. data/locales/lt.yml +0 -20
  161. data/locales/lv.yml +0 -20
  162. data/locales/mt.yml +0 -20
  163. data/locales/nl.yml +0 -20
  164. data/locales/no.yml +0 -21
  165. data/locales/pl.yml +0 -20
  166. data/locales/pt-PT.yml +0 -20
  167. data/locales/ro.yml +0 -20
  168. data/locales/ru.yml +0 -20
  169. data/locales/sk.yml +0 -20
  170. data/locales/sl.yml +0 -20
  171. data/locales/sr.yml +0 -20
  172. data/locales/sv.yml +0 -20
  173. data/locales/th.yml +0 -20
  174. data/locales/tl.yml +0 -20
  175. data/locales/tr.yml +0 -20
  176. data/locales/uk.yml +0 -20
  177. data/locales/vi.yml +0 -20
  178. data/locales/zh-CN.yml +0 -20
  179. data/locales/zh-TW.yml +0 -20
  180. data/locales/zh.yml +0 -20
  181. data/rails/init.rb +0 -2
  182. data/tasks/rails.rake +0 -2
  183. data/test/rails_root/Capfile +0 -3
  184. data/test/rails_root/app/models/user.rb +0 -9
  185. data/test/rails_root/config/amazon_s3.yml +0 -14
  186. data/test/rails_root/config/boot.rb +0 -109
  187. data/test/rails_root/config/database.yml +0 -14
  188. data/test/rails_root/config/environment.rb +0 -21
  189. data/test/rails_root/config/environments/development.rb +0 -19
  190. data/test/rails_root/config/environments/production.rb +0 -1
  191. data/test/rails_root/config/environments/test.rb +0 -33
  192. data/test/rails_root/config/global_config.yml +0 -18
  193. data/test/rails_root/config/initializers/disguise.rb +0 -2
  194. data/test/rails_root/config/initializers/requires.rb +0 -13
  195. data/test/rails_root/config/initializers/s3_credentials.rb +0 -9
  196. data/test/rails_root/config/initializers/session_store.rb +0 -8
  197. data/test/rails_root/config/routes.rb +0 -7
  198. data/test/rails_root/public/404.html +0 -30
  199. data/test/rails_root/public/422.html +0 -30
  200. data/test/rails_root/public/500.html +0 -30
  201. data/test/rails_root/public/images/rails.png +0 -0
  202. data/test/rails_root/public/images/red/preview.gif +0 -0
  203. data/test/rails_root/public/javascripts/builder.js +0 -136
  204. data/test/rails_root/public/javascripts/prototype.js +0 -4225
  205. data/test/rails_root/public/javascripts/scriptaculous.js +0 -58
  206. data/test/rails_root/public/javascripts/slider.js +0 -277
  207. data/test/rails_root/public/javascripts/sound.js +0 -60
  208. data/test/rails_root/public/robots.txt +0 -1
  209. data/test/rails_root/public/stylesheets/themes/blue/styles.css +0 -1
  210. data/test/rails_root/public/stylesheets/themes/red/styles.css +0 -1
  211. data/test/rails_root/script/about +0 -3
  212. data/test/rails_root/script/breakpointer +0 -3
  213. data/test/rails_root/script/console +0 -3
  214. data/test/rails_root/script/create_project.rb +0 -52
  215. data/test/rails_root/script/cucumber +0 -7
  216. data/test/rails_root/script/dbconsole +0 -3
  217. data/test/rails_root/script/destroy +0 -3
  218. data/test/rails_root/script/generate +0 -3
  219. data/test/rails_root/script/performance/benchmarker +0 -3
  220. data/test/rails_root/script/performance/profiler +0 -3
  221. data/test/rails_root/script/performance/request +0 -3
  222. data/test/rails_root/script/plugin +0 -3
  223. data/test/rails_root/script/process/inspector +0 -3
  224. data/test/rails_root/script/process/reaper +0 -3
  225. data/test/rails_root/script/process/spawner +0 -3
  226. data/test/rails_root/script/runner +0 -3
  227. data/test/rails_root/script/server +0 -3
  228. data/test/rails_root/test/unit/.keep +0 -0
@@ -0,0 +1,20 @@
1
+ ---
2
+ sr:
3
+ disguise:
4
+ activate_theme_message: "Кликните на неку тему да бисте га активирали"
5
+ add_uri: Додати
6
+ current_theme: "Тренутни Тема"
7
+ delete_uri: Избрисати
8
+ error_creating_domain_theme: "Дошло је до проблема додавање УРЛ: {{error}}"
9
+ name_theme: ~
10
+ no_current_theme: "Тренутно нема тема је одабран за ову апликацију и тако подразумевана апликација приказ ће се користити."
11
+ no_themes_message: "Још увек нисте креирали било тема за ваш захтев. Ако желите да креирате нове теме једноставно покрените генератор тему и следите упутства:"
12
+ remove_all_themes: "Уклонити све теме и користите подразумевана апликација шаблоне"
13
+ set_theme: "Постави Тема"
14
+ theme_removed: "Све теме су уклоњене"
15
+ theme_updated: "Тема је успешно ажуриран."
16
+ theme_uri_label: "Урл за тему"
17
+ update_uri: "Ажурирајте УРЛ"
18
+ uri_deleted: "Наведени УРЛ је обрисана"
19
+ uris_title: "Ова тема ће бити приказан за све следећим сајтовима"
20
+ use_domain_themes: "Актуелне теме ће бити одређен урл наведени за сваку тему испод."
@@ -0,0 +1,20 @@
1
+ ---
2
+ sv:
3
+ disguise:
4
+ activate_theme_message: "Klicka på ett tema till aktivera den"
5
+ add_uri: "Lägg till"
6
+ current_theme: "Aktuellt tema"
7
+ delete_uri: "Ta bort"
8
+ error_creating_domain_theme: "Det var ett problem att lägga till url: {{error}}"
9
+ name_theme: ~
10
+ no_current_theme: "Närvarande inga tema har valts för denna applikation och så standardprogrammet anser kommer att användas."
11
+ no_themes_message: "Du har ännu inte skapat några teman för din ansökan. Om du vill skapa ett nytt tema bara köra temat generator och följ instruktionerna:"
12
+ remove_all_themes: "Ta bort alla teman och använd standardprogrammet mallar"
13
+ set_theme: "Ställ Tema"
14
+ theme_removed: "Alla teman har tagits bort"
15
+ theme_updated: "Tema har uppdaterats."
16
+ theme_uri_label: "Url för tema"
17
+ update_uri: "Uppdatera Url"
18
+ uri_deleted: "Den angivna webbadressen har tagits bort"
19
+ uris_title: "Detta tema kommer att visas för alla följande webbadresser"
20
+ use_domain_themes: "Det aktuella temat kommer att fastställas av webbadressen som anges med varje tema nedan."
@@ -0,0 +1,20 @@
1
+ ---
2
+ th:
3
+ disguise:
4
+ activate_theme_message: คลิกที่รูปเพื่อเปิดใช้งาน
5
+ add_uri: เพิ่ม
6
+ current_theme: "Theme ปัจจุบัน"
7
+ delete_uri: ลบ
8
+ error_creating_domain_theme: "มีปัญหาเพิ่ม url was : {{error}}"
9
+ name_theme: ~
10
+ no_current_theme: ขณะนี้รูปแบบไม่ได้รับเลือกสำหรับโปรแกรมนี้และให้มุมมองเริ่มต้นโปรแกรมจะใช้
11
+ no_themes_message: "คุณยังไม่ได้สร้างรูปแบบใดสำหรับโปรแกรมของคุณ ถ้าคุณต้องการสร้างชุดรูปแบบใหม่เพียงแค่ใช้ theme generator และปฏิบัติตามคำแนะนำ :"
12
+ remove_all_themes: ลบรูปแบบและการประยุกต์ใช้แม่แบบเริ่มต้น
13
+ set_theme: "Theme Set"
14
+ theme_removed: ธีมทั้งหมดถูกลบ
15
+ theme_updated: "Theme ได้รับการปรับปรุงเรียบร้อยแล้ว"
16
+ theme_uri_label: "Url สำหรับ Theme"
17
+ update_uri: "Url Update"
18
+ uri_deleted: "URL ที่ระบุไว้ถูกลบไปแล้ว"
19
+ uris_title: "ชุดรูปแบบนี้จะปรากฏทุก URL ต่อไปนี้"
20
+ use_domain_themes: "ชุดรูปแบบปัจจุบันจะถูกกำหนดโดย url ที่ระบุไว้ด้านล่างมี theme แต่ละ"
@@ -0,0 +1,20 @@
1
+ ---
2
+ tl:
3
+ disguise:
4
+ activate_theme_message: "Mag-click sa isang tema upang ma-activate ito"
5
+ add_uri: Idagdag
6
+ current_theme: "Kasalukuyang Theme"
7
+ delete_uri: Alisin
8
+ error_creating_domain_theme: "May problema sa pagdagdag ng url: {{error}}"
9
+ name_theme: ~
10
+ no_current_theme: "Kasalukuyang walang tema ay pinili para sa aplikasyon na ito at sa gayon ang default na view ng aplikasyon ay gagamitin."
11
+ no_themes_message: "Hindi ka pa nakalikha ng anumang mga tema para sa iyong application. Kung nais mong lumikha ng isang bagong tema lang tumakbo ang tema dyeneretor at sundin ang mga tagubilin:"
12
+ remove_all_themes: "Tanggalin ang lahat ng mga tema at gamitin ang default na application template"
13
+ set_theme: "Itakda ang Theme"
14
+ theme_removed: "Lahat ng mga tema ay tinanggal"
15
+ theme_updated: "Tema ay matagumpay na na-update."
16
+ theme_uri_label: "Url para sa Theme"
17
+ update_uri: "I-update Url"
18
+ uri_deleted: "Ang tinukoy na url ay tinanggal na"
19
+ uris_title: "Ang temang ito ay ipapakita para sa lahat ng mga sumusunod na mga url"
20
+ use_domain_themes: "Ang kasalukuyang tema ay tinutukoy ng ang url na tinukoy sa bawat tema sa ibaba."
@@ -0,0 +1,20 @@
1
+ ---
2
+ tr:
3
+ disguise:
4
+ activate_theme_message: "Tıklayınız tema etkinleştirmek için"
5
+ add_uri: Eklemek
6
+ current_theme: "Geçerli Tema"
7
+ delete_uri: Silmek
8
+ error_creating_domain_theme: "Bir sorun url ekleyerek oldu: {{error}}"
9
+ name_theme: ~
10
+ no_current_theme: "Şu anda herhangi bir tema bu uygulama için seçildi ve böylece varsayılan uygulama görünümü kullanılacaktır."
11
+ no_themes_message: "Henüz başvuru için herhangi bir tema oluşturmadınız. sadece tema jeneratörü çalıştırın ve yönergeleri izleyin yeni bir tema oluşturmak isterseniz:"
12
+ remove_all_themes: "Bütün temaları ve kullanım varsayılan uygulama çıkarmak şablonları"
13
+ set_theme: "Set Tema"
14
+ theme_removed: "Tüm temaların çıkarıldı"
15
+ theme_updated: "Tema başarıyla güncellendi."
16
+ theme_uri_label: "Url Tema için"
17
+ update_uri: "Update Url"
18
+ uri_deleted: "Belirtilen url silindi"
19
+ uris_title: "Bu tema, aşağıdaki adresler için görüntülenir"
20
+ use_domain_themes: "Tema url ile belirtilen belirlenecektir her tema altında."
@@ -0,0 +1,20 @@
1
+ ---
2
+ uk:
3
+ disguise:
4
+ activate_theme_message: "Клацніть по темі, щоб активувати його"
5
+ add_uri: Додавати
6
+ current_theme: "Поточна тема"
7
+ delete_uri: Видаляти
8
+ error_creating_domain_theme: "Існував проблема додати URL: {{error}}"
9
+ name_theme: ~
10
+ no_current_theme: "На даний момент немає тема була обрана для цієї програми, і тому вигляд програми за замовчуванням буде використовуватися."
11
+ no_themes_message: "Ви ще не створив ні теми для вашої програми. Якщо ви хочете створити нову тему просто запустити генератор тему і дотримуйтесь інструкцій:"
12
+ remove_all_themes: "Видалити всі теми і застосування "шаблонів"
13
+ set_theme: "Вибрати тему"
14
+ theme_removed: "Всі теми були видалені"
15
+ theme_updated: "Тема була успішно оновлено."
16
+ theme_uri_label: "Url для Тема"
17
+ update_uri: "Оновлення Url"
18
+ uri_deleted: "Зазначений URL був видалений"
19
+ uris_title: "Ця тема буде відображатися для всіх наступних URL-адрес"
20
+ use_domain_themes: "Поточна тема буде визначатися із зазначеним URL кожній темі нижче."
@@ -0,0 +1,20 @@
1
+ ---
2
+ vi:
3
+ disguise:
4
+ activate_theme_message: "Nhắp chuột vào một chủ đề để kích hoạt nó"
5
+ add_uri: Thêm
6
+ current_theme: "Chủ đề hiện tại"
7
+ delete_uri: Xóa
8
+ error_creating_domain_theme: "Có một vấn đề thêm url: {{error}}"
9
+ name_theme: ~
10
+ no_current_theme: "Hiện nay không có chủ đề được chọn cho ứng dụng này và để mặc định xem ứng dụng sẽ được sử dụng."
11
+ no_themes_message: "Bạn chưa tạo ra bất kỳ chủ đề cho các ứng dụng của bạn. Nếu bạn muốn tạo một chủ đề mới chỉ đơn giản là chạy các máy phát điện chủ đề và làm theo hướng dẫn:"
12
+ remove_all_themes: "Hủy bỏ tất cả các chủ đề và các ứng dụng mặc định sử dụng các mẫu"
13
+ set_theme: "Thiết lập Theme"
14
+ theme_removed: "Tất cả các chủ đề đã được loại bỏ"
15
+ theme_updated: "Chủ đề được cập nhật thành công."
16
+ theme_uri_label: "Url cho Theme"
17
+ update_uri: "Thông Url"
18
+ uri_deleted: "Các url quy định đã được xóa"
19
+ uris_title: "Chủ đề này sẽ được hiển thị cho tất cả các url sau đây"
20
+ use_domain_themes: "Chủ đề của hiện tại sẽ được xác định bằng địa chỉ quy định với từng chủ đề dưới đây."
@@ -0,0 +1,20 @@
1
+ ---
2
+ zh-CN:
3
+ disguise:
4
+ activate_theme_message: 上一主题点击激活它
5
+ add_uri: 加
6
+ current_theme: 当前主题
7
+ delete_uri: 删除
8
+ error_creating_domain_theme: "有一个问题,加入网址:{{error}}"
9
+ name_theme: ~
10
+ no_current_theme: 目前没有任何主题已被选为该应用等应用程序的默认视图将被使用。
11
+ no_themes_message: 您尚未建立您的应用程序的任何主题。如果你想创建一个新的主题,主题是简单地运行发电机,并按照指示:
12
+ remove_all_themes: 删除所有的主题和模板使用默认的应用程序
13
+ set_theme: 设置主题
14
+ theme_removed: 所有的主题已被删除
15
+ theme_updated: 主题已成功更新。
16
+ theme_uri_label: 网址为主题
17
+ update_uri: 更新URL
18
+ uri_deleted: 指定的网址已被删除
19
+ uris_title: 这一主题将显示所有以下网址
20
+ use_domain_themes: 目前的主题,将取决于指定的每个主题下面的网址。
@@ -0,0 +1,20 @@
1
+ ---
2
+ zh-TW:
3
+ disguise:
4
+ activate_theme_message: 點擊一個主題,以激活它
5
+ add_uri: 加
6
+ current_theme: 當前主題
7
+ delete_uri: 刪除
8
+ error_creating_domain_theme: "有一個問題,加入網址:{{error}}"
9
+ name_theme: ~
10
+ no_current_theme: 目前沒有任何主題已被選為該應用等應用程序的默認視圖將被使用。
11
+ no_themes_message: 您尚未創建任何主題為您的應用程序。如果你想創建一個新的主題,主題是簡單地運行發電機,並按照指示:
12
+ remove_all_themes: 刪除所有的主題,並使用默認的應用程序模板
13
+ set_theme: 設置主題
14
+ theme_removed: 所有的主題已被刪除
15
+ theme_updated: 主題已成功更新。
16
+ theme_uri_label: 網址為主題
17
+ update_uri: 更新URL
18
+ uri_deleted: 指定的網址已被刪除
19
+ uris_title: 這一主題將顯示所有以下網址
20
+ use_domain_themes: 目前的主題,將取決於由URL中指定的每個主題下面。
@@ -0,0 +1,20 @@
1
+ ---
2
+ zh:
3
+ disguise:
4
+ activate_theme_message: 上一主题点击激活它
5
+ add_uri: 加
6
+ current_theme: 当前主题
7
+ delete_uri: 删除
8
+ error_creating_domain_theme: "有一个问题,加入网址:{{error}}"
9
+ name_theme: ~
10
+ no_current_theme: 目前没有任何主题已被选为该应用等应用程序的默认视图将被使用。
11
+ no_themes_message: 您尚未建立您的应用程序的任何主题。如果你想创建一个新的主题,主题是简单地运行发电机,并按照指示:
12
+ remove_all_themes: 删除所有的主题和模板使用默认的应用程序
13
+ set_theme: 设置主题
14
+ theme_removed: 所有的主题已被删除
15
+ theme_updated: 主题已成功更新。
16
+ theme_uri_label: 网址为主题
17
+ update_uri: 更新URL
18
+ uri_deleted: 指定的网址已被删除
19
+ uris_title: 这一主题将显示所有以下网址
20
+ use_domain_themes: 目前的主题,将取决于指定的每个主题下面的网址。
@@ -0,0 +1,6 @@
1
+ RailsTest::Application.routes.draw do
2
+ namespace :admin do
3
+ resource :theme, :controller => 'disguise/themes'
4
+ resources :domain_themes, :controller => 'disguise/domain_themes'
5
+ end
6
+ end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{disguise}
8
- s.version = "2.0.0"
8
+ s.version = "3.0.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball"]
@@ -30,7 +30,52 @@ Gem::Specification.new do |s|
30
30
  "app/views/admin/themes/_theme.html.erb",
31
31
  "app/views/admin/themes/edit.html.erb",
32
32
  "app/views/admin/themes/no_themes.html.erb",
33
- "config/disguise_routes.rb",
33
+ "config/locales/ar.yml",
34
+ "config/locales/bg.yml",
35
+ "config/locales/ca.yml",
36
+ "config/locales/cs.yml",
37
+ "config/locales/da.yml",
38
+ "config/locales/de.yml",
39
+ "config/locales/el.yml",
40
+ "config/locales/en.yml",
41
+ "config/locales/es.yml",
42
+ "config/locales/et.yml",
43
+ "config/locales/fa.yml",
44
+ "config/locales/fi.yml",
45
+ "config/locales/fr.yml",
46
+ "config/locales/gl.yml",
47
+ "config/locales/hi.yml",
48
+ "config/locales/hr.yml",
49
+ "config/locales/hu.yml",
50
+ "config/locales/id.yml",
51
+ "config/locales/it.yml",
52
+ "config/locales/iw.yml",
53
+ "config/locales/ja.yml",
54
+ "config/locales/ko.yml",
55
+ "config/locales/lt.yml",
56
+ "config/locales/lv.yml",
57
+ "config/locales/mt.yml",
58
+ "config/locales/nl.yml",
59
+ "config/locales/no.yml",
60
+ "config/locales/pl.yml",
61
+ "config/locales/pt-PT.yml",
62
+ "config/locales/pt.yml",
63
+ "config/locales/ro.yml",
64
+ "config/locales/ru.yml",
65
+ "config/locales/sk.yml",
66
+ "config/locales/sl.yml",
67
+ "config/locales/sq.yml",
68
+ "config/locales/sr.yml",
69
+ "config/locales/sv.yml",
70
+ "config/locales/th.yml",
71
+ "config/locales/tl.yml",
72
+ "config/locales/tr.yml",
73
+ "config/locales/uk.yml",
74
+ "config/locales/vi.yml",
75
+ "config/locales/zh-CN.yml",
76
+ "config/locales/zh-TW.yml",
77
+ "config/locales/zh.yml",
78
+ "config/routes.rb",
34
79
  "db/migrate/20090530170040_create_themes.rb",
35
80
  "db/migrate/20090606153236_create_domain_themes.rb",
36
81
  "disguise.gemspec",
@@ -45,156 +90,87 @@ Gem::Specification.new do |s|
45
90
  "generators/theme/templates/views/_header.html.erb",
46
91
  "generators/theme/templates/views/default.html.erb",
47
92
  "generators/theme/theme_generator.rb",
48
- "lib/action_controller/disguise_application.rb",
49
93
  "lib/disguise.rb",
50
94
  "lib/disguise/config.rb",
51
- "lib/disguise/initialize_routes.rb",
52
- "lib/disguise/tasks.rb",
53
- "locales/ar.yml",
54
- "locales/bg.yml",
55
- "locales/ca.yml",
56
- "locales/cs.yml",
57
- "locales/da.yml",
58
- "locales/de.yml",
59
- "locales/el.yml",
60
- "locales/en.yml",
61
- "locales/es.yml",
62
- "locales/et.yml",
63
- "locales/fa.yml",
64
- "locales/fi.yml",
65
- "locales/fr.yml",
66
- "locales/gl.yml",
67
- "locales/hi.yml",
68
- "locales/hr.yml",
69
- "locales/hu.yml",
70
- "locales/id.yml",
71
- "locales/it.yml",
72
- "locales/iw.yml",
73
- "locales/ja.yml",
74
- "locales/ko.yml",
75
- "locales/lt.yml",
76
- "locales/lv.yml",
77
- "locales/mt.yml",
78
- "locales/nl.yml",
79
- "locales/no.yml",
80
- "locales/pl.yml",
81
- "locales/pt-PT.yml",
82
- "locales/pt.yml",
83
- "locales/ro.yml",
84
- "locales/ru.yml",
85
- "locales/sk.yml",
86
- "locales/sl.yml",
87
- "locales/sq.yml",
88
- "locales/sr.yml",
89
- "locales/sv.yml",
90
- "locales/th.yml",
91
- "locales/tl.yml",
92
- "locales/tr.yml",
93
- "locales/uk.yml",
94
- "locales/vi.yml",
95
- "locales/zh-CN.yml",
96
- "locales/zh-TW.yml",
97
- "locales/zh.yml",
98
- "rails/init.rb",
99
- "tasks/rails.rake",
100
- "test/rails_root/.gitignore",
101
- "test/rails_root/.rake_tasks",
102
- "test/rails_root/Capfile",
103
- "test/rails_root/Rakefile",
104
- "test/rails_root/app/controllers/admin/domain_themes_controller.rb",
105
- "test/rails_root/app/controllers/admin/themes_controller.rb",
106
- "test/rails_root/app/controllers/application_controller.rb",
107
- "test/rails_root/app/controllers/default_controller.rb",
108
- "test/rails_root/app/models/.keep",
109
- "test/rails_root/app/models/user.rb",
110
- "test/rails_root/app/views/default/index.html.erb",
111
- "test/rails_root/app/views/layouts/default.html.erb",
112
- "test/rails_root/config/amazon_s3.yml",
113
- "test/rails_root/config/boot.rb",
114
- "test/rails_root/config/database.yml",
115
- "test/rails_root/config/environment.rb",
116
- "test/rails_root/config/environments/development.rb",
117
- "test/rails_root/config/environments/production.rb",
118
- "test/rails_root/config/environments/test.rb",
119
- "test/rails_root/config/global_config.yml",
120
- "test/rails_root/config/initializers/disguise.rb",
121
- "test/rails_root/config/initializers/inflections.rb",
122
- "test/rails_root/config/initializers/mime_types.rb",
123
- "test/rails_root/config/initializers/requires.rb",
124
- "test/rails_root/config/initializers/s3_credentials.rb",
125
- "test/rails_root/config/initializers/session_store.rb",
126
- "test/rails_root/config/routes.rb",
127
- "test/rails_root/db/.keep",
128
- "test/rails_root/db/migrate/20090530170040_create_themes.rb",
129
- "test/rails_root/db/migrate/20090602041838_create_users.rb",
130
- "test/rails_root/db/migrate/20090606153236_create_domain_themes.rb",
131
- "test/rails_root/features/step_definitions/webrat_steps.rb",
132
- "test/rails_root/features/support/env.rb",
133
- "test/rails_root/public/.htaccess",
134
- "test/rails_root/public/404.html",
135
- "test/rails_root/public/422.html",
136
- "test/rails_root/public/500.html",
137
- "test/rails_root/public/dispatch.rb",
138
- "test/rails_root/public/favicon.ico",
139
- "test/rails_root/public/images/blue/preview.gif",
140
- "test/rails_root/public/images/rails.png",
141
- "test/rails_root/public/images/red/preview.gif",
142
- "test/rails_root/public/javascripts/application.js",
143
- "test/rails_root/public/javascripts/builder.js",
144
- "test/rails_root/public/javascripts/controls.js",
145
- "test/rails_root/public/javascripts/dragdrop.js",
146
- "test/rails_root/public/javascripts/effects.js",
147
- "test/rails_root/public/javascripts/prototype.js",
148
- "test/rails_root/public/javascripts/scriptaculous.js",
149
- "test/rails_root/public/javascripts/slider.js",
150
- "test/rails_root/public/javascripts/sound.js",
151
- "test/rails_root/public/robots.txt",
152
- "test/rails_root/public/stylesheets/.keep",
153
- "test/rails_root/public/stylesheets/themes/blue/styles.css",
154
- "test/rails_root/public/stylesheets/themes/red/styles.css",
155
- "test/rails_root/script/about",
156
- "test/rails_root/script/breakpointer",
157
- "test/rails_root/script/console",
158
- "test/rails_root/script/create_project.rb",
159
- "test/rails_root/script/cucumber",
160
- "test/rails_root/script/dbconsole",
161
- "test/rails_root/script/destroy",
162
- "test/rails_root/script/generate",
163
- "test/rails_root/script/performance/benchmarker",
164
- "test/rails_root/script/performance/profiler",
165
- "test/rails_root/script/performance/request",
166
- "test/rails_root/script/plugin",
167
- "test/rails_root/script/process/inspector",
168
- "test/rails_root/script/process/reaper",
169
- "test/rails_root/script/process/spawner",
170
- "test/rails_root/script/runner",
171
- "test/rails_root/script/server",
172
- "test/rails_root/test/factories.rb",
173
- "test/rails_root/test/functional/.keep",
174
- "test/rails_root/test/functional/admin/domain_themes_controller_test.rb",
175
- "test/rails_root/test/functional/admin/themes_controller_test.rb",
176
- "test/rails_root/test/functional/default_controller_test.rb",
177
- "test/rails_root/test/integration/.keep",
178
- "test/rails_root/test/mocks/development/.keep",
179
- "test/rails_root/test/mocks/test/.keep",
180
- "test/rails_root/test/test_helper.rb",
181
- "test/rails_root/test/unit/.keep",
182
- "test/rails_root/test/unit/domain_theme_test.rb",
183
- "test/rails_root/test/unit/theme_test.rb",
184
- "test/rails_root/themes/blue/description.txt",
185
- "test/rails_root/themes/blue/locales/blue.yml",
186
- "test/rails_root/themes/blue/locales/en.yml",
187
- "test/rails_root/themes/blue/views/default/index.html.erb",
188
- "test/rails_root/themes/blue/views/layouts/default.html.erb",
189
- "test/rails_root/themes/blue/views/layouts/global/_footer.html.erb",
190
- "test/rails_root/themes/blue/views/layouts/global/_head.html.erb",
191
- "test/rails_root/themes/blue/views/layouts/global/_header.html.erb",
192
- "test/rails_root/themes/red/description.txt",
193
- "test/rails_root/themes/red/locales/en.yml",
194
- "test/rails_root/themes/red/views/layouts/default.html.erb",
195
- "test/rails_root/themes/red/views/layouts/global/_footer.html.erb",
196
- "test/rails_root/themes/red/views/layouts/global/_head.html.erb",
197
- "test/rails_root/themes/red/views/layouts/global/_header.html.erb"
95
+ "lib/disguise/controllers/disguise_application.rb",
96
+ "lib/disguise/engine.rb",
97
+ "lib/tasks/diguise.rake",
98
+ "test/rails_test/.gitignore",
99
+ "test/rails_test/.rake_tasks",
100
+ "test/rails_test/Gemfile",
101
+ "test/rails_test/Gemfile.lock",
102
+ "test/rails_test/Rakefile",
103
+ "test/rails_test/app/controllers/admin/domain_themes_controller.rb",
104
+ "test/rails_test/app/controllers/admin/themes_controller.rb",
105
+ "test/rails_test/app/controllers/application_controller.rb",
106
+ "test/rails_test/app/controllers/default_controller.rb",
107
+ "test/rails_test/app/models/.keep",
108
+ "test/rails_test/app/models/user.rb",
109
+ "test/rails_test/app/views/default/index.html.erb",
110
+ "test/rails_test/app/views/layouts/default.html.erb",
111
+ "test/rails_test/config.ru",
112
+ "test/rails_test/config/application.rb",
113
+ "test/rails_test/config/boot.rb",
114
+ "test/rails_test/config/database.yml",
115
+ "test/rails_test/config/environment.rb",
116
+ "test/rails_test/config/environments/development.rb",
117
+ "test/rails_test/config/environments/production.rb",
118
+ "test/rails_test/config/environments/test.rb",
119
+ "test/rails_test/config/initializers/backtrace_silencers.rb",
120
+ "test/rails_test/config/initializers/disguise.rb",
121
+ "test/rails_test/config/initializers/inflections.rb",
122
+ "test/rails_test/config/initializers/mime_types.rb",
123
+ "test/rails_test/config/initializers/secret_token.rb",
124
+ "test/rails_test/config/initializers/session_store.rb",
125
+ "test/rails_test/config/routes.rb",
126
+ "test/rails_test/db/.keep",
127
+ "test/rails_test/db/migrate/20090530170040_create_themes.rb",
128
+ "test/rails_test/db/migrate/20090602041838_create_users.rb",
129
+ "test/rails_test/db/migrate/20090606153236_create_domain_themes.rb",
130
+ "test/rails_test/features/step_definitions/webrat_steps.rb",
131
+ "test/rails_test/features/support/env.rb",
132
+ "test/rails_test/public/.htaccess",
133
+ "test/rails_test/public/404.html",
134
+ "test/rails_test/public/422.html",
135
+ "test/rails_test/public/500.html",
136
+ "test/rails_test/public/dispatch.rb",
137
+ "test/rails_test/public/favicon.ico",
138
+ "test/rails_test/public/images/blue/preview.gif",
139
+ "test/rails_test/public/images/rails.png",
140
+ "test/rails_test/public/javascripts/application.js",
141
+ "test/rails_test/public/javascripts/controls.js",
142
+ "test/rails_test/public/javascripts/dragdrop.js",
143
+ "test/rails_test/public/javascripts/effects.js",
144
+ "test/rails_test/public/javascripts/prototype.js",
145
+ "test/rails_test/public/javascripts/rails.js",
146
+ "test/rails_test/public/robots.txt",
147
+ "test/rails_test/public/stylesheets/.gitkeep",
148
+ "test/rails_test/public/stylesheets/application.css",
149
+ "test/rails_test/script/rails",
150
+ "test/rails_test/test/factories.rb",
151
+ "test/rails_test/test/functional/.keep",
152
+ "test/rails_test/test/functional/admin/domain_themes_controller_test.rb",
153
+ "test/rails_test/test/functional/admin/themes_controller_test.rb",
154
+ "test/rails_test/test/functional/default_controller_test.rb",
155
+ "test/rails_test/test/integration/.keep",
156
+ "test/rails_test/test/test_helper.rb",
157
+ "test/rails_test/test/unit/.keep",
158
+ "test/rails_test/test/unit/domain_theme_test.rb",
159
+ "test/rails_test/test/unit/theme_test.rb",
160
+ "test/rails_test/themes/blue/description.txt",
161
+ "test/rails_test/themes/blue/locales/blue.yml",
162
+ "test/rails_test/themes/blue/locales/en.yml",
163
+ "test/rails_test/themes/blue/views/default/index.html.erb",
164
+ "test/rails_test/themes/blue/views/layouts/default.html.erb",
165
+ "test/rails_test/themes/blue/views/layouts/global/_footer.html.erb",
166
+ "test/rails_test/themes/blue/views/layouts/global/_head.html.erb",
167
+ "test/rails_test/themes/blue/views/layouts/global/_header.html.erb",
168
+ "test/rails_test/themes/red/description.txt",
169
+ "test/rails_test/themes/red/locales/en.yml",
170
+ "test/rails_test/themes/red/views/layouts/default.html.erb",
171
+ "test/rails_test/themes/red/views/layouts/global/_footer.html.erb",
172
+ "test/rails_test/themes/red/views/layouts/global/_head.html.erb",
173
+ "test/rails_test/themes/red/views/layouts/global/_header.html.erb"
198
174
  ]
199
175
  s.homepage = %q{http://github.com/jbasdf/disguise}
200
176
  s.rdoc_options = ["--charset=UTF-8"]
@@ -203,37 +179,37 @@ Gem::Specification.new do |s|
203
179
  s.rubygems_version = %q{1.3.7}
204
180
  s.summary = %q{Easy to use view theme system for Rails}
205
181
  s.test_files = [
206
- "test/rails_root/app/controllers/admin/domain_themes_controller.rb",
207
- "test/rails_root/app/controllers/admin/themes_controller.rb",
208
- "test/rails_root/app/controllers/application_controller.rb",
209
- "test/rails_root/app/controllers/default_controller.rb",
210
- "test/rails_root/app/models/user.rb",
211
- "test/rails_root/config/boot.rb",
212
- "test/rails_root/config/environment.rb",
213
- "test/rails_root/config/environments/development.rb",
214
- "test/rails_root/config/environments/production.rb",
215
- "test/rails_root/config/environments/test.rb",
216
- "test/rails_root/config/initializers/disguise.rb",
217
- "test/rails_root/config/initializers/inflections.rb",
218
- "test/rails_root/config/initializers/mime_types.rb",
219
- "test/rails_root/config/initializers/requires.rb",
220
- "test/rails_root/config/initializers/s3_credentials.rb",
221
- "test/rails_root/config/initializers/session_store.rb",
222
- "test/rails_root/config/routes.rb",
223
- "test/rails_root/db/migrate/20090530170040_create_themes.rb",
224
- "test/rails_root/db/migrate/20090602041838_create_users.rb",
225
- "test/rails_root/db/migrate/20090606153236_create_domain_themes.rb",
226
- "test/rails_root/features/step_definitions/webrat_steps.rb",
227
- "test/rails_root/features/support/env.rb",
228
- "test/rails_root/public/dispatch.rb",
229
- "test/rails_root/script/create_project.rb",
230
- "test/rails_root/test/factories.rb",
231
- "test/rails_root/test/functional/admin/domain_themes_controller_test.rb",
232
- "test/rails_root/test/functional/admin/themes_controller_test.rb",
233
- "test/rails_root/test/functional/default_controller_test.rb",
234
- "test/rails_root/test/test_helper.rb",
235
- "test/rails_root/test/unit/domain_theme_test.rb",
236
- "test/rails_root/test/unit/theme_test.rb"
182
+ "test/rails_test/app/controllers/admin/domain_themes_controller.rb",
183
+ "test/rails_test/app/controllers/admin/themes_controller.rb",
184
+ "test/rails_test/app/controllers/application_controller.rb",
185
+ "test/rails_test/app/controllers/default_controller.rb",
186
+ "test/rails_test/app/models/user.rb",
187
+ "test/rails_test/config/application.rb",
188
+ "test/rails_test/config/boot.rb",
189
+ "test/rails_test/config/environment.rb",
190
+ "test/rails_test/config/environments/development.rb",
191
+ "test/rails_test/config/environments/production.rb",
192
+ "test/rails_test/config/environments/test.rb",
193
+ "test/rails_test/config/initializers/backtrace_silencers.rb",
194
+ "test/rails_test/config/initializers/disguise.rb",
195
+ "test/rails_test/config/initializers/inflections.rb",
196
+ "test/rails_test/config/initializers/mime_types.rb",
197
+ "test/rails_test/config/initializers/secret_token.rb",
198
+ "test/rails_test/config/initializers/session_store.rb",
199
+ "test/rails_test/config/routes.rb",
200
+ "test/rails_test/db/migrate/20090530170040_create_themes.rb",
201
+ "test/rails_test/db/migrate/20090602041838_create_users.rb",
202
+ "test/rails_test/db/migrate/20090606153236_create_domain_themes.rb",
203
+ "test/rails_test/features/step_definitions/webrat_steps.rb",
204
+ "test/rails_test/features/support/env.rb",
205
+ "test/rails_test/public/dispatch.rb",
206
+ "test/rails_test/test/factories.rb",
207
+ "test/rails_test/test/functional/admin/domain_themes_controller_test.rb",
208
+ "test/rails_test/test/functional/admin/themes_controller_test.rb",
209
+ "test/rails_test/test/functional/default_controller_test.rb",
210
+ "test/rails_test/test/test_helper.rb",
211
+ "test/rails_test/test/unit/domain_theme_test.rb",
212
+ "test/rails_test/test/unit/theme_test.rb"
237
213
  ]
238
214
 
239
215
  if s.respond_to? :specification_version then