Project

zwr

0.0
No commit activity in last 3 years
No release in over 3 years
the livings that fiteth for a gorge bellum.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.1, ~> 4.0
 Project Readme

ZWR gem

This gem is a collection of jammed thingies that I want to reuse accross products.

This gem is licensed under MIT license.

Internationalization and Localization

I18n helpers in asset pipeline

If you have included this gem, and you are using HAML and any kind of HAML templates such as angular-rails-templates gem, you can use the following in the template:

%span=t :'zeljko'

This will be (pre)compiled to the default language. I am planning to add some support for resources that would be precompiled to all existing languages and served in a desired language, but that would happen later.

rake loc:extract

This task generates scanns all HAML files (wherever under Rails.root) for all occurances of something of the following:

=t :'zeljko'
=t :'symbol and fallback' # Default translation

and outputs a following table:

  "zeljko":                   "zeljko"
  "symbol and fallback":      "Default translation"

You should asure this table gets into your localization files.