hi @ll
is it possible to mark whole struct for translation? something like:
MyStrct = Struct.new(:code, :msg)
SOME_CONSTANT = N_(MyStrct.new(“1515”, “Message to translate”))
…
puts _(SOME_CONSTANT)
may be u have a better sollution for this?
thnx
hi @ll
is it possible to mark whole struct for translation? something like:
MyStrct = Struct.new(:code, :msg)
SOME_CONSTANT = N_(MyStrct.new(“1515”, “Message to translate”))
…
puts _(SOME_CONSTANT)
may be u have a better sollution for this?
thnx
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs