# File ../lib/currencystring.rb, line 9
        def build_value(index,valor,lang)
                escalas       = @@currencystr_config[lang]["scales"]
                nums          = @@currencystr_config[lang]["numbers"]
                deze          = @@currencystr_config[lang]["tenths"]
                cent          = @@currencystr_config[lang]["hundreds"]
                seps          = @@currencystr_config[lang]["separators"]
                valori        = valor.to_i
                str           = ""
                escala   = index > 1 && valori > 0 ? (valori > 1 ? escalas[1][index] : escalas[0][index]).strip : ""

                return "#{nums[valor.to_i]} #{escala}".strip if valori < 20

                numes = valor.scan(/./).map {|item| item.to_i}
                str << cent[valori%100==0?0:1][numes[0]] << (valori%100==0?"":seps[2]) if numes[0] > 0 
                str << deze[numes[1]]                                           << (valori%10 ==0?"":seps[1]) if numes[1] > 0
                str << nums[numes[2]].strip
                str << " " << escala if index > 1
                str
        end