No imagine that you need to have "This internationalized text" somewhere in code (let's imagine that we need it in app/views/documents/index.html.haml file)
In my setup, i hit "t" and tab and snippet start working:
I18n.t("app.views.documents.index.some_text", :default => "some_text")
At this moment you have some_text selected... you type in "This internationalized text" and get
I18n.t("app.views.documents.index.This_internationalized_text", :default => "This internationalized text")
Now, in yaml file, where you keep translations, you write
lv:
..app:
....views:
....documents:
......index:
........This_internationalized_text: "Šis internacionalizētais teksts"
Node prefixed dots replresend spaces
With help of this sipped I translated my work a LOT faster
RoR = Ruby on Rails
It should be added to rails snippets.
I think that this would be very useful to many Ruby on Rails programmers, who meed to write internationalized sites
It is especially useful, if you fallow methods described in http:// guides. rubyonrails. org/i18n. html
No imagine that you need to have "This internationalized text" somewhere in code (let's imagine that we need it in app/views/ documents/ index.html. haml file)
In my setup, i hit "t" and tab and snippet start working: "app.views. documents. index.some_ text", :default => "some_text") "app.views. documents. index.This_ internationaliz ed_text" , :default => "This internationalized text")
I18n.t(
At this moment you have some_text selected... you type in "This internationalized text" and get
I18n.t(
Now, in yaml file, where you keep translations, you write .This_internati onalized_ text: "Šis internacionaliz ētais teksts"
lv:
..app:
....views:
....documents:
......index:
.......
Node prefixed dots replresend spaces
With help of this sipped I translated my work a LOT faster