Module: R18n
- Defined in:
- lib/r18n-core/translated_string.rb,
lib/r18n-core.rb,
lib/r18n-core/i18n.rb,
lib/r18n-core/locale.rb,
lib/r18n-core/version.rb,
lib/r18n-core/translation.rb,
lib/r18n-core/untranslated.rb
Overview
Translation string for i18n support.
Copyright © 2008 Andrey “A.I.” Sitnik <[email protected]>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <www.gnu.org/licenses/>.
Defined Under Namespace
Modules: Utils Classes: I18n, Locale, TranslatedString, Translation, Untranslated
Constant Summary collapse
- VERSION =
'0.2.1'
Class Method Summary collapse
-
.get ⇒ Object
Get I18n object for current thread.
-
.set(i18n) ⇒ Object
Set
i18n
object to current thread.
Class Method Details
.get ⇒ Object
Get I18n object for current thread
41 42 43 |
# File 'lib/r18n-core.rb', line 41 def get Thread.current['i18n'] end |
.set(i18n) ⇒ Object
Set i18n
object to current thread
36 37 38 |
# File 'lib/r18n-core.rb', line 36 def set(i18n) Thread.current['i18n'] = i18n end |