public
Rubygem
Fork of mattetti/globalite
Description: Globalite is meant to be a breed of the best i18n /l10n plugins available for Rails.
Homepage: http://code.google.com/p/globalite/
Clone URL: git://github.com/pnowak2/globalite.git
Search Repo:
updated documentation and created rdoc so people can easily read the doc 
online

git-svn-id: https://globalite.googlecode.com/svn/trunk@16 
5bbf81d9-c631-0410-9a1e-896eab8f3419
mattAimonetti (author)
Thu Jun 14 19:12:37 -0700 2007
commit  c206af49097ff3fde7c10c17945272ea93634204
tree    f2c42a114e562cdba82b84b7eda4ae42b2d4928c
parent  1bc12f62d608407057bd9d1b6d640344aac939e4
0
...
1
2
 
 
3
4
5
...
15
16
17
18
19
 
20
21
22
...
26
27
28
29
30
 
31
32
33
 
34
35
36
37
38
39
40
41
 
42
43
44
...
61
62
63
64
65
 
66
67
68
...
94
95
96
97
98
 
99
100
101
102
103
 
104
105
106
 
107
108
 
109
110
111
 
112
113
114
115
116
117
118
 
119
120
121
...
128
129
130
131
132
 
133
134
 
135
136
137
138
 
139
140
141
142
 
143
144
145
146
147
148
 
149
150
151
152
153
154
 
155
156
 
157
158
...
 
 
1
2
3
4
5
...
15
16
17
 
 
18
19
20
21
...
25
26
27
 
 
28
29
 
 
30
31
32
33
34
35
36
 
 
37
38
39
40
...
57
58
59
 
 
60
61
62
63
...
89
90
91
 
 
92
93
94
95
 
 
96
97
 
 
98
99
 
100
101
 
 
102
103
104
105
106
107
 
 
108
109
110
111
...
118
119
120
 
 
121
122
 
123
124
125
126
 
127
128
129
 
 
130
131
132
133
134
 
 
135
136
137
138
139
 
 
140
141
142
143
144
145
0
@@ -1,5 +1,5 @@
0
-Globalite
0
-=========
0
+=Globalite
0
+
0
 
0
 Globalite is meant to be a breed of the best internationalization/localization plugins available for Rails.
0
 
0
@@ -15,8 +15,7 @@ The Locale is set on the user's session making Globalite a perfect solution for
0
 The developer can pass dynamic values to be used in the localization.
0
 
0
 
0
-What's the difference between Globalite and the other existing l10n/i18n plugins?
0
----------------------------------------------------------------------------------
0
+==What's the difference between Globalite and the other existing l10n/i18n plugins?
0
 
0
 Gibberish is a nice plugin but it doesn't handle locales, you can't have your application in British English and American English. I also don't really like the syntax :p I based the UI localization of Globalite on Chris' work on Gibberish.
0
 
0
@@ -26,19 +25,16 @@ Also, Globalite doesn't have the concept of a base language. Mainly because I th
0
 
0
 
0
 
0
-Usage
0
-=====
0
+==Usage
0
 
0
-installation:
0
--------------
0
+===installation:
0
 
0
   script/plugin install http://globalite.googlecode.com/svn/trunk/
0
 rename the vendor/plugins/trunk => vendor/plugins/globalite
0
 or from your vendor/plugins folder:
0
   svn checkout http://globalite.googlecode.com/svn/trunk/ globalite
0
 
0
-UI Localization:
0
-----------------
0
+===UI Localization:
0
 
0
 Create a lang folder at the root of your project. Add your localization files in the lang/ui folder if you want to localize your interface.
0
 
0
@@ -61,8 +57,7 @@ You can also pass values to the localization, and the translator can do whatever
0
 Note that variables can be used in any order the translator wants  
0
   
0
 
0
-Rails Localization:
0
--------------------
0
+===Rails Localization:
0
 
