Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Localize Base #11

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ git:
#before_script: # homebrew for mac
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi

## uncomment the following lines to override the default test script
#script:
# - julia -e 'Pkg.clone(pwd()); Pkg.build("JuliaZH"); Pkg.test("JuliaZH"; coverage=true)'
# uncomment the following lines to override the default test script
script:
- julia -e 'using Pkg; Pkg.clone("https://github.com/Roger-luo/Localize.jl.git"); Pkg.clone(pwd()); Pkg.build("Localize"); Pkg.build("JuliaZH"); Pkg.test("JuliaZH"; coverage=true)'
after_success:
# # push coverage results to Coveralls
# - julia -e 'cd(Pkg.dir("JuliaZH")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
Expand Down
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
julia 0.7
Compat
Localize
3 changes: 3 additions & 0 deletions src/JuliaZH.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module JuliaZH

using Localize

include("docs/__main__.jl")
include("basedocs.jl")

end # module
6 changes: 6 additions & 0 deletions src/docs/Enums.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base.Enums begin

# translation goes here

end

4 changes: 4 additions & 0 deletions src/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# I18n generated files

Files and dirs in this folder is generated by [Localize.jl](). This keeps the original directory structure and adds
i18n macros to each file. Just simply put your translation in each generated Julia script.
126 changes: 126 additions & 0 deletions src/docs/__main__.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
include("strings/util.jl")
include("mathconstants.jl")
include("util.jl")
include("float.jl")
include("bool.jl")
include("lock.jl")
include("math.jl")
include("client.jl")
include("hashing.jl")
include("abstractarray.jl")
include("gmp.jl")
include("path.jl")
include("asyncmap.jl")
include("strings/search.jl")
include("multidimensional.jl")
include("sort.jl")
include("strings/substring.jl")
include("set.jl")
include("libc.jl")
include("c.jl")
include("file.jl")
include("iostream.jl")
include("meta.jl")
include("array.jl")
include("version.jl")
include("irrationals.jl")
include("compiler/ssair/show.jl")
include("number.jl")
include("special/exp.jl")
include("stream.jl")
include("broadcast.jl")
include("mpfr.jl")
include("summarysize.jl")
include("bitset.jl")
include("combinatorics.jl")
include("reinterpretarray.jl")
include("strings/basic.jl")
include("reducedim.jl")
include("floatfuncs.jl")
include("event.jl")
include("iterators.jl")
include("accumulate.jl")
include("namedtuple.jl")
include("range.jl")
include("weakkeydict.jl")
include("cartesian.jl")
include("multimedia.jl")
include("loading.jl")
include("special/rem_pio2.jl")
include("bitarray.jl")
include("stat.jl")
include("docs/basedocs.jl")
include("io.jl")
include("twiceprecision.jl")
include("refpointer.jl")
include("gcutils.jl")
include("traits.jl")
include("pointer.jl")
include("operators.jl")
include("reduce.jl")
include("char.jl")
include("shell.jl")
include("strings/unicode.jl")
include("special/trig.jl")
include("osutils.jl")
include("iobuffer.jl")
include("generator.jl")
include("strings/io.jl")
include("rounding.jl")
include("indices.jl")
include("docs/utils.jl")
include("dict.jl")
include("sysinfo.jl")
include("stacktraces.jl")
include("deepcopy.jl")
include("int.jl")
include("threadingconstructs.jl")
include("simdloop.jl")
include("atomics.jl")
include("essentials.jl")
include("reshapedarray.jl")
include("abstractset.jl")
include("missing.jl")
include("intfuncs.jl")
include("channels.jl")
include("ctypes.jl")
include("permuteddimsarray.jl")
include("some.jl")
include("error.jl")
include("abstractdict.jl")
include("grisu/grisu.jl")
include("threads.jl")
include("initdefs.jl")
include("show.jl")
include("logging.jl")
include("task.jl")
include("regex.jl")
include("rational.jl")
include("promotion.jl")
include("locks.jl")
include("download.jl")
include("sysimg.jl")
include("arraymath.jl")
include("tuple.jl")
include("secretbuffer.jl")
include("libuv.jl")
include("process.jl")
include("expr.jl")
include("fastmath.jl")
include("subarray.jl")
include("threadcall.jl")
include("special/exp10.jl")
include("docs/Docs.jl")
include("checked.jl")
include("Enums.jl")
include("errorshow.jl")
include("strings/string.jl")
include("complex.jl")
include("reflection.jl")
include("abstractarraymath.jl")
include("env.jl")
include("deprecated.jl")
include("pair.jl")
include("parse.jl")
include("arrayshow.jl")
include("views.jl")
6 changes: 6 additions & 0 deletions src/docs/abstractarray.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/abstractarraymath.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/abstractdict.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/abstractset.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/accumulate.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/array.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/arraymath.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/arrayshow.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/asyncmap.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/atomics.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base.Threads begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/bitarray.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/bitset.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/bool.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/broadcast.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base.Broadcast begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/c.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/cartesian.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base.Cartesian begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/channels.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/char.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/checked.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base.Checked begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/client.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/combinatorics.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/compiler/ssair/show.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base.IRShow begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/complex.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/ctypes.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/deepcopy.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/deprecated.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/dict.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/docs/Docs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base.Docs begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/docs/basedocs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base.BaseDocs begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/docs/utils.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base.Docs begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/download.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/env.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

6 changes: 6 additions & 0 deletions src/docs/error.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@i18n Base begin

# translation goes here

end

Loading