Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
teamon-merb-simple-translation
Advanced tools
h2. merb-simple-translation
A plugin for the Merb framework that provides simple UI translation
h3. Installation
h4. Gem
@gem sources -a http://gems.github.com@ @sudo gem install teamon-merb-simple-translation@
h4. Configuration
config/dependencies.rb
dependency "teamon-merb-simple-translation", :require_as => "merb-simple-translation"
config/init.rb
Merb::BootLoader.after_app_loads do Translation.load end
h3. Other options
h4. Reload translation files on every request
config/environments/development.rb
Merb::Config.use { |c|
c[:translation_debug] = true
}
h4. Change translations dir (default PROJECT_ROOT/translations) or default language
config/init.rb
Merb::BootLoader.after_app_loads do
Translation.translations_dir = Merb.root / 'i18n'
Translation.default_language = 'pl'
end
h3. Translation files
Plugin lets you write translations in two ways
h4. Ruby files
translations/pl.rb
Translation.add_translations('pl', {
"Log in" => "Zaloguj"
})
h4. YAML files
translations/pl.yml
pl:
Homepage: Strona domowa
h3. Copy default translation files to app directory @rake merb-simple-translation:copy-defaults@
FAQs
Unknown package
We found that teamon-merb-simple-translation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.