Project

General

Profile

Translating a Plugin

Added by Travis Spangle over 10 years ago

I'm attempting to translate my plugin and have two questions:

  1. How do I provide a translation for init.rb? Specifically the plugin name and description.
  2. I have a string to present data, ie. "Todays date is Aug 13". Right now the translation is "Todays date is date_now" and use it as l(:today).gsub(/date_now/, Date.now). Is there a better way to do that?

Replies (1)

RE: Translating a Plugin - Added by Travis Spangle over 10 years ago

Ah let me answer my own question:

2. The function l() takes multiple arguments. You can use "Todays date is %{value}" and call it l(:today, Date.now ).

    (1-1/1)