Click To Globalize is an extension for Globalize Plugin, it allows to edit in place globalized labels. With this plugin you don’t have to create a globalization back-end, but just edit your interface in place!!
If you have a previous globalization experience, you probably noticed that the main problem of dedicated back-ends is the lack of the context where the string will be placed in. It isn’t a trivial issue: you’ll never know if the meaning of your string is harmonious with other labels and how your string will be rendered, until the page load.
Now you can forget this issues, you can directly globalize in place!!
$ ./scripts/plugin install <a href="http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk">http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk</a>$ rake click:setup<%= click_to_globalize -%><%= 'hello_world'.t %>$ ./scripts/plugin install <a href="http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk">http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk</a>
Rails 1.2.x
$ ./scripts/plugin install <a href="http://dev.23labs.net/svn/rails/plugins/click_to_globalize/branches/for-1.2">http://dev.23labs.net/svn/rails/plugins/click_to_globalize/branches/for-1.2</a>$ rake click:setup$ rake click:test class ApplicationController < ActionController::Base self.languages = { :english => 'en-US', :italian => 'it-IT' } end class ApplicationController < ActionController::Base self.formatting :textile end class ApplicationController < ActionController::Base def self.globalize? current_user.admin? end end<%= click_to_globalize -%>$ ./script/plugin remove click_to_globalize
<%= textilize(h('some_text'.t)) %>$ svn co <a href="http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk">http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk</a>$ rake click:testhttp://dev.23labs.net/svn/rails/plugins/click_to_globalize/
Javascript tests are based on Prototype test libs.
Copyright© 2007 Luca Guidi – 23 Labs, released under the MIT license.
Click To Globalize is an extension for Globalize Plugin, it allows to edit in place globalized labels. With this plugin you don’t have to create a globalization back-end, but just edit your interface in place!!
If you have a previous globalization experience, you probably noticed that the main problem of dedicated back-ends is the lack of the context where the string will be placed in. It isn’t a trivial issue: you’ll never know if the meaning of your string is harmonious with other labels and how your string will be rendered, until the page load.
Now you can forget this issues, you can directly globalize in place!!
$ ./scripts/plugin install <a href="http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk">http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk</a>$ rake click:setup<%= click_to_globalize -%><%= 'hello_world'.t %>$ ./scripts/plugin install <a href="http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk">http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk</a>
Rails 1.2.x
$ ./scripts/plugin install <a href="http://dev.23labs.net/svn/rails/plugins/click_to_globalize/branches/for-1.2">http://dev.23labs.net/svn/rails/plugins/click_to_globalize/branches/for-1.2</a>$ rake click:setup$ rake click:test class ApplicationController < ActionController::Base self.languages = { :english => 'en-US', :italian => 'it-IT' } end class ApplicationController < ActionController::Base self.formatting :textile end class ApplicationController < ActionController::Base def self.globalize? current_user.admin? end end<%= click_to_globalize -%>$ ./script/plugin remove click_to_globalize
<%= textilize(h('some_text'.t)) %>$ svn co <a href="http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk">http://dev.23labs.net/svn/rails/plugins/click_to_globalize/trunk</a>$ rake click:testhttp://dev.23labs.net/svn/rails/plugins/click_to_globalize/
Javascript tests are based on Prototype test libs.
Copyright© 2007 Luca Guidi – 23 Labs, released under the MIT license.