This repository has been archived by the owner on Sep 20, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
82 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,4 @@ | ||
= merb_global | ||
== Localization (L10n) and Internationalization (i18n) support for the Merb MVC Framework | ||
|
||
A plugin for the Merb framework providing Localization (L10n) and | ||
Internationalization (i18n) support. | ||
|
||
merb_global will have the following feature set: | ||
* support for model (content) localization | ||
- by default, localization stored in the database | ||
- with DataMapper (targeted 0.1) | ||
- with ActiveRecord (targeted 0.2) | ||
- with Sequel ORM | ||
and, with a choice of strategies in each case: | ||
- single-table (c.f. globalize RoR plugin) | ||
|title |varchar(100)| | ||
|title_de|varchar(100)| | ||
|title_fr|varchar(100)| | ||
- joined-table for unlimited localizations (c.f. Symfony PHP) | ||
- or, alternatively localizations can be stored outside of the domain | ||
model, UI Strings. | ||
|
||
* support for view (UI String) localization | ||
- choice of providers (po, yaml, database) | ||
Merb::Plugins.config[:merb_global] = { | ||
#:provider => "po", # default | ||
:provider => 'yaml' | ||
#:provider => activerecord | ||
#:provider => datamapper | ||
#:provider => sequel | ||
} | ||
- for JRuby, wrapper allowing use of .properties files. | ||
|
||
* Extract, update for PO/ POT files | ||
* Currency, Date and Language Helpers | ||
- stored either in the database, or for JRuby, wrappers around | ||
built-in functionality provided by java.util.Currency, java.util.Locale | ||
|
||
* support for localization of Merb generated code | ||
* support for non-English Inflectors. | ||
|
||
** WARNING ** : merb_global is in a very early planning/development stages. | ||
At this point of time, this code should only be considered for consumption | ||
by advanced Ruby and Merb developers. If you're looking for something for | ||
production use, and still in the world of Rails, then you should examine their | ||
page dedicated to localization techniques here: | ||
http://wiki.rubyonrails.org/rails/pages/Internationalization | ||
|
||
** REQUEST ** : Your development support is very much appreciated. Please | ||
contact us below if you're interested in lending a hand with the development | ||
of this project. | ||
|
||
== License | ||
|
||
merb_global is released under the MIT License. Copyright information, as well | ||
as a copy of the License may be found in the LICENSE file. | ||
|
||
== Installation and Setup | ||
|
||
rake gem | ||
sudo gem install pkg/merb_global-0.0.1.gem | ||
|
||
== Support | ||
|
||
** WARNING REPEATED ** : merb_global at a very early stage of development. You | ||
should not use this code unless you're reasonably secure with both Ruby and | ||
Merb. That said, please do get involved. | ||
|
||
Your best source for support currently is either the wiki, IRC or the mailing | ||
list: | ||
|
||
merb_global Wiki (this is its temporary residence): | ||
http://github.com/myabc/merb_global/wikis | ||
|
||
merb_global mailing list: | ||
http:// -- coming soon -- / | ||
|
||
merb_global homepage: | ||
http:// -- coming soon -- / | ||
|
||
Contact the developers directly: | ||
- alex@alexcolesportfolio.com | myabc on #datamapper, #merb IRC | ||
Please see README.markdown. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
= merb_global | ||
|
||
A plugin for the Merb framework providing Localization (L10n) and | ||
Internationalization (i18n) support. | ||
|
||
merb_global will have the following feature set: | ||
* support for model (content) localization | ||
- by default, localization stored in the database | ||
- with DataMapper (targeted 0.1) | ||
- with ActiveRecord (targeted 0.2) | ||
- with Sequel ORM | ||
and, with a choice of strategies in each case: | ||
- single-table (c.f. globalize RoR plugin) | ||
|title |varchar(100)| | ||
|title_de|varchar(100)| | ||
|title_fr|varchar(100)| | ||
- joined-table for unlimited localizations (c.f. Symfony PHP) | ||
- or, alternatively localizations can be stored outside of the domain | ||
model, UI Strings. | ||
|
||
* support for view (UI String) localization | ||
- choice of providers (po, yaml, database) | ||
Merb::Plugins.config[:merb_global] = { | ||
#:provider => "po", # default | ||
:provider => 'yaml' | ||
#:provider => activerecord | ||
#:provider => datamapper | ||
#:provider => sequel | ||
} | ||
- for JRuby, wrapper allowing use of .properties files. | ||
|
||
* Extract, update for PO/ POT files | ||
* Currency, Date and Language Helpers | ||
- stored either in the database, or for JRuby, wrappers around | ||
built-in functionality provided by java.util.Currency, java.util.Locale | ||
|
||
* support for localization of Merb generated code | ||
* support for non-English Inflectors. | ||
|
||
** WARNING ** : merb_global is in a very early planning/development stages. | ||
At this point of time, this code should only be considered for consumption | ||
by advanced Ruby and Merb developers. If you're looking for something for | ||
production use, and still in the world of Rails, then you should examine their | ||
page dedicated to localization techniques here: | ||
http://wiki.rubyonrails.org/rails/pages/Internationalization | ||
|
||
** REQUEST ** : Your development support is very much appreciated. Please | ||
contact us below if you're interested in lending a hand with the development | ||
of this project. | ||
|
||
== License | ||
|
||
merb_global is released under the MIT License. Copyright information, as well | ||
as a copy of the License may be found in the LICENSE file. | ||
|
||
== Installation and Setup | ||
|
||
rake gem | ||
sudo gem install pkg/merb_global-0.0.1.gem | ||
|
||
== Support | ||
|
||
** WARNING REPEATED ** : merb_global at a very early stage of development. You | ||
should not use this code unless you're reasonably secure with both Ruby and | ||
Merb. That said, please do get involved. | ||
|
||
Your best source for support currently is either the wiki, IRC or the mailing | ||
list: | ||
|
||
merb_global Wiki (this is its temporary residence): | ||
http://github.com/myabc/merb_global/wikis | ||
|
||
merb_global mailing list: | ||
http:// -- coming soon -- / | ||
|
||
merb_global homepage: | ||
http:// -- coming soon -- / | ||
|
||
Contact the developers directly: | ||
- alex@alexcolesportfolio.com | myabc on #datamapper, #merb IRC |