/usr/share/julia/base/i18n.jl is in julia-common 0.4.7-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # This file is a part of Julia. License is MIT: http://julialang.org/license
module I18n
export locale
LOCALE = nothing
CALLBACKS = Function[]
function locale()
if LOCALE === nothing
# XXX:TBD return default locale
return ""
end
LOCALE
end
function locale(s::ByteString)
global LOCALE = s
# XXX:TBD call setlocale
for cb in CALLBACKS
cb()
end
end
end # module
|