lib/vanity/experiment/alternative.rb in vanity-2.0.0.beta4 vs lib/vanity/experiment/alternative.rb in vanity-2.0.0.beta5
- old
+ new
@@ -5,11 +5,11 @@
class Alternative
def initialize(experiment, id, value) #, participants, converted, conversions)
@experiment = experiment
@id = id
- @name = "option #{(@id + 65).chr}"
+ @name = I18n.t('vanity.option_number', :char=>(@id + 65).chr.upcase)
@value = value
end
# Alternative id, only unique for this experiment.
attr_reader :id
@@ -88,6 +88,6 @@
@participants = @converted = @conversions = 0
end
end
end
end
-end
\ No newline at end of file
+end