tr8n_client_sdk 1.1.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +2 -2
- data/README.md +10 -1
- data/Rakefile +0 -16
- data/app/views/tr8n_client_sdk/tags/_language_selector.html.erb +5 -0
- data/app/views/tr8n_client_sdk/tags/_language_strip.html.erb +10 -10
- data/app/views/tr8n_client_sdk/tags/_powered_by_tr8n.html.erb +1 -1
- data/app/views/tr8n_client_sdk/tags/_scripts.html.erb +75 -20
- data/lib/tasks/tr8n_client_sdk.rake +10 -2
- data/lib/tr8n_client_sdk/engine.rb +9 -1
- data/lib/tr8n_client_sdk/extensions/action_common_methods.rb +31 -22
- data/lib/tr8n_client_sdk/extensions/action_controller_extension.rb +30 -32
- data/lib/tr8n_client_sdk/extensions/action_view_extension.rb +64 -97
- data/lib/{generators/tr8n_client_sdk/tr8n_client_sdk_generator.rb → tr8n_client_sdk/extensions/string.rb} +17 -10
- data/lib/tr8n_client_sdk/railtie.rb +12 -12
- data/lib/tr8n_client_sdk/version.rb +1 -2
- data/lib/tr8n_client_sdk.rb +1 -0
- metadata +21 -962
- data/app/assets/images/tr8n/tr8n_logo.png +0 -0
- data/lib/generators/tr8n_client_sdk/templates/config/tr8n/config.yml +0 -53
- data/lib/generators/tr8n_client_sdk/templates/config/tr8n/tokens/data.yml +0 -45
- data/lib/generators/tr8n_client_sdk/templates/config/tr8n/tokens/decorations.yml +0 -37
- data/lib/tr8n_client_sdk/config.rb +0 -197
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/images/bg-pattern.png +0 -0
- data/test/dummy/app/assets/images/facebook.png +0 -0
- data/test/dummy/app/assets/images/github.png +0 -0
- data/test/dummy/app/assets/images/glyphicons-halflings-white.png +0 -0
- data/test/dummy/app/assets/images/glyphicons-halflings.png +0 -0
- data/test/dummy/app/assets/images/how_it_works_1.gif +0 -0
- data/test/dummy/app/assets/images/how_it_works_2.gif +0 -0
- data/test/dummy/app/assets/images/how_it_works_3.gif +0 -0
- data/test/dummy/app/assets/images/hr.png +0 -0
- data/test/dummy/app/assets/images/linkedin.png +0 -0
- data/test/dummy/app/assets/images/silhouette.gif +0 -0
- data/test/dummy/app/assets/images/twitter.png +0 -0
- data/test/dummy/app/assets/images/wordpress.png +0 -0
- data/test/dummy/app/assets/images/youtube.png +0 -0
- data/test/dummy/app/assets/javascripts/ace/ace.js +0 -11
- data/test/dummy/app/assets/javascripts/ace/ext-static_highlight.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/ext-textarea.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/keybinding-emacs.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/keybinding-vim.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-abap.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-asciidoc.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-c9search.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-c_cpp.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-clojure.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-coffee.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-coldfusion.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-csharp.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-css.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-dart.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-diff.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-dot.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-glsl.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-golang.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-groovy.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-haml.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-haxe.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-html.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-jade.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-java.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-javascript.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-json.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-jsp.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-jsx.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-latex.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-less.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-liquid.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-lisp.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-lua.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-luapage.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-lucene.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-makefile.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-markdown.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-objectivec.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-ocaml.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-perl.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-pgsql.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-php.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-powershell.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-python.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-r.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-rdoc.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-rhtml.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-ruby.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-scad.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-scala.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-scss.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-sh.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-sql.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-stylus.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-svg.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-tcl.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-tex.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-text.js +0 -0
- data/test/dummy/app/assets/javascripts/ace/mode-textile.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-typescript.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-xml.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-xquery.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/mode-yaml.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-ambiance.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-chaos.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-chrome.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-clouds.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-clouds_midnight.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-cobalt.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-crimson_editor.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-dawn.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-dreamweaver.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-eclipse.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-github.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-idle_fingers.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-kr.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-merbivore.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-merbivore_soft.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-mono_industrial.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-monokai.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-pastel_on_dark.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-solarized_dark.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-solarized_light.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-textmate.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-tomorrow.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-tomorrow_night.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-tomorrow_night_blue.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-tomorrow_night_bright.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-tomorrow_night_eighties.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-twilight.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-vibrant_ink.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/theme-xcode.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/worker-coffee.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/worker-css.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/worker-javascript.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/worker-json.js +0 -1
- data/test/dummy/app/assets/javascripts/ace/worker-xquery.js +0 -1
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/javascripts/bootstrap.js +0 -2291
- data/test/dummy/app/assets/javascripts/bootstrap.min.js +0 -7
- data/test/dummy/app/assets/javascripts/jquery-ace.js +0 -195
- data/test/dummy/app/assets/javascripts/jquery-ui-1.10.3.custom.min.js +0 -7
- data/test/dummy/app/assets/javascripts/jquery.tocify.min.js +0 -4
- data/test/dummy/app/assets/javascripts/jquery191.js +0 -16
- data/test/dummy/app/assets/javascripts/prism.js +0 -20
- data/test/dummy/app/assets/javascripts/prism_rails.js +0 -49
- data/test/dummy/app/assets/javascripts/sh.js +0 -573
- data/test/dummy/app/assets/stylesheets/application.css +0 -8
- data/test/dummy/app/assets/stylesheets/bootstrap/bootstrap.css +0 -6315
- data/test/dummy/app/assets/stylesheets/bootstrap/bootstrap.min.css +0 -874
- data/test/dummy/app/assets/stylesheets/bootstrap/bootstrap_and_overrides.css.scss +0 -16
- data/test/dummy/app/assets/stylesheets/jquery.tocify.css +0 -62
- data/test/dummy/app/assets/stylesheets/prism.css +0 -108
- data/test/dummy/app/assets/stylesheets/prism_rails.css.scss +0 -42
- data/test/dummy/app/assets/stylesheets/sh.css +0 -193
- data/test/dummy/app/controllers/application_controller.rb +0 -82
- data/test/dummy/app/controllers/docs_controller.rb +0 -42
- data/test/dummy/app/controllers/home_controller.rb +0 -34
- data/test/dummy/app/controllers/login_controller.rb +0 -55
- data/test/dummy/app/controllers/signup_controller.rb +0 -58
- data/test/dummy/app/controllers/welcome_controller.rb +0 -30
- data/test/dummy/app/helpers/application_helper.rb +0 -26
- data/test/dummy/app/mailers/request_mailer.rb +0 -38
- data/test/dummy/app/models/user.rb +0 -48
- data/test/dummy/app/views/docs/index.html.erb +0 -591
- data/test/dummy/app/views/docs/installation.html.erb +0 -59
- data/test/dummy/app/views/docs/test.html.erb +0 -17
- data/test/dummy/app/views/docs/tml.html.erb +0 -176
- data/test/dummy/app/views/docs/tml_content.html.erb +0 -33
- data/test/dummy/app/views/home/index.html.erb +0 -107
- data/test/dummy/app/views/layouts/_flashes.html.erb +0 -35
- data/test/dummy/app/views/layouts/_footer.html.erb +0 -31
- data/test/dummy/app/views/layouts/_head.html.erb +0 -8
- data/test/dummy/app/views/layouts/_header.html.erb +0 -73
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/app/views/login/_common.html.erb +0 -29
- data/test/dummy/app/views/login/cookies.html.erb +0 -20
- data/test/dummy/app/views/login/index.html.erb +0 -1
- data/test/dummy/app/views/login/out.html.erb +0 -1
- data/test/dummy/app/views/signup/index.html.erb +0 -22
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/a@_[6b714be8673fcc4a3].json +0 -69
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[de].json +0 -290
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[en-US].json +0 -1435
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[en].json +0 -1424
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[fr].json +0 -298
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[ru].json +0 -550
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[zh].json +0 -272
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-index].json +0 -1150
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-installation].json +0 -422
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-tml].json +0 -445
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-tml_content].json +0 -40
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home-index].json +0 -746
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-index].json +0 -1135
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-installation].json +0 -389
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-tml].json +0 -413
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-tml_content].json +0 -41
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home-index].json +0 -689
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-index].json +0 -1041
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-installation].json +0 -357
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-tml].json +0 -379
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-tml_content].json +0 -38
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home-index].json +0 -632
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-index].json +0 -1165
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-installation].json +0 -434
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-tml].json +0 -476
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-tml_content].json +0 -40
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home-index].json +0 -742
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-index].json +0 -1251
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-installation].json +0 -457
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-tml].json +0 -521
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-tml_content].json +0 -45
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home-index].json +0 -809
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-index].json +0 -1135
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-installation].json +0 -391
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-tml].json +0 -415
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-tml_content].json +0 -41
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home-index].json +0 -693
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/a@_[6b714be8673fcc4a3].json +0 -69
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[de].json +0 -290
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[en-US].json +0 -1435
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[en].json +0 -1424
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[fr].json +0 -298
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[ru].json +0 -550
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[zh].json +0 -272
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-index].json +0 -1150
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-installation].json +0 -422
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-tml].json +0 -445
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-tml_content].json +0 -40
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home-index].json +0 -746
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-index].json +0 -1135
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-installation].json +0 -389
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-tml].json +0 -413
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-tml_content].json +0 -41
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home-index].json +0 -689
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-index].json +0 -1041
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-installation].json +0 -357
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-tml].json +0 -379
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-tml_content].json +0 -38
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home-index].json +0 -632
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-index].json +0 -1165
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-installation].json +0 -434
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-tml].json +0 -476
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-tml_content].json +0 -40
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home-index].json +0 -742
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-index].json +0 -1251
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-installation].json +0 -457
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-tml].json +0 -521
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-tml_content].json +0 -45
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home-index].json +0 -809
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-login-cookies].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-index].json +0 -1135
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-installation].json +0 -391
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-tml].json +0 -415
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-tml_content].json +0 -41
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home-index].json +0 -693
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home-upgrade_cache].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home].json +0 -6
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-login-cookies].json +0 -6
- data/test/dummy/config/application.rb +0 -59
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -39
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -37
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mail.rb +0 -14
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -8
- data/test/dummy/config/tr8n/config.yml +0 -55
- data/test/dummy/config/tr8n/tokens/data.yml +0 -45
- data/test/dummy/config/tr8n/tokens/decorations.yml +0 -37
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130506202619_create_users.rb +0 -16
- data/test/dummy/db/schema.rb +0 -29
- data/test/dummy/log/development.log +0 -64950
- data/test/dummy/log/tr8n.log +0 -19947
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/dummy/spec/models/request_spec.rb +0 -5
- data/test/dummy/spec/models/user_spec.rb +0 -5
- data/test/dummy/tmp/cache/assets/BCA/680/sprockets%2F0e766e5046b2556242937265334a7776 +0 -0
- data/test/dummy/tmp/cache/assets/C41/5A0/sprockets%2Ff3979161c897640872293fb74f7e4185 +0 -0
- data/test/dummy/tmp/cache/assets/C69/980/sprockets%2F1289412d200b47c7f5ba1714da031188 +0 -0
- data/test/dummy/tmp/cache/assets/C80/840/sprockets%2F562c2d168da585f80579347d10790a0a +0 -0
- data/test/dummy/tmp/cache/assets/C85/8C0/sprockets%2F262c6124c54467ed84e71473a5748a2f +0 -0
- data/test/dummy/tmp/cache/assets/C9B/B70/sprockets%2F3c5f068b5a07f9215020042ed660bb45 +0 -0
- data/test/dummy/tmp/cache/assets/CAC/8A0/sprockets%2Fb3da0b5a24a9277687d1b973d1638126 +0 -0
- data/test/dummy/tmp/cache/assets/CB0/D20/sprockets%2F0850d836310c2fc600217ce3f894f9c8 +0 -0
- data/test/dummy/tmp/cache/assets/CB1/E50/sprockets%2Fea7a0c10450c627f752b87495d915b66 +0 -0
- data/test/dummy/tmp/cache/assets/CBF/A00/sprockets%2F82c0bd0c273938e78e80698057bf165e +0 -0
- data/test/dummy/tmp/cache/assets/CC3/730/sprockets%2F730877507dec32fd7d2e038899bb8067 +0 -0
- data/test/dummy/tmp/cache/assets/CC6/350/sprockets%2F7486d25d54ef6d9548205d5a17ff3468 +0 -0
- data/test/dummy/tmp/cache/assets/CC7/620/sprockets%2F395359137b16e965efa7fa58db855904 +0 -0
- data/test/dummy/tmp/cache/assets/CC7/A90/sprockets%2F77713cc98a179981d615f84f952add24 +0 -0
- data/test/dummy/tmp/cache/assets/CD5/2C0/sprockets%2F166c056119ebdfb8b7104c97b424b423 +0 -0
- data/test/dummy/tmp/cache/assets/CD6/450/sprockets%2Ff0c4fb28a62f912b5542965358a10a1f +0 -0
- data/test/dummy/tmp/cache/assets/CD6/C30/sprockets%2Fe15182011d74255aa67fde5a783dd612 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/F00/sprockets%2F2344b925523c2c28a3fd1e73ad5f9181 +0 -0
- data/test/dummy/tmp/cache/assets/CD9/BA0/sprockets%2Fb9fa8aa2057e7d8702f10317694a8c10 +0 -0
- data/test/dummy/tmp/cache/assets/CE2/720/sprockets%2F922b15b49871931e5df1d0a2be4826f8 +0 -0
- data/test/dummy/tmp/cache/assets/CE3/EB0/sprockets%2F28ee30e42c7c583083e76a377df3035d +0 -0
- data/test/dummy/tmp/cache/assets/CE5/650/sprockets%2F8ab512c9b33ac90e699b73469d71f061 +0 -0
- data/test/dummy/tmp/cache/assets/CE8/2F0/sprockets%2Fb74ee6e80ba2911167d148d791d6728c +0 -0
- data/test/dummy/tmp/cache/assets/CEE/D60/sprockets%2F7b699b03f091fe228759da88a323a56f +0 -0
- data/test/dummy/tmp/cache/assets/CF0/450/sprockets%2F65704938b67ef6b06e386cea3c1848b6 +0 -0
- data/test/dummy/tmp/cache/assets/CF1/5A0/sprockets%2Fec49552e4a6b67bee359e0485610d887 +0 -0
- data/test/dummy/tmp/cache/assets/CFC/880/sprockets%2Fd89c211d7a3dc2a94a7625d7155000ab +0 -0
- data/test/dummy/tmp/cache/assets/D05/210/sprockets%2F5d0d1d45d694d6d4f803a9a1340b741c +0 -0
- data/test/dummy/tmp/cache/assets/D05/820/sprockets%2Fee427231dd340c1b50573f187a8a6d5d +0 -0
- data/test/dummy/tmp/cache/assets/D09/6F0/sprockets%2F0f69fe87b4b574153bdc60711a6ca208 +0 -0
- data/test/dummy/tmp/cache/assets/D0A/C20/sprockets%2Fd177dbfcd8235d07a0072c4d9c307385 +0 -0
- data/test/dummy/tmp/cache/assets/D0C/820/sprockets%2F1002e68d7cf06571cb63a864f93bb4e3 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/A30/sprockets%2F71398e105f60c431f86d78e3abbbf125 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/FF0/sprockets%2F2c4cc11f6c24fbb41d97713864854d1f +0 -0
- data/test/dummy/tmp/cache/assets/D18/E00/sprockets%2Ff017e80af40be5c829882bd1885a38f4 +0 -0
- data/test/dummy/tmp/cache/assets/D19/120/sprockets%2F69f0907662f738cd217edca24ef2328d +0 -0
- data/test/dummy/tmp/cache/assets/D25/FD0/sprockets%2F03006f6bba722ebc14ceac8221b81917 +0 -0
- data/test/dummy/tmp/cache/assets/D26/7C0/sprockets%2F771cba4a2e4f22141377c4eccc1065c0 +0 -0
- data/test/dummy/tmp/cache/assets/D28/B20/sprockets%2Fbd19c0bc42912a8ba7c5c3b100f71592 +0 -0
- data/test/dummy/tmp/cache/assets/D29/280/sprockets%2F04fd073ef39e04ced71111a204cb70e6 +0 -0
- data/test/dummy/tmp/cache/assets/D29/320/sprockets%2Feb3792401fd26ebf610c8531b0a4bd32 +0 -0
- data/test/dummy/tmp/cache/assets/D29/AF0/sprockets%2F841d8c0c4ba32a5e25aa41b7069ba581 +0 -0
- data/test/dummy/tmp/cache/assets/D32/4F0/sprockets%2Fb8023435d8d01feca8fd3a1ce9144181 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D38/DB0/sprockets%2Fe848eed2f10d359a60040b50d486b3fd +0 -0
- data/test/dummy/tmp/cache/assets/D39/6E0/sprockets%2F4d3170e44fdaa2f62cc266b62e5925e4 +0 -0
- data/test/dummy/tmp/cache/assets/D3C/2C0/sprockets%2F9c4d26aabdb46cc90d0228c79344950e +0 -0
- data/test/dummy/tmp/cache/assets/D3D/2D0/sprockets%2Fc83c38e1374d350196211ce9ffed3aa6 +0 -0
- data/test/dummy/tmp/cache/assets/D3D/970/sprockets%2F23fb0067086af38f593481abd034deff +0 -0
- data/test/dummy/tmp/cache/assets/D41/C20/sprockets%2F5b768ca318275843ae6b901bb9cca29e +0 -0
- data/test/dummy/tmp/cache/assets/D42/030/sprockets%2Ff991fbde306579de4c94d611ced13023 +0 -0
- data/test/dummy/tmp/cache/assets/D47/A20/sprockets%2F9f6654abeaa85f117a98806392ac2a8d +0 -0
- data/test/dummy/tmp/cache/assets/D47/D00/sprockets%2Fd76fe4489f3b7f2cd62450204cef631f +0 -0
- data/test/dummy/tmp/cache/assets/D4A/640/sprockets%2F94ec7bb9872d4b005d267d56cb80f7e4 +0 -0
- data/test/dummy/tmp/cache/assets/D4C/020/sprockets%2F2c26fac647b394d5f49b2743950aefe9 +0 -0
- data/test/dummy/tmp/cache/assets/D4D/A20/sprockets%2F0de50df58d85f5cce135f460979bd472 +0 -0
- data/test/dummy/tmp/cache/assets/D4D/E30/sprockets%2F828b744b9a72d6b05ace77264f878bdb +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D53/1E0/sprockets%2F6d4776ffd4fc7486550b6508cb2dd57e +0 -0
- data/test/dummy/tmp/cache/assets/D5A/B70/sprockets%2F7b76786736bb5e9eeb4887dd32c83ec2 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D62/720/sprockets%2F34a95b2bb07a4fbd408c81f1c37bd860 +0 -0
- data/test/dummy/tmp/cache/assets/D69/B50/sprockets%2F1c7aa58ab12825ccfb465ca5e7c77551 +0 -0
- data/test/dummy/tmp/cache/assets/D6F/220/sprockets%2F99d4cd656c271484bee1a14ac84e5ad2 +0 -0
- data/test/dummy/tmp/cache/assets/D74/280/sprockets%2F049b078c38d43fbe7e6b1eb49da1b775 +0 -0
- data/test/dummy/tmp/cache/assets/D74/9A0/sprockets%2F049cf32cc869e7138b76f1bb04ae78ad +0 -0
- data/test/dummy/tmp/cache/assets/D77/770/sprockets%2F67b869074d0a5b5bb8698e55ccca47aa +0 -0
- data/test/dummy/tmp/cache/assets/D7A/290/sprockets%2F5acdbbb05bd53866c8225e95f8e805e8 +0 -0
- data/test/dummy/tmp/cache/assets/D7A/2A0/sprockets%2F91a461699d36fdd71c4cec0a8d737cf4 +0 -0
- data/test/dummy/tmp/cache/assets/D7C/5B0/sprockets%2F2b864c6eb9b8d679b2716db1a1e93c8f +0 -0
- data/test/dummy/tmp/cache/assets/D82/930/sprockets%2Fecdc4c7caa1aa683b13d14a91234b452 +0 -0
- data/test/dummy/tmp/cache/assets/D8D/610/sprockets%2Ffb7e1b81f737cb510ac8166a241bbc4c +0 -0
- data/test/dummy/tmp/cache/assets/D91/080/sprockets%2Fbcca522c6302f184f12fe0e8a7d7e71a +0 -0
- data/test/dummy/tmp/cache/assets/D91/2B0/sprockets%2F354460cd2db93ca02614a4bb76ffde3e +0 -0
- data/test/dummy/tmp/cache/assets/D96/DA0/sprockets%2F55af2375310fff6b9706cbacfb2ec540 +0 -0
- data/test/dummy/tmp/cache/assets/D9E/F30/sprockets%2Fc32ceef2bde9f93b4c5b866c8200371c +0 -0
- data/test/dummy/tmp/cache/assets/D9F/300/sprockets%2Fc13fc73ceafa45876a901b3e775b83ae +0 -0
- data/test/dummy/tmp/cache/assets/D9F/390/sprockets%2Fe2fc3cc13d4d3677be6574e0fd2732cf +0 -0
- data/test/dummy/tmp/cache/assets/DAA/A50/sprockets%2F231c56d70690f8b4f8f6fea2cea9d39b +0 -0
- data/test/dummy/tmp/cache/assets/DB5/350/sprockets%2F3b5ebcf21def6fff9868a18e239495f1 +0 -0
- data/test/dummy/tmp/cache/assets/DB9/150/sprockets%2Fdaff6d12c8afc96d0c91d77e91d79966 +0 -0
- data/test/dummy/tmp/cache/assets/DC9/DB0/sprockets%2F43a2aed943cbb05dcc84468c73ddea55 +0 -0
- data/test/dummy/tmp/cache/assets/DCE/310/sprockets%2F2f221a6c5ffcaf07ef30f4ee9a793b44 +0 -0
- data/test/dummy/tmp/cache/assets/DD2/750/sprockets%2Ff70dee8c3d675153ad76abe3f730dc4f +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/DFF/270/sprockets%2Fb84f2daecc65ed711132bff2d8f5fe08 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E13/010/sprockets%2Feecfc58398a4d26289a5e0fe9ecd09ec +0 -0
- data/test/dummy/tmp/cache/assets/E23/880/sprockets%2F436adfe0b6333bf5af1eaaf3ea4e919b +0 -0
- data/test/dummy/tmp/cache/assets/E25/4F0/sprockets%2Fa24db6eec8d3a80f7fe3a50b4cdd243f +0 -0
- data/test/dummy/tmp/cache/assets/E2C/210/sprockets%2Fdd7b14fc1e5b2b7dcdac381cc7f9c267 +0 -0
- data/test/dummy/tmp/cache/assets/E3A/950/sprockets%2F8a6c7c212feec8ae888ad7e7fa50a3ff +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_accordion.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_alerts.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_breadcrumbs.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_button-groups.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_buttons.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_carousel.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_close.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_code.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_component-animations.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_dropdowns.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_grid.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_hero-unit.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_labels-badges.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_layouts.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_media.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_modals.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_navbar.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_navs.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_pager.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_pagination.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_popovers.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_progress-bars.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_reset.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_responsive-1200px-min.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_responsive-767px-max.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_responsive-768px-979px.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_responsive-navbar.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_responsive-utilities.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_scaffolding.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_sprites.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_thumbnails.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_tooltip.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_type.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_utilities.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_wells.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/responsive.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2a9f8d893763e4aeafa77aedd38023c2d92257b4/bootstrap-responsive.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2bca5584fcb1177ad07e4f21325c39e4eda592bf/bootstrap_and_overrides.css.scssc +0 -0
- data/test/integration/navigation_test.rb +0 -10
- data/test/test_helper.rb +0 -15
- data/test/tr8n_client_sdk_test.rb +0 -7
@@ -1,591 +0,0 @@
|
|
1
|
-
<div style="background:white;padding-top:10px;padding-bottom:600px;margin-bottom:20px; border-radius:10px;">
|
2
|
-
<div class="row">
|
3
|
-
|
4
|
-
<div class="span3" style="">
|
5
|
-
<div id="toc"></div>
|
6
|
-
</div>
|
7
|
-
<div class="span9">
|
8
|
-
<div class="hero-unit" style="margin-right:10px;">
|
9
|
-
<div class="text-center">
|
10
|
-
<%= image_tag('tr8n/tr8n_logo.png') %>
|
11
|
-
</div>
|
12
|
-
<h2 class="text-center"><%= tr("Tr8n Documentation & Samples") %></h2>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<h1><%= tr("Introduction") %></h1>
|
16
|
-
<p>
|
17
|
-
<%= tr("This document will provide you with some examples of how to use TML (Translation Markup Language) inside your Rails application.") %>
|
18
|
-
<%= tr("A similar document is included with every Tr8n Client SDK to ensure that all samples work the same.") %>
|
19
|
-
</p>
|
20
|
-
|
21
|
-
<h1><%= tr("Translation Markup Language") %></h1>
|
22
|
-
|
23
|
-
<h2><%= tr("Basics") %></h2>
|
24
|
-
|
25
|
-
<%= tr("Tr8n extends Controller helpers and provides a translation function, called \"tr\".") %>
|
26
|
-
|
27
|
-
<%= tr("The function can be called in any one of the following ways:") %>
|
28
|
-
|
29
|
-
<pre><code class="language-ruby">tr(label, description, tokens = {}, options = {})</code></pre>
|
30
|
-
|
31
|
-
<%= tr("If you don't need description, then you can use:") %>
|
32
|
-
|
33
|
-
<pre><code class="language-ruby">tr(label, tokens = {}, options = {})</code></pre>
|
34
|
-
|
35
|
-
<%= tr("If you have a hash of parameters, you can call the function with it:") %>
|
36
|
-
|
37
|
-
<pre><code class="language-ruby">tr(params = {:label => LABEL, :tokens => TOKENS, :options => OPTIONS})</code></pre>
|
38
|
-
|
39
|
-
<%= tr("Alternatively, you can use string extensions:") %>
|
40
|
-
|
41
|
-
<pre><code class="language-ruby">"some text".translate(description, tokens = {}, options = {}, language = Tr8n.config.current_language)
|
42
|
-
|
43
|
-
"some text".translate(tokens = {}, options = {}, language = Tr8n.config.current_language)
|
44
|
-
</code></pre>
|
45
|
-
|
46
|
-
<%= tr("Similarly, you can also go directly to the language:") %>
|
47
|
-
|
48
|
-
<pre><code class="language-ruby">Tr8n.config.current_language.translate(label, description, tokens = {}, options = {})
|
49
|
-
|
50
|
-
Tr8n.config.current_language.translate(label, tokens = {}, options = {})
|
51
|
-
</code></pre>
|
52
|
-
|
53
|
-
|
54
|
-
<%= tr("Tr8n provides a number of helper methods that are available in views and controllers:") %>
|
55
|
-
|
56
|
-
<pre><code class="language-ruby">tr8n_current_language.translate(label, description, tokens = {}, options = {})
|
57
|
-
</code></pre>
|
58
|
-
|
59
|
-
<%= tr("You can even do things like this:") %>
|
60
|
-
<pre><code class="language-ruby">tr8n_application.language('ru').translate(label, description, tokens = {}, options = {})
|
61
|
-
</code></pre>
|
62
|
-
|
63
|
-
|
64
|
-
<h4><%= tr("Setup") %></h4>
|
65
|
-
|
66
|
-
<%= tr("Before we begin, we need to setup a couple of users we will be using in all of the examples:") %>
|
67
|
-
|
68
|
-
<pre><code class="language-ruby">male = User.new(:name => "Michael", :gender => "male")
|
69
|
-
|
70
|
-
female = User.new(:name => "Anna", :gender => "female")
|
71
|
-
</code></pre>
|
72
|
-
|
73
|
-
<%
|
74
|
-
male = User.new(:name => "Michael", :gender => "male")
|
75
|
-
female = User.new(:name => "Anna", :gender => "female")
|
76
|
-
%>
|
77
|
-
|
78
|
-
<%= tr("Alternatively, we could use Hashes to represent objects:") %>
|
79
|
-
|
80
|
-
<pre><code class="language-ruby">male = {:name => "Michael", :gender => "male"}
|
81
|
-
|
82
|
-
female = {:name => "Anna", :gender => "female"}
|
83
|
-
</code></pre>
|
84
|
-
|
85
|
-
<h2><%= tr("Data Tokens") %></h2>
|
86
|
-
<pre><code class="language-ruby">tr("Hello {user}", :user => "Michael")</code></pre>
|
87
|
-
<div class="example">
|
88
|
-
<div class="title">results in</div>
|
89
|
-
<div class="content">
|
90
|
-
<%=tr("Hello {user}", :user => "Michael") %>
|
91
|
-
</div>
|
92
|
-
</div>
|
93
|
-
|
94
|
-
<pre><code class="language-ruby">tr("Hello {user}", :user => male)</code></pre>
|
95
|
-
<div class="example">
|
96
|
-
<div class="title">results in</div>
|
97
|
-
<div class="content">
|
98
|
-
<%=tr("Hello {user}", :user => male) %>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
|
102
|
-
<pre><code class="language-ruby">tr("Hello {user}", :user => [male, "Michael B."])</code></pre>
|
103
|
-
<div class="example">
|
104
|
-
<div class="title">results in</div>
|
105
|
-
<div class="content">
|
106
|
-
<%=tr("Hello {user}", :user => [male, "Michael B."]) %>
|
107
|
-
</div>
|
108
|
-
</div>
|
109
|
-
|
110
|
-
<pre><code class="language-ruby">tr("Hello {user}", :user => [male, :name])</code></pre>
|
111
|
-
<div class="example">
|
112
|
-
<div class="title">results in</div>
|
113
|
-
<div class="content">
|
114
|
-
<%=tr("Hello {user}", :user => [male, :name]) %>
|
115
|
-
</div>
|
116
|
-
</div>
|
117
|
-
|
118
|
-
<pre><code class="language-ruby">tr("Hello {user}", :user => {:object => male, :attribute => :name})</code></pre>
|
119
|
-
<div class="example">
|
120
|
-
<div class="title">results in</div>
|
121
|
-
<div class="content">
|
122
|
-
<%=tr("Hello {user}", :user => {:object => male, :attribute => :name}) %>
|
123
|
-
</div>
|
124
|
-
</div>
|
125
|
-
|
126
|
-
<pre><code class="language-ruby">tr("Hello {user}", :user => {:object => {:name => "Alex"}, :attribute => :name})</code></pre>
|
127
|
-
<div class="example">
|
128
|
-
<div class="title">results in</div>
|
129
|
-
<div class="content">
|
130
|
-
<%=tr("Hello {user}", :user => {:object => {:name => "Alex"}, :attribute => :name}) %>
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
|
135
|
-
<h2><%= tr("Method Tokens") %></h2>
|
136
|
-
<pre><code class="language-ruby">tr("Hello {user.name}, you are a {user.gender}", :user => male)</code></pre>
|
137
|
-
|
138
|
-
<div class="example">
|
139
|
-
<div class="title">results in</div>
|
140
|
-
<div class="content">
|
141
|
-
<%=tr("Hello {user.name}, you are a {user.gender}", :user => male) %>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<h2><%= tr("Piped Tokens") %></h2>
|
146
|
-
<pre><code class="language-ruby">tr("You have {count|| message}", :count => 5)</code></pre>
|
147
|
-
|
148
|
-
<div class="example">
|
149
|
-
<div class="title">results in</div>
|
150
|
-
<div class="content">
|
151
|
-
<%=tr("You have {count|| message}", :count => 5) %>
|
152
|
-
</div>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
<pre><code class="language-ruby">tr("You have {count|| message, messages}", :count => 5)</code></pre>
|
156
|
-
|
157
|
-
<div class="example">
|
158
|
-
<div class="title">results in</div>
|
159
|
-
<div class="content">
|
160
|
-
<%=tr("You have {count|| message, messages}", :count => 5) %>
|
161
|
-
</div>
|
162
|
-
</div>
|
163
|
-
|
164
|
-
<pre><code class="language-ruby">tr("You have {count|| one: message, other: messages}", :count => 5)</code></pre>
|
165
|
-
|
166
|
-
<div class="example">
|
167
|
-
<div class="title">results in</div>
|
168
|
-
<div class="content">
|
169
|
-
<%=tr("You have {count|| one: message, other: messages}", :count => 5) %>
|
170
|
-
</div>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
<pre><code class="language-ruby">tr("{user|| male: родился, female: родилась, other: родился/лась } в Ленинграде.", {:user => male}, {:locale => 'ru'})</code></pre>
|
174
|
-
|
175
|
-
<div class="example">
|
176
|
-
<div class="title">results in</div>
|
177
|
-
<div class="content">
|
178
|
-
<%=tr("{user|| male: родился, female: родилась, other: родился/лась } в Ленинграде.", {:user => male}, {:locale => 'ru'}) %>
|
179
|
-
</div>
|
180
|
-
</div>
|
181
|
-
|
182
|
-
|
183
|
-
<h2><%= tr("Implied Tokens") %></h2>
|
184
|
-
<%= tr("Implied token is a piped token that uses a single pipe. It indicates that the sentence translation may depend on the token value. At the same time, the token itself is not displayed in the phrase. Below are some examples:") %>
|
185
|
-
|
186
|
-
<pre><code class="language-ruby">tr("{user| He, She} likes this movie. ", :user => male)</code></pre>
|
187
|
-
|
188
|
-
<div class="example">
|
189
|
-
<div class="title">results in</div>
|
190
|
-
<div class="content">
|
191
|
-
<%=tr("{user| He, She } likes this movie.", :user => male) %>
|
192
|
-
</div>
|
193
|
-
</div>
|
194
|
-
|
195
|
-
<pre><code class="language-ruby">tr("{user| male: He, female: She} likes this movie.", :user => male)</code></pre>
|
196
|
-
|
197
|
-
<div class="example">
|
198
|
-
<div class="title">results in</div>
|
199
|
-
<div class="content">
|
200
|
-
<%=tr("{user| male: He, female: She} likes this movie.", :user => male) %>
|
201
|
-
</div>
|
202
|
-
</div>
|
203
|
-
|
204
|
-
<pre><code class="language-ruby">tr("{user| Born on}: ", :user => male)</code></pre>
|
205
|
-
|
206
|
-
<div class="example">
|
207
|
-
<div class="title">results in</div>
|
208
|
-
<div class="content">
|
209
|
-
<%=tr("{user| Born on}: ", :user => male) %>
|
210
|
-
</div>
|
211
|
-
</div>
|
212
|
-
|
213
|
-
<h2><%=tr("Decoration Tokens") %></h2>
|
214
|
-
<%=tr("Decoration tokens are used to inject HTML styling into translations.") %>
|
215
|
-
|
216
|
-
<pre><code class="language-ruby">tr("Hello [bold: World]", :bold => lambda{|value| "<strong>#{value}</strong>"})</code></pre>
|
217
|
-
|
218
|
-
<div class="example">
|
219
|
-
<div class="title">results in</div>
|
220
|
-
<div class="content">
|
221
|
-
<%=tr("Hello [bold: World]", :bold => lambda{|value| "<strong>#{value}</strong>"}) %>
|
222
|
-
</div>
|
223
|
-
</div>
|
224
|
-
|
225
|
-
<pre><code class="language-ruby">tr("Hello [bold: World]", :bold => "<strong>{$0}</strong>")</code></pre>
|
226
|
-
|
227
|
-
<div class="example">
|
228
|
-
<div class="title">results in</div>
|
229
|
-
<div class="content">
|
230
|
-
<%=tr("Hello [bold: World]", :bold => "<strong>{$0}</strong>") %>
|
231
|
-
</div>
|
232
|
-
</div>
|
233
|
-
|
234
|
-
<pre><code class="language-ruby">tr("Hello [bold: World]")</code></pre>
|
235
|
-
|
236
|
-
<div class="example">
|
237
|
-
<div class="title">results in</div>
|
238
|
-
<div class="content">
|
239
|
-
<%=tr("Hello [bold: World]") %>
|
240
|
-
</div>
|
241
|
-
</div>
|
242
|
-
|
243
|
-
<pre><code class="language-ruby">tr("[link] click here to view this section of the document [/link]", :link => {:href => "/docs#DecorationTokens"})</code></pre>
|
244
|
-
|
245
|
-
<div class="example">
|
246
|
-
<div class="title">results in</div>
|
247
|
-
<div class="content">
|
248
|
-
<%=tr("[link] click here to view this section of the document [/link]", :link => {:href => "/docs#DecorationTokens"}) %>
|
249
|
-
</div>
|
250
|
-
</div>
|
251
|
-
|
252
|
-
<pre><code class="language-ruby">tr("[link] [bold: click here] to view [underline: this section] of the document [/link]",
|
253
|
-
:link => {:href => "/docs#DecorationTokens"},
|
254
|
-
:underline => lambda{|value| "<span style='text-decoration: underline'>#{value}</span>"}
|
255
|
-
)</code></pre>
|
256
|
-
|
257
|
-
<div class="example">
|
258
|
-
<div class="title">results in</div>
|
259
|
-
<div class="content">
|
260
|
-
<%=tr("[link] [bold: click here] to view [underline: this section] of the document [/link]",
|
261
|
-
:link => {:href => "/docs#DecorationTokens"},
|
262
|
-
:underline => lambda{|value| "<span style='text-decoration: underline'>#{value}</span>"}
|
263
|
-
)
|
264
|
-
%>
|
265
|
-
</div>
|
266
|
-
</div>
|
267
|
-
|
268
|
-
<h2><%=tr("Nested Tokens") %></h2>
|
269
|
-
<pre><code class="language-ruby">tr("You have [link: {count||message}]", :count => 10, :link => lambda{|value| link_to(value, "")})</code></pre>
|
270
|
-
|
271
|
-
<div class="example">
|
272
|
-
<div class="title">results in</div>
|
273
|
-
<div class="content">
|
274
|
-
<%=tr("You have [link: {count||message}]", :count => 10, :link => lambda{|value| link_to(value, "")}) %>
|
275
|
-
</div>
|
276
|
-
</div>
|
277
|
-
|
278
|
-
<pre><code class="language-ruby">tr("You have [link: [bold: {count}] {count|message}]", :count => 10, :link => lambda{|value| link_to(value.html_safe, "")})</code></pre>
|
279
|
-
|
280
|
-
<div class="example">
|
281
|
-
<div class="title">results in</div>
|
282
|
-
<div class="content">
|
283
|
-
<%=tr("You have [link: [bold: {count}] {count|message}]", :count => 10, :link => lambda{|value| link_to(value.html_safe, "")}) %>
|
284
|
-
</div>
|
285
|
-
</div>
|
286
|
-
|
287
|
-
|
288
|
-
<h2><%=tr("Array Tokens") %></h2>
|
289
|
-
|
290
|
-
<%=tr("Options:") %>
|
291
|
-
|
292
|
-
<pre><code class="language-ruby">
|
293
|
-
{
|
294
|
-
:expandable => true,
|
295
|
-
:to_sentence => true,
|
296
|
-
:limit => 4,
|
297
|
-
:separator => ',',
|
298
|
-
:andor => 'and',
|
299
|
-
:translate_items => false,
|
300
|
-
:minimizable => true
|
301
|
-
}
|
302
|
-
</code></pre>
|
303
|
-
|
304
|
-
<pre><code class="language-ruby">tr("{users} joined the site.", :users => [[male, female]])</code></pre>
|
305
|
-
|
306
|
-
<div class="example">
|
307
|
-
<div class="title">results in</div>
|
308
|
-
<div class="content">
|
309
|
-
<%=tr("{users} joined the site.", :users => [[male, female], [:name], {:andor => "or"}]) %>
|
310
|
-
</div>
|
311
|
-
</div>
|
312
|
-
|
313
|
-
<pre><code class="language-ruby">tr("{users} joined the site.", :users => [[male, female], [:name], {:andor => "or"}])</code></pre>
|
314
|
-
|
315
|
-
<div class="example">
|
316
|
-
<div class="title">results in</div>
|
317
|
-
<div class="content">
|
318
|
-
<%=tr("{users} joined the site.", :users => [[male, female], [:name], {:andor => "or"}]) %>
|
319
|
-
</div>
|
320
|
-
</div>
|
321
|
-
|
322
|
-
<pre><code class="language-ruby">tr("{users} joined the site.", :users => [[male, female], [:name], {:to_sentence => false}])</code></pre>
|
323
|
-
|
324
|
-
<div class="example">
|
325
|
-
<div class="title">results in</div>
|
326
|
-
<div class="content">
|
327
|
-
<%=tr("{users} joined the site.", :users => [[male, female], [:name], {:to_sentence => false}]) %>
|
328
|
-
</div>
|
329
|
-
</div>
|
330
|
-
|
331
|
-
<pre><code class="language-ruby">tr("{users} joined the site.", :users => [[male, male, female, male, female, female, male, female], [:name], {:to_sentence => false}])</code></pre>
|
332
|
-
|
333
|
-
<div class="example">
|
334
|
-
<div class="title">results in</div>
|
335
|
-
<div class="content">
|
336
|
-
<%=tr("{users} joined the site.", :users => [[male, male, female, male, female, female, male, female], [:name], {}]) %>
|
337
|
-
</div>
|
338
|
-
</div>
|
339
|
-
|
340
|
-
|
341
|
-
<h1><%=tr("Context Rules") %></h1>
|
342
|
-
|
343
|
-
<h2><%=tr("Numbers") %></h2>
|
344
|
-
<pre><code class="language-ruby">1.upto(10) do |i|
|
345
|
-
tr("You have {count||message}", :count => i)
|
346
|
-
end</code></pre>
|
347
|
-
<div class="example">
|
348
|
-
<div class="title">results in</div>
|
349
|
-
<div class="content">
|
350
|
-
<% 1.upto(10) do |i| %>
|
351
|
-
<%=tr("You have {count||message}", :count => i) %><br>
|
352
|
-
<% end %>
|
353
|
-
</div>
|
354
|
-
</div>
|
355
|
-
|
356
|
-
<h2><%=tr("Genders") %></h2>
|
357
|
-
<pre><code class="language-ruby">[male, female].each do |user|
|
358
|
-
tr("{user} uploaded {user|his,her} photo", :user => user)
|
359
|
-
end</code></pre>
|
360
|
-
<div class="example">
|
361
|
-
<div class="title">results in</div>
|
362
|
-
<div class="content">
|
363
|
-
<% [male, female].each do |user| %>
|
364
|
-
<%=tr("{user} uploaded {user|his,her} photo", :user => user) %><br>
|
365
|
-
<% end %>
|
366
|
-
</div>
|
367
|
-
</div>
|
368
|
-
|
369
|
-
<h2><%=tr("Dates") %></h2>
|
370
|
-
<pre><code class="language-ruby">[Date.today, Date.today - 1.day, Date.today+1.day].each do |date|
|
371
|
-
tr("{user} {date| past: celebrated, present: celebrates, future: will celebrate} {user| his, her} birthday on {date}", :user => male, :date => date)
|
372
|
-
end</code></pre>
|
373
|
-
<div class="example">
|
374
|
-
<div class="title">results in</div>
|
375
|
-
<div class="content">
|
376
|
-
<% [Date.today, Date.today - 1.day, Date.today+1.day].each do |date| %>
|
377
|
-
<%=tr("{user} {date| past: celebrated, present: celebrates, future: will celebrate} {user| his, her} birthday on {date}", :user => male, :date => date) %><br>
|
378
|
-
<% end %>
|
379
|
-
</div>
|
380
|
-
</div>
|
381
|
-
|
382
|
-
<h2><%=tr("Lists") %></h2>
|
383
|
-
<pre><code class="language-ruby">[[male], [male, female]].each do |users|
|
384
|
-
tr("{users||likes, like} this photo", :users => users)
|
385
|
-
end</code></pre>
|
386
|
-
<div class="example">
|
387
|
-
<div class="title">results in</div>
|
388
|
-
<div class="content">
|
389
|
-
<% [[male], [male, female]].each do |users| %>
|
390
|
-
<%=tr("{users||likes, like} this photo", :users => [users, [:name]]) %><br>
|
391
|
-
<% end %>
|
392
|
-
</div>
|
393
|
-
</div>
|
394
|
-
|
395
|
-
<h1><%=tr("Language Cases") %></h1>
|
396
|
-
<h2><%=tr("Possessives") %></h2>
|
397
|
-
<pre><code class="language-ruby">tr("This is {user::pos} reply", :user => male)</code></pre>
|
398
|
-
<div class="example">
|
399
|
-
<div class="title">results in</div>
|
400
|
-
<div class="content">
|
401
|
-
<%=tr("This is {user::pos} reply", :user => male) %>
|
402
|
-
</div>
|
403
|
-
</div>
|
404
|
-
|
405
|
-
<h2><%=tr("Counters") %></h2>
|
406
|
-
<pre><code class="language-ruby">tr("You have already sent this message {count::times}", :count => 1)
|
407
|
-
tr("You have already sent this message {count::times}", :count => 2)
|
408
|
-
tr("You have already sent this message {count::times}", :count => 3)
|
409
|
-
</code></pre>
|
410
|
-
<div class="example">
|
411
|
-
<div class="title">results in</div>
|
412
|
-
<div class="content">
|
413
|
-
<%=tr("You have already sent this message {count::times}", :count => 1) %><br>
|
414
|
-
<%=tr("You have already sent this message {count::times}", :count => 2) %><br>
|
415
|
-
<%=tr("You have already sent this message {count::times}", :count => 3) %><br>
|
416
|
-
</div>
|
417
|
-
</div>
|
418
|
-
|
419
|
-
<h2><%=tr("Ordinals") %></h2>
|
420
|
-
<pre><code class="language-ruby">1.upto(5) do |index|
|
421
|
-
tr("This is your {count::ord} warning", :count => index)
|
422
|
-
end
|
423
|
-
</code></pre>
|
424
|
-
<div class="example">
|
425
|
-
<div class="title">results in</div>
|
426
|
-
<div class="content">
|
427
|
-
<% 1.upto(5) do |index| %>
|
428
|
-
<%=tr("This is your {count::ord} warning", :count => index) %><br>
|
429
|
-
<% end %>
|
430
|
-
</div>
|
431
|
-
</div>
|
432
|
-
|
433
|
-
<pre><code class="language-ruby">1.upto(10) do |index|
|
434
|
-
tr("This is your {count::ordinal} warning", :count => index)
|
435
|
-
end</code></pre>
|
436
|
-
<div class="example">
|
437
|
-
<div class="title">results in</div>
|
438
|
-
<div class="content">
|
439
|
-
<% 1.upto(10) do |index| %>
|
440
|
-
<%=tr("This is your {count::ordinal} warning", :count => index) %><br>
|
441
|
-
<% end %>
|
442
|
-
</div>
|
443
|
-
</div>
|
444
|
-
|
445
|
-
<pre><code class="language-ruby">1.upto(10) do |index|
|
446
|
-
tr("This is your {count::ordinal::ord} warning", :count => index)
|
447
|
-
end</code></pre>
|
448
|
-
<div class="example">
|
449
|
-
<div class="title">results in</div>
|
450
|
-
<div class="content">
|
451
|
-
<% 1.upto(10) do |index| %>
|
452
|
-
<%=tr("This is your {count::ordinal::ord} warning", :count => index) %><br>
|
453
|
-
<% end %>
|
454
|
-
</div>
|
455
|
-
</div>
|
456
|
-
|
457
|
-
|
458
|
-
<h2><%=tr("Translation Examples") %></h2>
|
459
|
-
|
460
|
-
<h4>Russian</h4>
|
461
|
-
|
462
|
-
In order to see language cases in action, lets change the names to use their foreign representation.
|
463
|
-
<pre><code class="language-ruby">
|
464
|
-
anna = User.new(:name => "Анна", :gender => "female")
|
465
|
-
michael = User.new(:name => "Михаил", :gender => "male")
|
466
|
-
alex = User.new(:name => "Саша", :gender => "unknown")
|
467
|
-
</code></pre>
|
468
|
-
|
469
|
-
<%
|
470
|
-
anna = User.new(:name => "Анна", :gender => "female")
|
471
|
-
michael = User.new(:name => "Михаил", :gender => "male")
|
472
|
-
alex = User.new(:name => "Саша", :gender => "unknown")
|
473
|
-
%>
|
474
|
-
|
475
|
-
<h4>Именительный Падеж</h4>
|
476
|
-
<pre><code class="language-ruby">tr("{actor::nom} тестирует это приложение", {:actor => anna}, {:locale => 'ru'})
|
477
|
-
</code></pre>
|
478
|
-
<div class="example">
|
479
|
-
<div class="title">results in</div>
|
480
|
-
<div class="content">
|
481
|
-
<%=tr("{actor::nom} тестирует это приложение", {:actor => anna}, {:locale => 'ru'}) %><br>
|
482
|
-
</div>
|
483
|
-
</div>
|
484
|
-
|
485
|
-
<h4>Родительный Падеж</h4>
|
486
|
-
<pre><code class="language-ruby">tr("{actor|| пригласил, пригласила} {target::gen} на вечеринку", {:actor => anna, :target => michael}, {:locale => 'ru'})
|
487
|
-
</code></pre>
|
488
|
-
<div class="example">
|
489
|
-
<div class="title">results in</div>
|
490
|
-
<div class="content">
|
491
|
-
<%=tr("{actor|| пригласил, пригласила} {target::gen} на вечеринку", {:actor => anna, :target => michael}, {:locale => 'ru'}) %><br>
|
492
|
-
</div>
|
493
|
-
</div>
|
494
|
-
|
495
|
-
<h4>Дательный Падеж</h4>
|
496
|
-
<pre><code class="language-ruby">tr("{actor|| подарил, подарила} подарок {target::dat}", {:actor => anna, :target => michael}, {:locale => 'ru'})
|
497
|
-
|
498
|
-
tr("{actor|| подарил, подарила} подарок {target::dat}", {:actor => michael, :target => anna}, {:locale => 'ru'})
|
499
|
-
</code></pre>
|
500
|
-
<div class="example">
|
501
|
-
<div class="title">results in</div>
|
502
|
-
<div class="content">
|
503
|
-
<%=tr("{actor|| подарил, подарила} подарок {target::dat}", {:actor => anna, :target => michael}, {:locale => 'ru'}) %><br>
|
504
|
-
<%=tr("{actor|| подарил, подарила} подарок {target::dat}", {:actor => michael, :target => anna}, {:locale => 'ru'}) %><br>
|
505
|
-
</div>
|
506
|
-
</div>
|
507
|
-
|
508
|
-
<h4>Винительный Падеж</h4>
|
509
|
-
<pre><code class="language-ruby">tr("{actor|| увидел, увидела} {target::acc} на вечеринке", {:actor => anna, :target => michael}, {:locale => 'ru'})
|
510
|
-
</code></pre>
|
511
|
-
<div class="example">
|
512
|
-
<div class="title">results in</div>
|
513
|
-
<div class="content">
|
514
|
-
<%=tr("{actor|| увидел, увидела} {target::acc} на вечеринке", {:actor => anna, :target => michael}, {:locale => 'ru'}) %><br>
|
515
|
-
</div>
|
516
|
-
</div>
|
517
|
-
|
518
|
-
<h4>Творительный Падеж</h4>
|
519
|
-
<pre><code class="language-ruby">tr("{actor} гордится {target::ins}", {:actor => anna, :target => michael}, {:locale => 'ru'})
|
520
|
-
</code></pre>
|
521
|
-
<div class="example">
|
522
|
-
<div class="title">results in</div>
|
523
|
-
<div class="content">
|
524
|
-
<%=tr("{actor} гордится {target::ins}", {:actor => anna, :target => michael}, {:locale => 'ru'}) %><br>
|
525
|
-
</div>
|
526
|
-
</div>
|
527
|
-
|
528
|
-
<h4>Предложный Падеж</h4>
|
529
|
-
<pre><code class="language-ruby">tr("{actor} думает {target::pre}", {:actor => anna, :target => michael}, {:locale => 'ru'})
|
530
|
-
|
531
|
-
tr("{actor} думает {target::pre}", {:actor => michael, :target => anna}, {:locale => 'ru'})
|
532
|
-
</code></pre>
|
533
|
-
<div class="example">
|
534
|
-
<div class="title">results in</div>
|
535
|
-
<div class="content">
|
536
|
-
<%=tr("{actor} думает {target::pre}", {:actor => anna, :target => michael}, {:locale => 'ru'}) %><br>
|
537
|
-
<%=tr("{actor} думает {target::pre}", {:actor => michael, :target => anna}, {:locale => 'ru'}) %><br>
|
538
|
-
</div>
|
539
|
-
</div>
|
540
|
-
|
541
|
-
|
542
|
-
</div>
|
543
|
-
</div>
|
544
|
-
</div>
|
545
|
-
|
546
|
-
<%= stylesheet_link_tag('jquery.tocify.css') %>
|
547
|
-
<%= javascript_include_tag('jquery.tocify.min.js') %>
|
548
|
-
|
549
|
-
<%= stylesheet_link_tag('prism.css') %>
|
550
|
-
<%= stylesheet_link_tag('prism_rails.css') %>
|
551
|
-
<%= javascript_include_tag('prism.js') %>
|
552
|
-
<%= javascript_include_tag('prism_rails.js') %>
|
553
|
-
|
554
|
-
<style>
|
555
|
-
.example {
|
556
|
-
background: #eee;
|
557
|
-
border: 1px solid #ccc;
|
558
|
-
border-radius: 5px;
|
559
|
-
}
|
560
|
-
.example .title {
|
561
|
-
color: white;
|
562
|
-
width: 80px;
|
563
|
-
text-align:center;
|
564
|
-
padding:3px;
|
565
|
-
background: #ccc;
|
566
|
-
border-bottom: 1px solid #ccc;
|
567
|
-
border-right: 1px solid #ccc;
|
568
|
-
border-top-left-radius:5px;
|
569
|
-
border-bottom-right-radius:5px;
|
570
|
-
}
|
571
|
-
|
572
|
-
.example .content {
|
573
|
-
padding:10px;
|
574
|
-
}
|
575
|
-
|
576
|
-
h4 {
|
577
|
-
margin-top: 35px;
|
578
|
-
}
|
579
|
-
|
580
|
-
#toc {
|
581
|
-
width:240px;
|
582
|
-
}
|
583
|
-
</style>
|
584
|
-
|
585
|
-
<script>
|
586
|
-
$(function() {
|
587
|
-
$("#toc").tocify({
|
588
|
-
"selectors": "h1,h2,h3"
|
589
|
-
});
|
590
|
-
});
|
591
|
-
</script>
|
@@ -1,59 +0,0 @@
|
|
1
|
-
<h2><%= tr("Installation Instructions") %></h2>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
<%= tr("Clone the git repository to your projects folder:") %>
|
5
|
-
</p>
|
6
|
-
|
7
|
-
|
8
|
-
<h3><%= tr("Connecting to Tr8n service") %></h3>
|
9
|
-
<p>
|
10
|
-
<%=tr("To connect to a hosted tr8n service, visit [link: tr8nhub.com], register as a new user and create a new application.", :link => {:href => "http://tr8nhub.com"}) %>
|
11
|
-
<%=tr("Then add the following line to your PHP application:") %>
|
12
|
-
</p>
|
13
|
-
|
14
|
-
<pre><code class="language-php"> </code></pre>
|
15
|
-
|
16
|
-
<h3><%= tr("Running your own Tr8n service") %></h3>
|
17
|
-
|
18
|
-
<p>
|
19
|
-
<%=tr("Alternatively, you can host a tr8n service instance yourself. Tr8n service is written using Ruby on Rails. To run the service yourself, clone the git repository:") %>
|
20
|
-
</p>
|
21
|
-
|
22
|
-
<pre><code class="language-php">$ git clone git@github.com:tr8n/tr8n.git</code></pre>
|
23
|
-
|
24
|
-
<p>
|
25
|
-
<%= tr("Run the following commands: (temporary, until the service node is ready)") %>
|
26
|
-
</p>
|
27
|
-
|
28
|
-
<pre><code class="language-php">
|
29
|
-
$ cd tr8n/test/dummy
|
30
|
-
$ bundle
|
31
|
-
$ bundle exec rake db:migrate
|
32
|
-
$ bundle exec rake tr8n:init
|
33
|
-
$ bundle exec rails s
|
34
|
-
|
35
|
-
</code></pre>
|
36
|
-
|
37
|
-
<p>
|
38
|
-
<%= tr("You should see the following output:") %>
|
39
|
-
</p>
|
40
|
-
|
41
|
-
<pre><code class="language-php">
|
42
|
-
=> Booting WEBrick
|
43
|
-
=> Rails 3.2.3 application starting in development on http://0.0.0.0:3000
|
44
|
-
=> Call with -d to detach
|
45
|
-
=> Ctrl-C to shutdown server
|
46
|
-
[2013-08-14 20:21:39] INFO WEBrick 1.3.1
|
47
|
-
[2013-08-14 20:21:39] INFO ruby 1.9.3 (2013-02-22) [x86_64-darwin12.2.1]
|
48
|
-
[2013-08-14 20:21:39] INFO WEBrick::HTTPServer#start: pid=29722 port=3000
|
49
|
-
|
50
|
-
</code></pre>
|
51
|
-
|
52
|
-
<p>
|
53
|
-
<%= tr("This means that the service is running. Visit http://localhost:3000 and register as a new user. Go to the admin tools and retrieve your application secret.") %>
|
54
|
-
</p>
|
55
|
-
|
56
|
-
<p>
|
57
|
-
<%= tr("In your config.yml file update the application credentials:") %>
|
58
|
-
</p>
|
59
|
-
<pre><code class="language-php"> </code></pre>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<p>
|
2
|
-
|
3
|
-
<%= tr("This is your {count::ordinal} warning", :count => 1) %>
|
4
|
-
<br><br><br>
|
5
|
-
|
6
|
-
<%= tr("you have [bold: {count} [i: {count|message}]]", :count => 1) %>
|
7
|
-
|
8
|
-
<br><br><br>
|
9
|
-
|
10
|
-
<%= tr("{actor} loved {target}", :actor => {:object => {:name => "Михаил", :gender => "male"}, :attribute => :name},
|
11
|
-
:target => {:object => {:name => "Анна", :gender => "female"}, :attribute => :name}) %>
|
12
|
-
|
13
|
-
<br><br>
|
14
|
-
<%= tr("{actor} loved {target}", :target => {:object => {:name => "Михаил", :gender => "male"}, :attribute => :name},
|
15
|
-
:actor => {:object => {:name => "Анна", :gender => "female"}, :attribute => :name}) %>
|
16
|
-
|
17
|
-
</p>
|