Re-enable translations
This commit is contained in:
parent
0c5e618cc3
commit
a5f51973b2
|
|
@ -51,11 +51,11 @@ class Language
|
||||||
# Translate some text
|
# Translate some text
|
||||||
def tr(string)
|
def tr(string)
|
||||||
#dbg_print(caller_locations(1, 1).first.tap{|loc| puts "#{loc.path}:#{loc.lineno}"})
|
#dbg_print(caller_locations(1, 1).first.tap{|loc| puts "#{loc.path}:#{loc.lineno}"})
|
||||||
# if @data
|
if @data
|
||||||
# rv = @data[Zlib::crc32(string)] || string
|
rv = @data[Zlib::crc32(string)] || string
|
||||||
# else
|
else
|
||||||
rv = string
|
rv = string
|
||||||
# end
|
end
|
||||||
dbg_print(string + " -> " + rv)
|
dbg_print(string + " -> " + rv)
|
||||||
return String.new(rv)
|
return String.new(rv)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue