Revision ebccdcc4
Added by Marc Dequènes almost 16 years ago
- ID ebccdcc4f5fdcb1309e648f8db5260a729afcdbd
postman | ||
---|---|---|
|
||
module CyborgHood
|
||
class CommandParser
|
||
include GetText
|
||
|
||
def self.run(order)
|
||
result_list = []
|
||
order.commands.each do |cmdstr|
|
||
... | ... | |
|
||
# not yet ready to be a real Cyborg
|
||
class Postman #< Cyborg
|
||
include GetText
|
||
|
||
def initialize
|
||
# load config
|
||
Config.load(self.human_name.downcase)
|
||
... | ... | |
logger.info "Extra processing information: " + order.system_message if order.system_message
|
||
|
||
if order.user and order.user.preferredLanguage
|
||
logger.debug "User preference for langage: " + order.user.preferredLanguage
|
||
locale = order.user.preferredLanguage
|
||
else
|
||
logger.debug "No user preference for langage, using english"
|
||
locale = "en"
|
||
end
|
||
|
Also available in: Unified diff
[fix] corrected mistakes introduced in the 4 previous blind commits