Revision eb6e0359
Added by Marc Dequènes almost 14 years ago
- ID eb6e0359e66f7e92e69b30eaa3795818d2e29ab0
lib/cyborghood/mail_order.rb | ||
---|---|---|
order_txt = message.body if message.content_type == "text/plain"
|
||
shared_parameters = {}
|
||
end
|
||
return new(:error => N_("Mail does not contain a proper text part for commands."), :user => user) if order_txt.nil?
|
||
return new(:error => _("Mail does not contain a proper text part for commands."), :user => user) if order_txt.nil?
|
||
|
||
command_lines = order_txt.split("\n")
|
||
|
||
... | ... | |
ref = $1
|
||
d_ref, d_param = dereference_param(shared_parameters, param)
|
||
if d_ref.nil?
|
||
# TODO: a message class is needed to handle passing translatable strings with parameters (doing late sprintf for example)
|
||
errors << N_("Attachment '#{ref}' not found.")
|
||
errors << _("Attachment '%{ref}' not found.", :ref => ref)
|
||
else
|
||
used_refs << d_ref
|
||
end
|
Also available in: Unified diff
[evol] translation rework: new mechanism to handle translated/untranslated strings, make use of translation parameters, moved I18n class, translations update