Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
var fmt_end = i
var ciph_len = fmt_end - ciph_st + 1
var fmt_end = i
var ciph_len = fmt_end - ciph_st + 1
- var arg_index = substring(ciph_st, ciph_len).to_i - 1
+ var arg_index = substring(ciph_st, ciph_len).to_i
if arg_index >= args.length then continue
s.push substring(curr_st, fmt_st - curr_st)
if arg_index >= args.length then continue
s.push substring(curr_st, fmt_st - curr_st)
else
fmt += "%"
exprs.push i
else
fmt += "%"
exprs.push i
- fmt += exprs.length.to_s
+ fmt += (exprs.length-1).to_s
end
end
fmt = fmt.escape_to_gettext
end
end
fmt = fmt.escape_to_gettext