Skip to main content

Language table editor

Project description

UPLanguageTool

Python + PyQt6 版语言配置表格工具。

环境准备

poetry install

运行

poetry run uplanguagetool

打包

poetry install
poetry run pyinstaller UPLanguageTool.spec

打包输出在 dist/UPLanguageTool.exe

说明

  • 支持拖拽和打开 .lang.json 文件
  • 右键菜单提供读取、保存、查找、撤销/恢复等功能
  • 支持 DeepSeek 自动翻译:选中某个单元格后,可将该行文本自动翻译到其他语言列

AI 翻译配置

在工具栏 AI 菜单中:

  • 配置翻译服务:选择预设模型并填写 API Key
  • 配置术语关键词:单独配置领域关键词(逗号或换行分隔)
  • 翻译选中单元格到本行其他语言:以当前选中单元格为源文本,翻译到同一行的其他语言列

说明:

  • 语言会根据列名自动推断(例如 en.jsonzh_cn.jsonja.lang
  • 目标语言为 zh-TW 时,会强制要求返回繁体中文(不允许简体字)
  • 翻译结果支持撤销/恢复
  • 翻译过程在后台异步执行,并显示可取消的进度窗口
  • 默认预设为 DeepSeek Chat(https://api.deepseek.com/v1 + deepseek-chat
  • 可配置领域关键词(如医疗软件、EMR、处方),且与模型预设无关
  • 预设可扩展:新增预设只需在代码中的预设注册表添加一项
  • AI 配置默认保存到用户目录 ~/.uplanguagetool/uplanguagetool.ai.json,不写入注册表
  • 可通过环境变量指定配置位置:
    • UPLANGUAGETOOL_AI_CONFIG_FILE:指定完整配置文件路径
    • UPLANGUAGETOOL_AI_CONFIG_DIR:指定配置目录(文件名固定为 uplanguagetool.ai.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uplanguagetool-0.2.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uplanguagetool-0.2.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file uplanguagetool-0.2.1.tar.gz.

File metadata

  • Download URL: uplanguagetool-0.2.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for uplanguagetool-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c4fe2fee842500e5339eeedade4591949aa5adfca9158d4274ffdf7ea8e88acb
MD5 ca61ac932c3dfddab26f6bb8b5148d31
BLAKE2b-256 9bf1fe355338f95ce7ca82235e22fec7dfc338d9d1994d743fb5268fdf98ce5b

See more details on using hashes here.

File details

Details for the file uplanguagetool-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: uplanguagetool-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for uplanguagetool-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6efca63982e8a452d36145eaecbe0b66d7c14508a914282d6247eb36b73ce43b
MD5 70d7c335a570a58ab7aa65b1cd18ec72
BLAKE2b-256 32855581140ccfc8fdf925d9c850a423fedafbb272a3519278c7bbb0644a845d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page