0
 Localize a time object by using a predefined format (defined in the date_helper_time_formats variable that you can find in globalite/lang/rails/[lang].yml)
0
 
0
@@ -94,28 +89,23 @@ Get a distance of time in words localized.
0
 Active record errors are automatically rendered in the locale language
0
 
0
 
0
-Notes
0
------
0
+====Notes
0
 
0
 
0
 
0
-FAQ:
0
-===
0
+==FAQ:
0
 
0
-Why did you call your plugin 'Globalite'?
0
------------------------------------------
0
+===Why did you call your plugin 'Globalite'?
0
 
0
-Globalize was already taken ;) Most seriously, I was looking for a i18n/l10n solution for a project I was working on, after few hours testing Globalize Josh http://joshknowles.com, Matt http://heidmotron.com/ and I http://railsontherun.com saw it wouldn't work for us. Since we only had the choice between very simple solutions and a complicated solution, I decided to make a "lite" version of Globalize ;)
0
+Globalize was already taken ;) Most seriously, I was looking for a i18n/l10n solution for a project I was working on, after few hours testing Globalize, Josh http://joshknowles.com, Matt http://heidmotron.com/ and I http://railsontherun.com saw it wouldn't work for us. Since we only had the choice between very simple solutions and a complicated solution, I decided to make a "lite" version of Globalize ;)
0
 
0
-TODO:
0
-=====
0
+==TODO:
0
 
0
 - add support for pluralization
0
 - content translation
0
 
0
 
0
-Internationalization, Localization, Locale:
0
-===========================================
0
+===Internationalization, Localization, Locale:
0
 
0
 Internationalization refers to the process of modifying an application’s design so that it can support
0
 locale differences like text orientation, currency, date and time format, sorting, and so forth. This can be done
0
@@ -128,30 +118,27 @@ en-US. Locales are specified by RFC 3066 and consist of two parts. The first is
0
 uses lowercase letters. The second is usually an ISO 3166 country code in uppercase letters.
0
 [from Ruby on Rails Commerce (Hellsten, Laine)]
0
 
0
-CREDITS:
0
-========
0
+===CREDITS:
0
 
0
-Some code was 'borrowed' from different projects such as:
0
+Some code was very influenced from different projects such as:
0
 
0
 * Gibberish http://require.errtheblog.com/plugins/browser/gibberish written by Chris Wanstrath (http://errtheblog.com)
0
 * Globalize http://www.globalize-rails.org written by too many people to list them here ;)
0
-* LocalizationSimplified (L10n-simplified) written By Jesper Rønn-Jensen ( http://justaddwater.dk/ )
0
+* LocalizationSimplified (L10n-simplified) written By Jesper Ronn-Jensen ( http://justaddwater.dk/ )
0
 
0
 
0
-Author:
0
-=======
0
+===Author:
0
 
0
 Matt Aimonetti http://railsontherun.com mattaimonetti AT gmail DOT com
0
 
0
 
0
-Contributors:
0
-=============
0
+===Contributors:
0
 
0
 your name here if you submit a patch :)
0
 
0
 
0
-More info:
0
-==========
0
+===More info:
0
 
0
 http://code.google.com/p/globalite/
0
+
0
 http://railsontherun.com/globalite
0
\ No newline at end of file
...
1
 
2
...
 
1
2
0
@@ -1 +1 @@
0
-# Install hook code here
0
+# Nothing needs to be installed
0
\ No newline at end of file
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+# This examples can only be run if the plugin is installed in a Rails app
0
+# Requires RSpec plugin or gem
0
+
0
 require File.dirname(__FILE__) + '/helpers/spec_helper'
0
 include ActionView::Helpers::DateHelper
0
 include ActionView::Helpers::NumberHelper
...
1
 
...
 
1
0
@@ -1 +1 @@
0
-# Uninstall hook code here
0
+# Uninstall hook code here but nothing installed so we are just keeping the file blank

Comments

    No one has commented yet.