mirror of
https://github.com/TriM-Organization/Linglun-Converter.git
synced 2025-09-07 13:16:27 +00:00
准备尝试新事物
This commit is contained in:
28
utils/io.py
28
utils/io.py
@ -14,20 +14,30 @@ Terms & Conditions: ./Lisense.md
|
||||
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
from typing import Any, Callable, Dict, List, Literal, Optional, Set, TextIO, Tuple, Iterable, Sequence
|
||||
from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
Dict,
|
||||
List,
|
||||
Literal,
|
||||
Optional,
|
||||
Set,
|
||||
TextIO,
|
||||
Tuple,
|
||||
Iterable,
|
||||
Sequence,
|
||||
)
|
||||
|
||||
import TrimLog
|
||||
from TrimLog import Console, object_constants
|
||||
from TrimLog import object_constants, logger
|
||||
|
||||
is_logging: bool = True
|
||||
|
||||
MainConsole = Console()
|
||||
osc = object_constants.ObjectStateConstant()
|
||||
logger = TrimLog.Logger(
|
||||
is_logging=is_logging,
|
||||
# printing=not osc.is_release,
|
||||
in_suffix=".llc",
|
||||
)
|
||||
MainConsole = logger.console
|
||||
|
||||
logger.is_logging = True
|
||||
logger.suffix = ".llc"
|
||||
logger.is_tips = True
|
||||
|
||||
|
||||
try:
|
||||
|
31
utils/localize.py
Normal file
31
utils/localize.py
Normal file
@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
伶伦转换器 本地化组件
|
||||
Linglun Converter Language Localization Component
|
||||
|
||||
版权所有 © 2023 金羿 & 睿穆开发组
|
||||
Copyright © 2023 EillesWan & TriM Org.
|
||||
|
||||
开源相关声明请见 ./License.md
|
||||
Terms & Conditions: ./Lisense.md
|
||||
"""
|
||||
|
||||
from .io import TrimLog, urllib, Sequence, Iterable, Callable, Optional
|
||||
|
||||
def unpack_language_pack():
|
||||
pass
|
||||
|
||||
def enpack_language_pack():
|
||||
pass
|
||||
|
||||
def _() -> str:
|
||||
return ""
|
||||
|
||||
def main():
|
||||
pass
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
Reference in New Issue
Block a user