Skip to content

Commit

Permalink
i18n: generate translation and translate segment tree
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-jerry-ye committed Nov 28, 2024
1 parent 7ec4a03 commit 9dc5aee
Show file tree
Hide file tree
Showing 7 changed files with 5,791 additions and 22 deletions.
2 changes: 1 addition & 1 deletion next/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
extensions = ['myst_parser', 'lexer']

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', ".env", '.venv', "README"]
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', ".env", '.venv', "README", 'sources']

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Expand Down
30 changes: 30 additions & 0 deletions next/locales/zh_CN/LC_MESSAGES/sources.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2024, International Digital Economy Academy
# This file is distributed under the same license as the MoonBit Document
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: MoonBit Document \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-28 16:03+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: zh_CN\n"
"Language-Team: zh_CN <[email protected]>\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.16.0\n"

#: ../../sources/segment-tree/README.md:1
msgid "Segment Tree"
msgstr ""

#: ../../sources/segment-tree/README.md:3
msgid "Check `tutorial/example/segment-tree`."
msgstr ""

9 changes: 4 additions & 5 deletions next/locales/zh_CN/LC_MESSAGES/toolchain.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: MoonBit Document \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-27 13:35+0800\n"
"POT-Creation-Date: 2024-11-28 16:03+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: zh_CN\n"
Expand Down Expand Up @@ -1176,7 +1176,7 @@ msgstr ""
msgid ""
"{\n"
" \"name\": \"example\",\n"
" ...\n"
" // ...\n"
"}\n"
msgstr ""

Expand All @@ -1194,7 +1194,7 @@ msgstr ""
msgid ""
"{\n"
" \"name\": \"moonbitlang/core\",\n"
" ...\n"
" // ...\n"
"}\n"
msgstr ""

Expand All @@ -1219,7 +1219,7 @@ msgid ""
"{\n"
" \"name\": \"example\",\n"
" \"version\": \"0.1.0\",\n"
" ...\n"
" // ...\n"
"}\n"
msgstr ""

Expand Down Expand Up @@ -2687,4 +2687,3 @@ msgid ""
"test username/hello/lib/fib/fib_test.mbt::0 ok\n"
"Total tests: 3, passed: 3, failed: 0.\n"
msgstr ""

Loading

0 comments on commit 9dc5aee

Please sign in to comment.