mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
feat: add font customization (#973)
* action: auto clang format changes action: clang-format * feat: add separator tab to configure the font family for the web engine. feat: custom fonts feat: add custom font i18n: update crowdin translation files * [autofix.ci] apply automated fixes * feat: add notice about the font customization * feat: adjust interface layout * i18n: update transaltion source * fix: code smells * feat: custom font layout adjustment * i18n: update translation items * feat: adjust layout of custom fonts * i18n: new * feat: adjust layout --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
534d8c2e96
commit
ce8b8a60bb
9
.github/workflows/auto format.yml
vendored
9
.github/workflows/auto format.yml
vendored
|
@ -28,7 +28,7 @@ jobs:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
# format the latest commit
|
# format the latest commit
|
||||||
- name: ubuntu install clang-format
|
- name: ubuntu install clang-format
|
||||||
if: ${{ github.event.pull_request.head.repo.full_name == 'xiaoyifang/goldendict-ng' }}
|
# if: ${{ github.event.pull_request.head.repo.full_name == 'xiaoyifang/goldendict-ng' }}
|
||||||
id: clang-format
|
id: clang-format
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install git lsb-release wget software-properties-common
|
sudo apt-get install git lsb-release wget software-properties-common
|
||||||
|
@ -37,13 +37,6 @@ jobs:
|
||||||
sudo apt-get install -y clang-format
|
sudo apt-get install -y clang-format
|
||||||
git-clang-format --style=file HEAD^
|
git-clang-format --style=file HEAD^
|
||||||
|
|
||||||
|
|
||||||
- uses: EndBug/add-and-commit@v9
|
|
||||||
if: ${{ github.event.pull_request.head.repo.full_name == 'xiaoyifang/goldendict-ng' }}
|
|
||||||
with:
|
|
||||||
default_author: github_actor
|
|
||||||
message: 🎨 apply clang-format changes
|
|
||||||
|
|
||||||
- uses: autofix-ci/action@89762f9c25dd85f6b78cd40e521232e403357ec0
|
- uses: autofix-ci/action@89762f9c25dd85f6b78cd40e521232e403357ec0
|
||||||
|
|
||||||
|
|
||||||
|
|
4
locale/.clang-format
Normal file
4
locale/.clang-format
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
DisableFormat: true
|
||||||
|
SortIncludes: Never
|
||||||
|
...
|
|
@ -186,33 +186,33 @@
|
||||||
<context>
|
<context>
|
||||||
<name>ArticleView</name>
|
<name>ArticleView</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1928"/>
|
<location filename="../src/ui/articleview.cc" line="1929"/>
|
||||||
<source>Failed to create temporary file.</source>
|
<source>Failed to create temporary file.</source>
|
||||||
<translation>创建临时文件失败。</translation>
|
<translation>创建临时文件失败。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1639"/>
|
<location filename="../src/ui/articleview.cc" line="1640"/>
|
||||||
<source>&Look up "%1"</source>
|
<source>&Look up "%1"</source>
|
||||||
<translation>查找 "%1"(&L)</translation>
|
<translation>查找 "%1"(&L)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1647"/>
|
<location filename="../src/ui/articleview.cc" line="1648"/>
|
||||||
<source>Look up "%1" in &New Tab</source>
|
<source>Look up "%1" in &New Tab</source>
|
||||||
<translation>在新标签页中查找 "%1"(&N)</translation>
|
<translation>在新标签页中查找 "%1"(&N)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1214"/>
|
<location filename="../src/ui/articleview.cc" line="1215"/>
|
||||||
<location filename="../src/ui/articleview.cc" line="1391"/>
|
<location filename="../src/ui/articleview.cc" line="1392"/>
|
||||||
<source>The referenced resource doesn't exist.</source>
|
<source>The referenced resource doesn't exist.</source>
|
||||||
<translation>所引用的资源不存在。</translation>
|
<translation>所引用的资源不存在。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1939"/>
|
<location filename="../src/ui/articleview.cc" line="1940"/>
|
||||||
<source>Failed to auto-open resource file, try opening manually: %1.</source>
|
<source>Failed to auto-open resource file, try opening manually: %1.</source>
|
||||||
<translation>自动打开资源文件时失败,请尝试手动打开:%1.</translation>
|
<translation>自动打开资源文件时失败,请尝试手动打开:%1.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1673"/>
|
<location filename="../src/ui/articleview.cc" line="1674"/>
|
||||||
<source>Look up "%1" in %2</source>
|
<source>Look up "%1" in %2</source>
|
||||||
<translation>在 %2 中查找 "%1"</translation>
|
<translation>在 %2 中查找 "%1"</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -232,105 +232,105 @@
|
||||||
<translation>审查元素</translation>
|
<translation>审查元素</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1681"/>
|
<location filename="../src/ui/articleview.cc" line="1682"/>
|
||||||
<source>Look up "%1" in %2 in &New Tab</source>
|
<source>Look up "%1" in %2 in &New Tab</source>
|
||||||
<translation>在 %2 中查找 "%1" 并使用新标签页(&N)</translation>
|
<translation>在 %2 中查找 "%1" 并使用新标签页(&N)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1597"/>
|
<location filename="../src/ui/articleview.cc" line="1598"/>
|
||||||
<source>Open Link in New &Tab</source>
|
<source>Open Link in New &Tab</source>
|
||||||
<translation>在新标签页中打开链接(&T)</translation>
|
<translation>在新标签页中打开链接(&T)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1604"/>
|
<location filename="../src/ui/articleview.cc" line="1605"/>
|
||||||
<source>Open Link in &External Browser</source>
|
<source>Open Link in &External Browser</source>
|
||||||
<translation>在外部浏览器中打开链接(&E)</translation>
|
<translation>在外部浏览器中打开链接(&E)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="854"/>
|
<location filename="../src/ui/articleview.cc" line="855"/>
|
||||||
<source>Resource</source>
|
<source>Resource</source>
|
||||||
<translation>资源</translation>
|
<translation>资源</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="859"/>
|
<location filename="../src/ui/articleview.cc" line="860"/>
|
||||||
<source>Audio</source>
|
<source>Audio</source>
|
||||||
<translation>音频</translation>
|
<translation>音频</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="864"/>
|
<location filename="../src/ui/articleview.cc" line="865"/>
|
||||||
<source>TTS Voice</source>
|
<source>TTS Voice</source>
|
||||||
<translation>TTS 音频</translation>
|
<translation>TTS 音频</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="869"/>
|
<location filename="../src/ui/articleview.cc" line="870"/>
|
||||||
<source>Picture</source>
|
<source>Picture</source>
|
||||||
<translation>图片</translation>
|
<translation>图片</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="876"/>
|
<location filename="../src/ui/articleview.cc" line="877"/>
|
||||||
<source>Video</source>
|
<source>Video</source>
|
||||||
<translatorcomment>视频: %1</translatorcomment>
|
<translatorcomment>视频: %1</translatorcomment>
|
||||||
<translation>视频</translation>
|
<translation>视频</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="885"/>
|
<location filename="../src/ui/articleview.cc" line="886"/>
|
||||||
<source>Video: %1</source>
|
<source>Video: %1</source>
|
||||||
<translation>视频:%1</translation>
|
<translation>视频:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="902"/>
|
<location filename="../src/ui/articleview.cc" line="903"/>
|
||||||
<source>Definition from dictionary "%1": %2</source>
|
<source>Definition from dictionary "%1": %2</source>
|
||||||
<translation>定义:"%1": %2</translation>
|
<translation>定义:"%1": %2</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="910"/>
|
<location filename="../src/ui/articleview.cc" line="911"/>
|
||||||
<source>Definition: %1</source>
|
<source>Definition: %1</source>
|
||||||
<translation>定义:%1</translation>
|
<translation>定义:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1249"/>
|
<location filename="../src/ui/articleview.cc" line="1250"/>
|
||||||
<source>The referenced audio program doesn't exist.</source>
|
<source>The referenced audio program doesn't exist.</source>
|
||||||
<translation>引用的音频播放程序不存在。</translation>
|
<translation>引用的音频播放程序不存在。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1591"/>
|
<location filename="../src/ui/articleview.cc" line="1592"/>
|
||||||
<source>Op&en Link</source>
|
<source>Op&en Link</source>
|
||||||
<translation>打开链接(&E)</translation>
|
<translation>打开链接(&E)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1692"/>
|
<location filename="../src/ui/articleview.cc" line="1693"/>
|
||||||
<source>Save &Bookmark "%1..."</source>
|
<source>Save &Bookmark "%1..."</source>
|
||||||
<translation>保存为书签(&S)“%1...”</translation>
|
<translation>保存为书签(&S)“%1...”</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1969"/>
|
<location filename="../src/ui/articleview.cc" line="1970"/>
|
||||||
<source>WARNING: Audio Player: %1</source>
|
<source>WARNING: Audio Player: %1</source>
|
||||||
<translation>警告:音频播放器:%1</translation>
|
<translation>警告:音频播放器:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1139"/>
|
<location filename="../src/ui/articleview.cc" line="1140"/>
|
||||||
<location filename="../src/ui/articleview.cc" line="1174"/>
|
<location filename="../src/ui/articleview.cc" line="1175"/>
|
||||||
<location filename="../src/ui/articleview.cc" line="1391"/>
|
<location filename="../src/ui/articleview.cc" line="1392"/>
|
||||||
<source>ERROR: %1</source>
|
<source>ERROR: %1</source>
|
||||||
<translation>错误: %1</translation>
|
<translation>错误: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1841"/>
|
<location filename="../src/ui/articleview.cc" line="1842"/>
|
||||||
<source>Save sound</source>
|
<source>Save sound</source>
|
||||||
<translation>保存音频文件</translation>
|
<translation>保存音频文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1856"/>
|
<location filename="../src/ui/articleview.cc" line="1857"/>
|
||||||
<source>Save image</source>
|
<source>Save image</source>
|
||||||
<translation>保存图片</translation>
|
<translation>保存图片</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1858"/>
|
<location filename="../src/ui/articleview.cc" line="1859"/>
|
||||||
<source>Image files (*.bmp *.jpg *.png *.tif);;All files (*.*)</source>
|
<source>Image files (*.bmp *.jpg *.png *.tif);;All files (*.*)</source>
|
||||||
<translation>图片文件 (*.bmp *.jpg *.png *.tif);;所有文件 (*.*)</translation>
|
<translation>图片文件 (*.bmp *.jpg *.png *.tif);;所有文件 (*.*)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1620"/>
|
<location filename="../src/ui/articleview.cc" line="1621"/>
|
||||||
<source>Save &image...</source>
|
<source>Save &image...</source>
|
||||||
<translation>保存图片(&I)...</translation>
|
<translation>保存图片(&I)...</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -345,38 +345,38 @@
|
||||||
<translation>匹配(%1/%2)</translation>
|
<translation>匹配(%1/%2)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1627"/>
|
<location filename="../src/ui/articleview.cc" line="1628"/>
|
||||||
<source>Save s&ound...</source>
|
<source>Save s&ound...</source>
|
||||||
<translation>保存音频文件(&O)...</translation>
|
<translation>保存音频文件(&O)...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1652"/>
|
<location filename="../src/ui/articleview.cc" line="1653"/>
|
||||||
<source>Send "%1" to input line</source>
|
<source>Send "%1" to input line</source>
|
||||||
<translation>将 "%1" 发送到输入框</translation>
|
<translation>将 "%1" 发送到输入框</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1658"/>
|
<location filename="../src/ui/articleview.cc" line="1659"/>
|
||||||
<location filename="../src/ui/articleview.cc" line="1710"/>
|
<location filename="../src/ui/articleview.cc" line="1711"/>
|
||||||
<source>&Add "%1" to history</source>
|
<source>&Add "%1" to history</source>
|
||||||
<translation>将 "%1" 添加到历史(&A)</translation>
|
<translation>将 "%1" 添加到历史(&A)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1700"/>
|
<location filename="../src/ui/articleview.cc" line="1701"/>
|
||||||
<source>&Send Current Article to Anki</source>
|
<source>&Send Current Article to Anki</source>
|
||||||
<translation>发送当前文章到 Anki(&S)</translation>
|
<translation>发送当前文章到 Anki(&S)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1701"/>
|
<location filename="../src/ui/articleview.cc" line="1702"/>
|
||||||
<source>&Send selected text to Anki</source>
|
<source>&Send selected text to Anki</source>
|
||||||
<translation>发送选中文本到 Anki(&S)</translation>
|
<translation>发送选中文本到 Anki(&S)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1843"/>
|
<location filename="../src/ui/articleview.cc" line="1844"/>
|
||||||
<source>Sound files (*.wav *.opus *.ogg *.oga *.mp3 *.mp4 *.aac *.flac *.mid *.wv *.ape *.spx);;All files (*.*)</source>
|
<source>Sound files (*.wav *.opus *.ogg *.oga *.mp3 *.mp4 *.aac *.flac *.mid *.wv *.ape *.spx);;All files (*.*)</source>
|
||||||
<translation>声音文件 (*.wav *.opus *.ogg *.oga *.mp3 *.mp4 *.aac *.flac *.mid *.wv *.ape *.spx);;所有文件 (*.*)</translation>
|
<translation>声音文件 (*.wav *.opus *.ogg *.oga *.mp3 *.mp4 *.aac *.flac *.mid *.wv *.ape *.spx);;所有文件 (*.*)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="1913"/>
|
<location filename="../src/ui/articleview.cc" line="1914"/>
|
||||||
<source>Failed to play sound file: %1</source>
|
<source>Failed to play sound file: %1</source>
|
||||||
<translation>播放音频文件失败:%1</translation>
|
<translation>播放音频文件失败:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -813,11 +813,21 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>词条</translation>
|
<translation>词条</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/dictinfo.cc" line="30"/>
|
<location filename="../src/ui/dictinfo.cc" line="31"/>
|
||||||
<source>Edit the dictionary via command:
|
<source>Edit the dictionary via command:
|
||||||
%1</source>
|
%1</source>
|
||||||
<translation>编辑词典信息的命令行:%1</translation>
|
<translation>编辑词典信息的命令行:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/ui/dictinfo.ui"/>
|
||||||
|
<source>Index filename:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/ui/dictinfo.ui"/>
|
||||||
|
<source>Open index folder</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DictListModel</name>
|
<name>DictListModel</name>
|
||||||
|
@ -1457,12 +1467,12 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>初始化 GoldenDict-ng</translation>
|
<translation>初始化 GoldenDict-ng</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/initializing.cc" line="19"/>
|
<location filename="../src/initializing.cc" line="18"/>
|
||||||
<source>Please wait...</source>
|
<source>Please wait...</source>
|
||||||
<translation>请稍候...</translation>
|
<translation>请稍候...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/initializing.cc" line="28"/>
|
<location filename="../src/initializing.cc" line="27"/>
|
||||||
<source>Indexing...</source>
|
<source>Indexing...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2727,17 +2737,17 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>F4</translation>
|
<translation>F4</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="1529"/>
|
<location filename="../src/ui/mainwindow.cc" line="1560"/>
|
||||||
<source>All</source>
|
<source>All</source>
|
||||||
<translation>全部</translation>
|
<translation>全部</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="200"/>
|
<location filename="../src/ui/mainwindow.cc" line="224"/>
|
||||||
<source>Back</source>
|
<source>Back</source>
|
||||||
<translation>回退</translation>
|
<translation>回退</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="1502"/>
|
<location filename="../src/ui/mainwindow.cc" line="1533"/>
|
||||||
<source>%1 dictionaries, %2 articles, %3 words</source>
|
<source>%1 dictionaries, %2 articles, %3 words</source>
|
||||||
<translation>词典数:%1,文章数:%2,词条数:%3</translation>
|
<translation>词典数:%1,文章数:%2,词条数:%3</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2763,12 +2773,12 @@ between classic and school orthography in cyrillic)</source>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.ui"/>
|
<location filename="../src/ui/mainwindow.ui"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="383"/>
|
<location filename="../src/ui/mainwindow.cc" line="407"/>
|
||||||
<source>&Quit</source>
|
<source>&Quit</source>
|
||||||
<translation>退出(&Q)</translation>
|
<translation>退出(&Q)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3279"/>
|
<location filename="../src/ui/mainwindow.cc" line="3305"/>
|
||||||
<source>Error</source>
|
<source>Error</source>
|
||||||
<translation>错误</translation>
|
<translation>错误</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2783,12 +2793,12 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>关闭至系统托盘(&C)</translation>
|
<translation>关闭至系统托盘(&C)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3279"/>
|
<location filename="../src/ui/mainwindow.cc" line="3305"/>
|
||||||
<source>Can't save article: %1</source>
|
<source>Can't save article: %1</source>
|
||||||
<translation>无法保存文章:%1</translation>
|
<translation>无法保存文章:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="246"/>
|
<location filename="../src/ui/mainwindow.cc" line="270"/>
|
||||||
<source>Zoom In</source>
|
<source>Zoom In</source>
|
||||||
<translation>放大</translation>
|
<translation>放大</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2818,7 +2828,7 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>保存文章(&S)</translation>
|
<translation>保存文章(&S)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3262"/>
|
<location filename="../src/ui/mainwindow.cc" line="3288"/>
|
||||||
<source>Save Article As</source>
|
<source>Save Article As</source>
|
||||||
<translation>文章另存为</translation>
|
<translation>文章另存为</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2848,17 +2858,17 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>主页(&H)</translation>
|
<translation>主页(&H)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="2961"/>
|
<location filename="../src/ui/mainwindow.cc" line="2987"/>
|
||||||
<source>New Release Available</source>
|
<source>New Release Available</source>
|
||||||
<translation>有新版本可用</translation>
|
<translation>有新版本可用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="250"/>
|
<location filename="../src/ui/mainwindow.cc" line="274"/>
|
||||||
<source>Zoom Out</source>
|
<source>Zoom Out</source>
|
||||||
<translation>缩小</translation>
|
<translation>缩小</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="376"/>
|
<location filename="../src/ui/mainwindow.cc" line="400"/>
|
||||||
<source>Show &Main Window</source>
|
<source>Show &Main Window</source>
|
||||||
<translation>显示主窗口(&M)</translation>
|
<translation>显示主窗口(&M)</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2868,27 +2878,27 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>关于 GoldenDict-ng</translation>
|
<translation>关于 GoldenDict-ng</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="2968"/>
|
<location filename="../src/ui/mainwindow.cc" line="2994"/>
|
||||||
<source>Download</source>
|
<source>Download</source>
|
||||||
<translation>下载</translation>
|
<translation>下载</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3157"/>
|
<location filename="../src/ui/mainwindow.cc" line="3183"/>
|
||||||
<source>Page Setup</source>
|
<source>Page Setup</source>
|
||||||
<translation>页面设置</translation>
|
<translation>页面设置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="254"/>
|
<location filename="../src/ui/mainwindow.cc" line="278"/>
|
||||||
<source>Normal Size</source>
|
<source>Normal Size</source>
|
||||||
<translation>正常大小</translation>
|
<translation>正常大小</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="2811"/>
|
<location filename="../src/ui/mainwindow.cc" line="2837"/>
|
||||||
<source>Failed to initialize hotkeys monitoring mechanism.<br>Make sure your XServer has RECORD extension turned on.</source>
|
<source>Failed to initialize hotkeys monitoring mechanism.<br>Make sure your XServer has RECORD extension turned on.</source>
|
||||||
<translation>初始化热键监视机制失败。<br>请确保你的 XServer 已启用 RECORD 扩展。</translation>
|
<translation>初始化热键监视机制失败。<br>请确保你的 XServer 已启用 RECORD 扩展。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="2962"/>
|
<location filename="../src/ui/mainwindow.cc" line="2988"/>
|
||||||
<source>Version <b>%1</b> of GoldenDict is now available for download.<br>Click <b>Download</b> to get to the download page.</source>
|
<source>Version <b>%1</b> of GoldenDict is now available for download.<br>Click <b>Download</b> to get to the download page.</source>
|
||||||
<translation>有新版 GoldenDict 可用,版本为 <b>%1</b>。<br>
|
<translation>有新版 GoldenDict 可用,版本为 <b>%1</b>。<br>
|
||||||
点击<b>下载</b>,打开下载页面。</translation>
|
点击<b>下载</b>,打开下载页面。</translation>
|
||||||
|
@ -2904,12 +2914,12 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>Ctrl+F5</translation>
|
<translation>Ctrl+F5</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="583"/>
|
<location filename="../src/ui/mainwindow.cc" line="607"/>
|
||||||
<source>Loading...</source>
|
<source>Loading...</source>
|
||||||
<translation>加载中……</translation>
|
<translation>加载中……</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="1688"/>
|
<location filename="../src/ui/mainwindow.cc" line="1719"/>
|
||||||
<source>(untitled)</source>
|
<source>(untitled)</source>
|
||||||
<translation>(未命名)</translation>
|
<translation>(未命名)</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2920,12 +2930,12 @@ between classic and school orthography in cyrillic)</source>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.ui"/>
|
<location filename="../src/ui/mainwindow.ui"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="729"/>
|
<location filename="../src/ui/mainwindow.cc" line="757"/>
|
||||||
<source>Welcome!</source>
|
<source>Welcome!</source>
|
||||||
<translation>欢迎使用!</translation>
|
<translation>欢迎使用!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="233"/>
|
<location filename="../src/ui/mainwindow.cc" line="257"/>
|
||||||
<source>Pronounce Word (Alt+S)</source>
|
<source>Pronounce Word (Alt+S)</source>
|
||||||
<translation>朗读词条(Alt+S)</translation>
|
<translation>朗读词条(Alt+S)</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2935,22 +2945,22 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>保存文章</translation>
|
<translation>保存文章</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="2969"/>
|
<location filename="../src/ui/mainwindow.cc" line="2995"/>
|
||||||
<source>Skip This Release</source>
|
<source>Skip This Release</source>
|
||||||
<translation>忽略此次升级</translation>
|
<translation>忽略此次升级</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="202"/>
|
<location filename="../src/ui/mainwindow.cc" line="226"/>
|
||||||
<source>Forward</source>
|
<source>Forward</source>
|
||||||
<translation>前进</translation>
|
<translation>前进</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3179"/>
|
<location filename="../src/ui/mainwindow.cc" line="3205"/>
|
||||||
<source>Print Article</source>
|
<source>Print Article</source>
|
||||||
<translation>打印文章</translation>
|
<translation>打印文章</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3158"/>
|
<location filename="../src/ui/mainwindow.cc" line="3184"/>
|
||||||
<source>No printer is available. Please install one first.</source>
|
<source>No printer is available. Please install one first.</source>
|
||||||
<translation>找不到可用的打印机,请先安装一个打印机。</translation>
|
<translation>找不到可用的打印机,请先安装一个打印机。</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2975,42 +2985,42 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>缩放(&Z)</translation>
|
<translation>缩放(&Z)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="364"/>
|
<location filename="../src/ui/mainwindow.cc" line="388"/>
|
||||||
<source>Words Zoom In</source>
|
<source>Words Zoom In</source>
|
||||||
<translation>单词列表 - 放大</translation>
|
<translation>单词列表 - 放大</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="366"/>
|
<location filename="../src/ui/mainwindow.cc" line="390"/>
|
||||||
<source>Words Zoom Out</source>
|
<source>Words Zoom Out</source>
|
||||||
<translation>单词列表 - 缩小</translation>
|
<translation>单词列表 - 缩小</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="368"/>
|
<location filename="../src/ui/mainwindow.cc" line="392"/>
|
||||||
<source>Words Normal Size</source>
|
<source>Words Normal Size</source>
|
||||||
<translation>单词列表 - 正常大小</translation>
|
<translation>单词列表 - 正常大小</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="425"/>
|
<location filename="../src/ui/mainwindow.cc" line="449"/>
|
||||||
<source>Close current tab</source>
|
<source>Close current tab</source>
|
||||||
<translation>关闭当前标签页</translation>
|
<translation>关闭当前标签页</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="433"/>
|
<location filename="../src/ui/mainwindow.cc" line="457"/>
|
||||||
<source>Close all tabs</source>
|
<source>Close all tabs</source>
|
||||||
<translation>关闭所有标签页</translation>
|
<translation>关闭所有标签页</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="440"/>
|
<location filename="../src/ui/mainwindow.cc" line="464"/>
|
||||||
<source>Close all tabs except current</source>
|
<source>Close all tabs except current</source>
|
||||||
<translation>关闭其它标签页</translation>
|
<translation>关闭其它标签页</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="415"/>
|
<location filename="../src/ui/mainwindow.cc" line="439"/>
|
||||||
<source>Opened tabs</source>
|
<source>Opened tabs</source>
|
||||||
<translation>已打开的标签页</translation>
|
<translation>已打开的标签页</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="592"/>
|
<location filename="../src/ui/mainwindow.cc" line="616"/>
|
||||||
<source>New Tab</source>
|
<source>New Tab</source>
|
||||||
<translation>新建标签页</translation>
|
<translation>新建标签页</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3025,65 +3035,65 @@ between classic and school orthography in cyrillic)</source>
|
||||||
<translation>配置文件夹(&C)</translation>
|
<translation>配置文件夹(&C)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="123"/>
|
<location filename="../src/ui/mainwindow.cc" line="147"/>
|
||||||
<source>&Menubar</source>
|
<source>&Menubar</source>
|
||||||
<translation>菜单栏(&M)</translation>
|
<translation>菜单栏(&M)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="340"/>
|
<location filename="../src/ui/mainwindow.cc" line="364"/>
|
||||||
<source>Found in Dictionaries:</source>
|
<source>Found in Dictionaries:</source>
|
||||||
<translation>在以下词典中找到:</translation>
|
<translation>在以下词典中找到:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="460"/>
|
<location filename="../src/ui/mainwindow.cc" line="484"/>
|
||||||
<source>Add all tabs to Favorites</source>
|
<source>Add all tabs to Favorites</source>
|
||||||
<translation>将全部标签页添加至收藏</translation>
|
<translation>将全部标签页添加至收藏</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="945"/>
|
<location filename="../src/ui/mainwindow.cc" line="971"/>
|
||||||
<source>WARNING: %1</source>
|
<source>WARNING: %1</source>
|
||||||
<translation type="unfinished">警告: %1</translation>
|
<translation type="unfinished">警告: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="1075"/>
|
<location filename="../src/ui/mainwindow.cc" line="1101"/>
|
||||||
<source>String to search in dictionaries. The wildcards '*', '?' and sets of symbols '[...]' are allowed.
|
<source>String to search in dictionaries. The wildcards '*', '?' and sets of symbols '[...]' are allowed.
|
||||||
To find '*', '?', '[', ']' symbols use '\*', '\?', '\[', '\]' respectively</source>
|
To find '*', '?', '[', ']' symbols use '\*', '\?', '\[', '\]' respectively</source>
|
||||||
<translation>词典搜索中的字符串:可以使用通配符“*”、“?”和符号分组“[...]”。
|
<translation>词典搜索中的字符串:可以使用通配符“*”、“?”和符号分组“[...]”。
|
||||||
如需查找“*”、“?”、“[”和“]”字符,请对应使用“\*”、“\?”、“\[”和“\]”</translation>
|
如需查找“*”、“?”、“[”和“]”字符,请对应使用“\*”、“\?”、“\[”和“\]”</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="1637"/>
|
<location filename="../src/ui/mainwindow.cc" line="1668"/>
|
||||||
<source>Open Tabs List</source>
|
<source>Open Tabs List</source>
|
||||||
<translation>打开标签页列表</translation>
|
<translation>打开标签页列表</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="1884"/>
|
<location filename="../src/ui/mainwindow.cc" line="1915"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="1953"/>
|
<location filename="../src/ui/mainwindow.cc" line="1979"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="4318"/>
|
<location filename="../src/ui/mainwindow.cc" line="4344"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="4346"/>
|
<location filename="../src/ui/mainwindow.cc" line="4372"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="4385"/>
|
<location filename="../src/ui/mainwindow.cc" line="4411"/>
|
||||||
<source>Remove current tab from Favorites</source>
|
<source>Remove current tab from Favorites</source>
|
||||||
<translation>从收藏中删除当前标签页</translation>
|
<translation>从收藏中删除当前标签页</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="1908"/>
|
<location filename="../src/ui/mainwindow.cc" line="1939"/>
|
||||||
<source>%1 - %2</source>
|
<source>%1 - %2</source>
|
||||||
<translation>%1 - %2</translation>
|
<translation>%1 - %2</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3063"/>
|
<location filename="../src/ui/mainwindow.cc" line="3089"/>
|
||||||
<source>You have chosen to hide a menubar. Use %1 to show it back.</source>
|
<source>You have chosen to hide a menubar. Use %1 to show it back.</source>
|
||||||
<translation>你选择了隐藏菜单栏,使用 %1 再次显示。</translation>
|
<translation>你选择了隐藏菜单栏,使用 %1 再次显示。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3065"/>
|
<location filename="../src/ui/mainwindow.cc" line="3091"/>
|
||||||
<source>Ctrl+M</source>
|
<source>Ctrl+M</source>
|
||||||
<translation>Ctrl+M</translation>
|
<translation>Ctrl+M</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.ui"/>
|
<location filename="../src/ui/mainwindow.ui"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3625"/>
|
<location filename="../src/ui/mainwindow.cc" line="3651"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3635"/>
|
<location filename="../src/ui/mainwindow.cc" line="3661"/>
|
||||||
<source>&Show</source>
|
<source>&Show</source>
|
||||||
<translation>显示(&S)</translation>
|
<translation>显示(&S)</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3093,37 +3103,37 @@ To find '*', '?', '[', ']' symbols use &
|
||||||
<translation>导出(&E)</translation>
|
<translation>导出(&E)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3621"/>
|
<location filename="../src/ui/mainwindow.cc" line="3647"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3632"/>
|
<location filename="../src/ui/mainwindow.cc" line="3658"/>
|
||||||
<source>&Hide</source>
|
<source>&Hide</source>
|
||||||
<translation>隐藏(&H)</translation>
|
<translation>隐藏(&H)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3673"/>
|
<location filename="../src/ui/mainwindow.cc" line="3699"/>
|
||||||
<source>Export history to file</source>
|
<source>Export history to file</source>
|
||||||
<translation>导出历史记录到文件</translation>
|
<translation>导出历史记录到文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3675"/>
|
<location filename="../src/ui/mainwindow.cc" line="3701"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3736"/>
|
<location filename="../src/ui/mainwindow.cc" line="3762"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3851"/>
|
<location filename="../src/ui/mainwindow.cc" line="3877"/>
|
||||||
<source>Text files (*.txt);;All files (*.*)</source>
|
<source>Text files (*.txt);;All files (*.*)</source>
|
||||||
<translation>文本文件 (*.txt);;所有文件 (*.*)</translation>
|
<translation>文本文件 (*.txt);;所有文件 (*.*)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3719"/>
|
<location filename="../src/ui/mainwindow.cc" line="3745"/>
|
||||||
<source>History export complete</source>
|
<source>History export complete</source>
|
||||||
<translation>历史记录导出完成</translation>
|
<translation>历史记录导出完成</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3684"/>
|
<location filename="../src/ui/mainwindow.cc" line="3710"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3697"/>
|
<location filename="../src/ui/mainwindow.cc" line="3723"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3714"/>
|
<location filename="../src/ui/mainwindow.cc" line="3740"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3820"/>
|
<location filename="../src/ui/mainwindow.cc" line="3846"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3828"/>
|
<location filename="../src/ui/mainwindow.cc" line="3854"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3859"/>
|
<location filename="../src/ui/mainwindow.cc" line="3885"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3867"/>
|
<location filename="../src/ui/mainwindow.cc" line="3893"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3877"/>
|
<location filename="../src/ui/mainwindow.cc" line="3903"/>
|
||||||
<source>Export error: </source>
|
<source>Export error: </source>
|
||||||
<translation>导出错误:</translation>
|
<translation>导出错误:</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3138,96 +3148,96 @@ To find '*', '?', '[', ']' symbols use &
|
||||||
<translation>导入(&I)</translation>
|
<translation>导入(&I)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3734"/>
|
<location filename="../src/ui/mainwindow.cc" line="3760"/>
|
||||||
<source>Import history from file</source>
|
<source>Import history from file</source>
|
||||||
<translation>导入历史文件</translation>
|
<translation>导入历史文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3783"/>
|
<location filename="../src/ui/mainwindow.cc" line="3809"/>
|
||||||
<source>Import error: invalid data in file</source>
|
<source>Import error: invalid data in file</source>
|
||||||
<translation>导入失败:无效数据</translation>
|
<translation>导入失败:无效数据</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3789"/>
|
<location filename="../src/ui/mainwindow.cc" line="3815"/>
|
||||||
<source>History import complete</source>
|
<source>History import complete</source>
|
||||||
<translation>历史导入成功</translation>
|
<translation>历史导入成功</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3746"/>
|
<location filename="../src/ui/mainwindow.cc" line="3772"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3777"/>
|
<location filename="../src/ui/mainwindow.cc" line="3803"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3909"/>
|
<location filename="../src/ui/mainwindow.cc" line="3935"/>
|
||||||
<source>Import error: </source>
|
<source>Import error: </source>
|
||||||
<translation>导入错误:</translation>
|
<translation>导入错误:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3809"/>
|
<location filename="../src/ui/mainwindow.cc" line="3835"/>
|
||||||
<source>Export Favorites to file</source>
|
<source>Export Favorites to file</source>
|
||||||
<translation>导出收藏记录到文件</translation>
|
<translation>导出收藏记录到文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3811"/>
|
<location filename="../src/ui/mainwindow.cc" line="3837"/>
|
||||||
<source>XML files (*.xml);;All files (*.*)</source>
|
<source>XML files (*.xml);;All files (*.*)</source>
|
||||||
<translation>XML 文件 (*.xml);;所有文件 (*.*)</translation>
|
<translation>XML 文件 (*.xml);;所有文件 (*.*)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3833"/>
|
<location filename="../src/ui/mainwindow.cc" line="3859"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3882"/>
|
<location filename="../src/ui/mainwindow.cc" line="3908"/>
|
||||||
<source>Favorites export complete</source>
|
<source>Favorites export complete</source>
|
||||||
<translation>收藏导出完成</translation>
|
<translation>收藏导出完成</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3849"/>
|
<location filename="../src/ui/mainwindow.cc" line="3875"/>
|
||||||
<source>Export Favorites to file as plain list</source>
|
<source>Export Favorites to file as plain list</source>
|
||||||
<translation>以纯列表形式导出收藏列表到文件</translation>
|
<translation>以纯列表形式导出收藏列表到文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3897"/>
|
<location filename="../src/ui/mainwindow.cc" line="3923"/>
|
||||||
<source>Import Favorites from file</source>
|
<source>Import Favorites from file</source>
|
||||||
<translation>导入收藏文件</translation>
|
<translation>导入收藏文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3899"/>
|
<location filename="../src/ui/mainwindow.cc" line="3925"/>
|
||||||
<source>XML files (*.xml);;Txt files (*.txt);;All files (*.*)</source>
|
<source>XML files (*.xml);;Txt files (*.txt);;All files (*.*)</source>
|
||||||
<translation>XML文件(*.xml);;文本文件(*.txt);;所有文件(*.*)</translation>
|
<translation>XML文件(*.xml);;文本文件(*.txt);;所有文件(*.*)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3929"/>
|
<location filename="../src/ui/mainwindow.cc" line="3955"/>
|
||||||
<source>Favorites import complete</source>
|
<source>Favorites import complete</source>
|
||||||
<translation>收藏导入完成</translation>
|
<translation>收藏导入完成</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3917"/>
|
<location filename="../src/ui/mainwindow.cc" line="3943"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3923"/>
|
<location filename="../src/ui/mainwindow.cc" line="3949"/>
|
||||||
<source>Data parsing error</source>
|
<source>Data parsing error</source>
|
||||||
<translation>数据解析错误</translation>
|
<translation>数据解析错误</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="4136"/>
|
<location filename="../src/ui/mainwindow.cc" line="4162"/>
|
||||||
<source>Dictionary info</source>
|
<source>Dictionary info</source>
|
||||||
<translation>词典信息</translation>
|
<translation>词典信息</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="4140"/>
|
<location filename="../src/ui/mainwindow.cc" line="4166"/>
|
||||||
<source>Dictionary headwords</source>
|
<source>Dictionary headwords</source>
|
||||||
<translation>词典词条</translation>
|
<translation>词典词条</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="4142"/>
|
<location filename="../src/ui/mainwindow.cc" line="4168"/>
|
||||||
<source>Open dictionary folder</source>
|
<source>Open dictionary folder</source>
|
||||||
<translation>打开词典文件夹</translation>
|
<translation>打开词典文件夹</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="4148"/>
|
<location filename="../src/ui/mainwindow.cc" line="4174"/>
|
||||||
<source>Edit dictionary</source>
|
<source>Edit dictionary</source>
|
||||||
<translation>编辑词典信息</translation>
|
<translation>编辑词典信息</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="4293"/>
|
<location filename="../src/ui/mainwindow.cc" line="4319"/>
|
||||||
<source>Now indexing for full-text search: </source>
|
<source>Now indexing for full-text search: </source>
|
||||||
<translation>正在为全文搜索进行索引:</translation>
|
<translation>正在为全文搜索进行索引:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="4331"/>
|
<location filename="../src/ui/mainwindow.cc" line="4357"/>
|
||||||
<source>Remove headword "%1" from Favorites?</source>
|
<source>Remove headword "%1" from Favorites?</source>
|
||||||
<translation>从收藏中删除标题字“%1”?</translation>
|
<translation>从收藏中删除标题字“%1”?</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3278,7 +3288,7 @@ To find '*', '?', '[', ']' symbols use &
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.ui"/>
|
<location filename="../src/ui/mainwindow.ui"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="298"/>
|
<location filename="../src/ui/mainwindow.cc" line="322"/>
|
||||||
<source>Menu Button</source>
|
<source>Menu Button</source>
|
||||||
<translation>菜单按钮</translation>
|
<translation>菜单按钮</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3329,10 +3339,10 @@ To find '*', '?', '[', ']' symbols use &
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.ui"/>
|
<location filename="../src/ui/mainwindow.ui"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="269"/>
|
<location filename="../src/ui/mainwindow.cc" line="293"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="1888"/>
|
<location filename="../src/ui/mainwindow.cc" line="1919"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="1957"/>
|
<location filename="../src/ui/mainwindow.cc" line="1983"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="4338"/>
|
<location filename="../src/ui/mainwindow.cc" line="4364"/>
|
||||||
<source>Add current tab to Favorites</source>
|
<source>Add current tab to Favorites</source>
|
||||||
<translation>将当前标签页添加至收藏</translation>
|
<translation>将当前标签页添加至收藏</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3347,47 +3357,47 @@ To find '*', '?', '[', ']' symbols use &
|
||||||
<translation>导出至列表</translation>
|
<translation>导出至列表</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="121"/>
|
<location filename="../src/ui/mainwindow.cc" line="145"/>
|
||||||
<source>Show Names in Dictionary &Bar</source>
|
<source>Show Names in Dictionary &Bar</source>
|
||||||
<translation>在词典栏中显示词典名称(&B)</translation>
|
<translation>在词典栏中显示词典名称(&B)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="122"/>
|
<location filename="../src/ui/mainwindow.cc" line="146"/>
|
||||||
<source>Show Small Icons in &Toolbars</source>
|
<source>Show Small Icons in &Toolbars</source>
|
||||||
<translation>在工具栏上显示小图标(&T)</translation>
|
<translation>在工具栏上显示小图标(&T)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="197"/>
|
<location filename="../src/ui/mainwindow.cc" line="221"/>
|
||||||
<source>&Navigation</source>
|
<source>&Navigation</source>
|
||||||
<translation>导航栏(&N)</translation>
|
<translation>导航栏(&N)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="225"/>
|
<location filename="../src/ui/mainwindow.cc" line="249"/>
|
||||||
<source>Enable Scanning</source>
|
<source>Enable Scanning</source>
|
||||||
<translation>取词弹窗</translation>
|
<translation>取词弹窗</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3257"/>
|
<location filename="../src/ui/mainwindow.cc" line="3283"/>
|
||||||
<source>Article, Complete (*.html)</source>
|
<source>Article, Complete (*.html)</source>
|
||||||
<translation>文章, 完整 (*.html)</translation>
|
<translation>文章, 完整 (*.html)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3258"/>
|
<location filename="../src/ui/mainwindow.cc" line="3284"/>
|
||||||
<source>Article, HTML Only (*.html)</source>
|
<source>Article, HTML Only (*.html)</source>
|
||||||
<translation>文章, 仅 HTML (*.html)</translation>
|
<translation>文章, 仅 HTML (*.html)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3337"/>
|
<location filename="../src/ui/mainwindow.cc" line="3363"/>
|
||||||
<source>Saving article...</source>
|
<source>Saving article...</source>
|
||||||
<translation>文章保存中……</translation>
|
<translation>文章保存中……</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3350"/>
|
<location filename="../src/ui/mainwindow.cc" line="3376"/>
|
||||||
<source>Save article complete</source>
|
<source>Save article complete</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="3398"/>
|
<location filename="../src/ui/mainwindow.cc" line="3424"/>
|
||||||
<source>The main window is set to be always on top.</source>
|
<source>The main window is set to be always on top.</source>
|
||||||
<translation>主窗口已设置为总在最前。</translation>
|
<translation>主窗口已设置为总在最前。</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3397,8 +3407,8 @@ To find '*', '?', '[', ']' symbols use &
|
||||||
<translation>历史面板(&H)</translation>
|
<translation>历史面板(&H)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="773"/>
|
<location filename="../src/ui/mainwindow.cc" line="799"/>
|
||||||
<location filename="../src/ui/mainwindow.cc" line="852"/>
|
<location filename="../src/ui/mainwindow.cc" line="878"/>
|
||||||
<source>Accessibility API is not enabled</source>
|
<source>Accessibility API is not enabled</source>
|
||||||
<translation>无障碍API未启用</translation>
|
<translation>无障碍API未启用</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3714,7 +3724,7 @@ for all program's network requests.</source>
|
||||||
<translation>仅限右 Ctrl</translation>
|
<translation>仅限右 Ctrl</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.cc" line="111"/>
|
<location filename="../src/ui/preferences.cc" line="133"/>
|
||||||
<source>Lingvo</source>
|
<source>Lingvo</source>
|
||||||
<translation>Lingvo</translation>
|
<translation>Lingvo</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3745,7 +3755,7 @@ in the pressed state when the word selection changes.</source>
|
||||||
<translation>在当前页之后打开新标签页</translation>
|
<translation>在当前页之后打开新标签页</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.cc" line="560"/>
|
<location filename="../src/ui/preferences.cc" line="585"/>
|
||||||
<source>Restart the program to apply the language change.</source>
|
<source>Restart the program to apply the language change.</source>
|
||||||
<translation>变更界面语言需要重新启动程序才能生效。</translation>
|
<translation>变更界面语言需要重新启动程序才能生效。</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3805,7 +3815,7 @@ download page.</source>
|
||||||
<translation>密码:</translation>
|
<translation>密码:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.cc" line="108"/>
|
<location filename="../src/ui/preferences.cc" line="130"/>
|
||||||
<source>Default</source>
|
<source>Default</source>
|
||||||
<translation>默认</translation>
|
<translation>默认</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3815,7 +3825,7 @@ download page.</source>
|
||||||
<translation>界面(&I)</translation>
|
<translation>界面(&I)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.cc" line="559"/>
|
<location filename="../src/ui/preferences.cc" line="584"/>
|
||||||
<source>Changing Language</source>
|
<source>Changing Language</source>
|
||||||
<translation>变更界面语言</translation>
|
<translation>变更界面语言</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -4024,16 +4034,6 @@ however, the article from the topmost dictionary is shown.</source>
|
||||||
<source>Automatically scroll to target article</source>
|
<source>Automatically scroll to target article</source>
|
||||||
<translation>自动定位到当前词典</translation>
|
<translation>自动定位到当前词典</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<location filename="../src/ui/preferences.ui"/>
|
|
||||||
<source>Dictionary Font: </source>
|
|
||||||
<translation>词典字体:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/ui/preferences.ui"/>
|
|
||||||
<source>set the fallback font family for dictionary</source>
|
|
||||||
<translation>设置词典的备用字体</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.ui"/>
|
<location filename="../src/ui/preferences.ui"/>
|
||||||
<source>Article Display style:</source>
|
<source>Article Display style:</source>
|
||||||
|
@ -4348,7 +4348,7 @@ from Stardict, Babylon and GLS dictionaries</source>
|
||||||
<translation>用 Ctrl-tab 浏览标签页时,以“最近使用”为序</translation>
|
<translation>用 Ctrl-tab 浏览标签页时,以“最近使用”为序</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.cc" line="112"/>
|
<location filename="../src/ui/preferences.cc" line="134"/>
|
||||||
<source>Babylon</source>
|
<source>Babylon</source>
|
||||||
<translation>巴比伦文</translation>
|
<translation>巴比伦文</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -4413,27 +4413,27 @@ from Stardict, Babylon and GLS dictionaries</source>
|
||||||
<translation>分钟</translation>
|
<translation>分钟</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.cc" line="109"/>
|
<location filename="../src/ui/preferences.cc" line="131"/>
|
||||||
<source>Classic</source>
|
<source>Classic</source>
|
||||||
<translation>经典</translation>
|
<translation>经典</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.cc" line="110"/>
|
<location filename="../src/ui/preferences.cc" line="132"/>
|
||||||
<source>Modern</source>
|
<source>Modern</source>
|
||||||
<translation>现代</translation>
|
<translation>现代</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.cc" line="113"/>
|
<location filename="../src/ui/preferences.cc" line="135"/>
|
||||||
<source>Lingoes</source>
|
<source>Lingoes</source>
|
||||||
<translation>灵格斯</translation>
|
<translation>灵格斯</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.cc" line="114"/>
|
<location filename="../src/ui/preferences.cc" line="136"/>
|
||||||
<source>Lingoes-Blue</source>
|
<source>Lingoes-Blue</source>
|
||||||
<translation>灵格斯-蓝色调</translation>
|
<translation>灵格斯-蓝色调</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/preferences.cc" line="125"/>
|
<location filename="../src/ui/preferences.cc" line="147"/>
|
||||||
<source> MB</source>
|
<source> MB</source>
|
||||||
<translation> MB</translation>
|
<translation> MB</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -4447,6 +4447,41 @@ from Stardict, Babylon and GLS dictionaries</source>
|
||||||
<source>Enable index with positional information</source>
|
<source>Enable index with positional information</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/ui/preferences.ui"/>
|
||||||
|
<source>Standard Font</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/ui/preferences.ui"/>
|
||||||
|
<source>Monospace Font</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/ui/preferences.ui"/>
|
||||||
|
<source>Serif Font</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/ui/preferences.ui"/>
|
||||||
|
<source>Sans-serif Font</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/ui/preferences.ui"/>
|
||||||
|
<source>Appearance</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/ui/preferences.ui"/>
|
||||||
|
<source>These fonts will be applied when the fonts specified by a dictionary are not found.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/ui/preferences.ui"/>
|
||||||
|
<source>Fallback Fonts</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ProgramTypeEditor</name>
|
<name>ProgramTypeEditor</name>
|
||||||
|
@ -4532,7 +4567,7 @@ from Stardict, Babylon and GLS dictionaries</source>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/dict/aard.cc" line="511"/>
|
<location filename="../src/dict/aard.cc" line="511"/>
|
||||||
<location filename="../src/dict/slob.cc" line="799"/>
|
<location filename="../src/dict/slob.cc" line="800"/>
|
||||||
<source>Article decoding error</source>
|
<source>Article decoding error</source>
|
||||||
<translation>文章解码错误</translation>
|
<translation>文章解码错误</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -4640,22 +4675,22 @@ from Stardict, Babylon and GLS dictionaries</source>
|
||||||
<context>
|
<context>
|
||||||
<name>ResourceToSaveHandler</name>
|
<name>ResourceToSaveHandler</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="2472"/>
|
<location filename="../src/ui/articleview.cc" line="2474"/>
|
||||||
<source>ERROR: %1</source>
|
<source>ERROR: %1</source>
|
||||||
<translation>错误: %1</translation>
|
<translation>错误: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="2472"/>
|
<location filename="../src/ui/articleview.cc" line="2474"/>
|
||||||
<source>Resource saving error: </source>
|
<source>Resource saving error: </source>
|
||||||
<translation>资源保存失败:</translation>
|
<translation>资源保存失败:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="2498"/>
|
<location filename="../src/ui/articleview.cc" line="2500"/>
|
||||||
<source>The referenced resource failed to download.</source>
|
<source>The referenced resource failed to download.</source>
|
||||||
<translation>所引用的资源下载失败。</translation>
|
<translation>所引用的资源下载失败。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/ui/articleview.cc" line="2498"/>
|
<location filename="../src/ui/articleview.cc" line="2500"/>
|
||||||
<source>WARNING: %1</source>
|
<source>WARNING: %1</source>
|
||||||
<translation>警告: %1</translation>
|
<translation>警告: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
135
src/config.cc
135
src/config.cc
|
@ -296,17 +296,17 @@ Romaji::Romaji():
|
||||||
|
|
||||||
Group * Class::getGroup( unsigned id )
|
Group * Class::getGroup( unsigned id )
|
||||||
{
|
{
|
||||||
for( int x = 0; x < groups.size(); x++ )
|
for ( auto & group : groups )
|
||||||
if( groups.at( x ).id == id )
|
if ( group.id == id )
|
||||||
return &groups[ x ];
|
return &group;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Group const * Class::getGroup( unsigned id ) const
|
Group const * Class::getGroup( unsigned id ) const
|
||||||
{
|
{
|
||||||
for( int x = 0; x < groups.size(); x++ )
|
for ( const auto & group : groups )
|
||||||
if( groups.at( x ).id == id )
|
if ( group.id == id )
|
||||||
return &groups.at( x );
|
return &group;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -437,13 +437,11 @@ MutedDictionaries loadMutedDictionaries( const QDomNode & mutedDictionaries )
|
||||||
void saveMutedDictionaries( QDomDocument & dd, QDomElement & muted,
|
void saveMutedDictionaries( QDomDocument & dd, QDomElement & muted,
|
||||||
MutedDictionaries const & mutedDictionaries )
|
MutedDictionaries const & mutedDictionaries )
|
||||||
{
|
{
|
||||||
for( MutedDictionaries::const_iterator i = mutedDictionaries.begin();
|
for ( const auto & mutedDictionarie : mutedDictionaries ) {
|
||||||
i != mutedDictionaries.end(); ++i )
|
|
||||||
{
|
|
||||||
QDomElement dict = dd.createElement( "mutedDictionary" );
|
QDomElement dict = dd.createElement( "mutedDictionary" );
|
||||||
muted.appendChild( dict );
|
muted.appendChild( dict );
|
||||||
|
|
||||||
QDomText value = dd.createTextNode( *i );
|
QDomText value = dd.createTextNode( mutedDictionarie );
|
||||||
dict.appendChild( value );
|
dict.appendChild( value );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -847,8 +845,10 @@ Class load()
|
||||||
c.preferences.alwaysOnTop = ( preferences.namedItem( "alwaysOnTop" ).toElement().text() == "1" );
|
c.preferences.alwaysOnTop = ( preferences.namedItem( "alwaysOnTop" ).toElement().text() == "1" );
|
||||||
c.preferences.searchInDock = ( preferences.namedItem( "searchInDock" ).toElement().text() == "1" );
|
c.preferences.searchInDock = ( preferences.namedItem( "searchInDock" ).toElement().text() == "1" );
|
||||||
|
|
||||||
if ( !preferences.namedItem( "webFontFamily" ).isNull() )
|
if ( !preferences.namedItem( "customFonts" ).isNull() ) {
|
||||||
c.preferences.webFontFamily = preferences.namedItem( "webFontFamily" ).toElement().text();
|
CustomFonts fonts = CustomFonts::fromElement( preferences.namedItem( "customFonts" ).toElement() );
|
||||||
|
c.preferences.customFonts = fonts;
|
||||||
|
}
|
||||||
|
|
||||||
if ( !preferences.namedItem( "doubleClickTranslates" ).isNull() )
|
if ( !preferences.namedItem( "doubleClickTranslates" ).isNull() )
|
||||||
c.preferences.doubleClickTranslates = ( preferences.namedItem( "doubleClickTranslates" ).toElement().text() == "1" );
|
c.preferences.doubleClickTranslates = ( preferences.namedItem( "doubleClickTranslates" ).toElement().text() == "1" );
|
||||||
|
@ -1195,19 +1195,18 @@ void saveGroup( Group const & data, QDomElement & group )
|
||||||
group.setAttributeNode( shortcut );
|
group.setAttributeNode( shortcut );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( QVector< DictionaryRef >::const_iterator j = data.dictionaries.begin(); j != data.dictionaries.end(); ++j )
|
for ( const auto & dictionarie : data.dictionaries ) {
|
||||||
{
|
|
||||||
QDomElement dictionary = dd.createElement( "dictionary" );
|
QDomElement dictionary = dd.createElement( "dictionary" );
|
||||||
|
|
||||||
group.appendChild( dictionary );
|
group.appendChild( dictionary );
|
||||||
|
|
||||||
QDomText value = dd.createTextNode( j->id );
|
QDomText value = dd.createTextNode( dictionarie.id );
|
||||||
|
|
||||||
dictionary.appendChild( value );
|
dictionary.appendChild( value );
|
||||||
|
|
||||||
QDomAttr name = dd.createAttribute( "name" );
|
QDomAttr name = dd.createAttribute( "name" );
|
||||||
|
|
||||||
name.setValue( j->name );
|
name.setValue( dictionarie.name );
|
||||||
|
|
||||||
dictionary.setAttributeNode( name );
|
dictionary.setAttributeNode( name );
|
||||||
}
|
}
|
||||||
|
@ -1215,23 +1214,19 @@ void saveGroup( Group const & data, QDomElement & group )
|
||||||
QDomElement muted = dd.createElement( "mutedDictionaries" );
|
QDomElement muted = dd.createElement( "mutedDictionaries" );
|
||||||
group.appendChild( muted );
|
group.appendChild( muted );
|
||||||
|
|
||||||
for( MutedDictionaries::const_iterator i = data.mutedDictionaries.begin();
|
for ( const auto & mutedDictionarie : data.mutedDictionaries ) {
|
||||||
i != data.mutedDictionaries.end(); ++i )
|
|
||||||
{
|
|
||||||
QDomElement dict = dd.createElement( "mutedDictionary" );
|
QDomElement dict = dd.createElement( "mutedDictionary" );
|
||||||
muted.appendChild( dict );
|
muted.appendChild( dict );
|
||||||
|
|
||||||
QDomText value = dd.createTextNode( *i );
|
QDomText value = dd.createTextNode( mutedDictionarie );
|
||||||
dict.appendChild( value );
|
dict.appendChild( value );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( MutedDictionaries::const_iterator i = data.popupMutedDictionaries.begin();
|
for ( const auto & popupMutedDictionarie : data.popupMutedDictionaries ) {
|
||||||
i != data.popupMutedDictionaries.end(); ++i )
|
|
||||||
{
|
|
||||||
QDomElement dict = dd.createElement( "popupMutedDictionary" );
|
QDomElement dict = dd.createElement( "popupMutedDictionary" );
|
||||||
muted.appendChild( dict );
|
muted.appendChild( dict );
|
||||||
|
|
||||||
QDomText value = dd.createTextNode( *i );
|
QDomText value = dd.createTextNode( popupMutedDictionarie );
|
||||||
dict.appendChild( value );
|
dict.appendChild( value );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1254,16 +1249,15 @@ void save( Class const & c )
|
||||||
QDomElement paths = dd.createElement( "paths" );
|
QDomElement paths = dd.createElement( "paths" );
|
||||||
root.appendChild( paths );
|
root.appendChild( paths );
|
||||||
|
|
||||||
for( Paths::const_iterator i = c.paths.begin(); i != c.paths.end(); ++i )
|
for ( const auto & i : c.paths ) {
|
||||||
{
|
|
||||||
QDomElement path = dd.createElement( "path" );
|
QDomElement path = dd.createElement( "path" );
|
||||||
paths.appendChild( path );
|
paths.appendChild( path );
|
||||||
|
|
||||||
QDomAttr recursive = dd.createAttribute( "recursive" );
|
QDomAttr recursive = dd.createAttribute( "recursive" );
|
||||||
recursive.setValue( i->recursive ? "1" : "0" );
|
recursive.setValue( i.recursive ? "1" : "0" );
|
||||||
path.setAttributeNode( recursive );
|
path.setAttributeNode( recursive );
|
||||||
|
|
||||||
QDomText value = dd.createTextNode( i->path );
|
QDomText value = dd.createTextNode( i.path );
|
||||||
|
|
||||||
path.appendChild( value );
|
path.appendChild( value );
|
||||||
}
|
}
|
||||||
|
@ -1273,20 +1267,19 @@ void save( Class const & c )
|
||||||
QDomElement soundDirs = dd.createElement( "sounddirs" );
|
QDomElement soundDirs = dd.createElement( "sounddirs" );
|
||||||
root.appendChild( soundDirs );
|
root.appendChild( soundDirs );
|
||||||
|
|
||||||
for( SoundDirs::const_iterator i = c.soundDirs.begin(); i != c.soundDirs.end(); ++i )
|
for ( const auto & i : c.soundDirs ) {
|
||||||
{
|
|
||||||
QDomElement soundDir = dd.createElement( "sounddir" );
|
QDomElement soundDir = dd.createElement( "sounddir" );
|
||||||
soundDirs.appendChild( soundDir );
|
soundDirs.appendChild( soundDir );
|
||||||
|
|
||||||
QDomAttr name = dd.createAttribute( "name" );
|
QDomAttr name = dd.createAttribute( "name" );
|
||||||
name.setValue( i->name );
|
name.setValue( i.name );
|
||||||
soundDir.setAttributeNode( name );
|
soundDir.setAttributeNode( name );
|
||||||
|
|
||||||
QDomAttr icon = dd.createAttribute( "icon" );
|
QDomAttr icon = dd.createAttribute( "icon" );
|
||||||
icon.setValue( i->iconFilename );
|
icon.setValue( i.iconFilename );
|
||||||
soundDir.setAttributeNode( icon );
|
soundDir.setAttributeNode( icon );
|
||||||
|
|
||||||
QDomText value = dd.createTextNode( i->path );
|
QDomText value = dd.createTextNode( i.path );
|
||||||
|
|
||||||
soundDir.appendChild( value );
|
soundDir.appendChild( value );
|
||||||
}
|
}
|
||||||
|
@ -1312,12 +1305,11 @@ void save( Class const & c )
|
||||||
nextId.setValue( QString::number( c.groups.nextId ) );
|
nextId.setValue( QString::number( c.groups.nextId ) );
|
||||||
groups.setAttributeNode( nextId );
|
groups.setAttributeNode( nextId );
|
||||||
|
|
||||||
for( Groups::const_iterator i = c.groups.begin(); i != c.groups.end(); ++i )
|
for ( const auto & i : c.groups ) {
|
||||||
{
|
|
||||||
QDomElement group = dd.createElement( "group" );
|
QDomElement group = dd.createElement( "group" );
|
||||||
groups.appendChild( group );
|
groups.appendChild( group );
|
||||||
|
|
||||||
saveGroup( *i, group );
|
saveGroup( i, group );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1328,10 +1320,9 @@ void save( Class const & c )
|
||||||
hunspell.setAttributeNode( path );
|
hunspell.setAttributeNode( path );
|
||||||
root.appendChild( hunspell );
|
root.appendChild( hunspell );
|
||||||
|
|
||||||
for( int x = 0; x < c.hunspell.enabledDictionaries.size(); ++x )
|
for ( const auto & enabledDictionarie : c.hunspell.enabledDictionaries ) {
|
||||||
{
|
|
||||||
QDomElement en = dd.createElement( "enabled" );
|
QDomElement en = dd.createElement( "enabled" );
|
||||||
QDomText value = dd.createTextNode( c.hunspell.enabledDictionaries.at( x ) );
|
QDomText value = dd.createTextNode( enabledDictionarie );
|
||||||
|
|
||||||
en.appendChild( value );
|
en.appendChild( value );
|
||||||
hunspell.appendChild( en );
|
hunspell.appendChild( en );
|
||||||
|
@ -1470,29 +1461,28 @@ void save( Class const & c )
|
||||||
QDomElement mws = dd.createElement( "mediawikis" );
|
QDomElement mws = dd.createElement( "mediawikis" );
|
||||||
root.appendChild( mws );
|
root.appendChild( mws );
|
||||||
|
|
||||||
for( MediaWikis::const_iterator i = c.mediawikis.begin(); i != c.mediawikis.end(); ++i )
|
for ( const auto & mediawiki : c.mediawikis ) {
|
||||||
{
|
|
||||||
QDomElement mw = dd.createElement( "mediawiki" );
|
QDomElement mw = dd.createElement( "mediawiki" );
|
||||||
mws.appendChild( mw );
|
mws.appendChild( mw );
|
||||||
|
|
||||||
QDomAttr id = dd.createAttribute( "id" );
|
QDomAttr id = dd.createAttribute( "id" );
|
||||||
id.setValue( i->id );
|
id.setValue( mediawiki.id );
|
||||||
mw.setAttributeNode( id );
|
mw.setAttributeNode( id );
|
||||||
|
|
||||||
QDomAttr name = dd.createAttribute( "name" );
|
QDomAttr name = dd.createAttribute( "name" );
|
||||||
name.setValue( i->name );
|
name.setValue( mediawiki.name );
|
||||||
mw.setAttributeNode( name );
|
mw.setAttributeNode( name );
|
||||||
|
|
||||||
QDomAttr url = dd.createAttribute( "url" );
|
QDomAttr url = dd.createAttribute( "url" );
|
||||||
url.setValue( i->url );
|
url.setValue( mediawiki.url );
|
||||||
mw.setAttributeNode( url );
|
mw.setAttributeNode( url );
|
||||||
|
|
||||||
QDomAttr enabled = dd.createAttribute( "enabled" );
|
QDomAttr enabled = dd.createAttribute( "enabled" );
|
||||||
enabled.setValue( i->enabled ? "1" : "0" );
|
enabled.setValue( mediawiki.enabled ? "1" : "0" );
|
||||||
mw.setAttributeNode( enabled );
|
mw.setAttributeNode( enabled );
|
||||||
|
|
||||||
QDomAttr icon = dd.createAttribute( "icon" );
|
QDomAttr icon = dd.createAttribute( "icon" );
|
||||||
icon.setValue( i->icon );
|
icon.setValue( mediawiki.icon );
|
||||||
mw.setAttributeNode( icon );
|
mw.setAttributeNode( icon );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1501,33 +1491,32 @@ void save( Class const & c )
|
||||||
QDomElement wss = dd.createElement( "websites" );
|
QDomElement wss = dd.createElement( "websites" );
|
||||||
root.appendChild( wss );
|
root.appendChild( wss );
|
||||||
|
|
||||||
for( WebSites::const_iterator i = c.webSites.begin(); i != c.webSites.end(); ++i )
|
for ( const auto & webSite : c.webSites ) {
|
||||||
{
|
|
||||||
QDomElement ws = dd.createElement( "website" );
|
QDomElement ws = dd.createElement( "website" );
|
||||||
wss.appendChild( ws );
|
wss.appendChild( ws );
|
||||||
|
|
||||||
QDomAttr id = dd.createAttribute( "id" );
|
QDomAttr id = dd.createAttribute( "id" );
|
||||||
id.setValue( i->id );
|
id.setValue( webSite.id );
|
||||||
ws.setAttributeNode( id );
|
ws.setAttributeNode( id );
|
||||||
|
|
||||||
QDomAttr name = dd.createAttribute( "name" );
|
QDomAttr name = dd.createAttribute( "name" );
|
||||||
name.setValue( i->name );
|
name.setValue( webSite.name );
|
||||||
ws.setAttributeNode( name );
|
ws.setAttributeNode( name );
|
||||||
|
|
||||||
QDomAttr url = dd.createAttribute( "url" );
|
QDomAttr url = dd.createAttribute( "url" );
|
||||||
url.setValue( i->url );
|
url.setValue( webSite.url );
|
||||||
ws.setAttributeNode( url );
|
ws.setAttributeNode( url );
|
||||||
|
|
||||||
QDomAttr enabled = dd.createAttribute( "enabled" );
|
QDomAttr enabled = dd.createAttribute( "enabled" );
|
||||||
enabled.setValue( i->enabled ? "1" : "0" );
|
enabled.setValue( webSite.enabled ? "1" : "0" );
|
||||||
ws.setAttributeNode( enabled );
|
ws.setAttributeNode( enabled );
|
||||||
|
|
||||||
QDomAttr icon = dd.createAttribute( "icon" );
|
QDomAttr icon = dd.createAttribute( "icon" );
|
||||||
icon.setValue( i->iconFilename );
|
icon.setValue( webSite.iconFilename );
|
||||||
ws.setAttributeNode( icon );
|
ws.setAttributeNode( icon );
|
||||||
|
|
||||||
QDomAttr inside_iframe = dd.createAttribute( "inside_iframe" );
|
QDomAttr inside_iframe = dd.createAttribute( "inside_iframe" );
|
||||||
inside_iframe.setValue( i->inside_iframe ? "1" : "0" );
|
inside_iframe.setValue( webSite.inside_iframe ? "1" : "0" );
|
||||||
ws.setAttributeNode( inside_iframe );
|
ws.setAttributeNode( inside_iframe );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1536,37 +1525,36 @@ void save( Class const & c )
|
||||||
QDomElement dss = dd.createElement( "dictservers" );
|
QDomElement dss = dd.createElement( "dictservers" );
|
||||||
root.appendChild( dss );
|
root.appendChild( dss );
|
||||||
|
|
||||||
for( DictServers::const_iterator i = c.dictServers.begin(); i != c.dictServers.end(); ++i )
|
for ( const auto & dictServer : c.dictServers ) {
|
||||||
{
|
|
||||||
QDomElement ds = dd.createElement( "server" );
|
QDomElement ds = dd.createElement( "server" );
|
||||||
dss.appendChild( ds );
|
dss.appendChild( ds );
|
||||||
|
|
||||||
QDomAttr id = dd.createAttribute( "id" );
|
QDomAttr id = dd.createAttribute( "id" );
|
||||||
id.setValue( i->id );
|
id.setValue( dictServer.id );
|
||||||
ds.setAttributeNode( id );
|
ds.setAttributeNode( id );
|
||||||
|
|
||||||
QDomAttr name = dd.createAttribute( "name" );
|
QDomAttr name = dd.createAttribute( "name" );
|
||||||
name.setValue( i->name );
|
name.setValue( dictServer.name );
|
||||||
ds.setAttributeNode( name );
|
ds.setAttributeNode( name );
|
||||||
|
|
||||||
QDomAttr url = dd.createAttribute( "url" );
|
QDomAttr url = dd.createAttribute( "url" );
|
||||||
url.setValue( i->url );
|
url.setValue( dictServer.url );
|
||||||
ds.setAttributeNode( url );
|
ds.setAttributeNode( url );
|
||||||
|
|
||||||
QDomAttr enabled = dd.createAttribute( "enabled" );
|
QDomAttr enabled = dd.createAttribute( "enabled" );
|
||||||
enabled.setValue( i->enabled ? "1" : "0" );
|
enabled.setValue( dictServer.enabled ? "1" : "0" );
|
||||||
ds.setAttributeNode( enabled );
|
ds.setAttributeNode( enabled );
|
||||||
|
|
||||||
QDomAttr databases = dd.createAttribute( "databases" );
|
QDomAttr databases = dd.createAttribute( "databases" );
|
||||||
databases.setValue( i->databases );
|
databases.setValue( dictServer.databases );
|
||||||
ds.setAttributeNode( databases );
|
ds.setAttributeNode( databases );
|
||||||
|
|
||||||
QDomAttr strategies = dd.createAttribute( "strategies" );
|
QDomAttr strategies = dd.createAttribute( "strategies" );
|
||||||
strategies.setValue( i->strategies );
|
strategies.setValue( dictServer.strategies );
|
||||||
ds.setAttributeNode( strategies );
|
ds.setAttributeNode( strategies );
|
||||||
|
|
||||||
QDomAttr icon = dd.createAttribute( "icon" );
|
QDomAttr icon = dd.createAttribute( "icon" );
|
||||||
icon.setValue( i->iconFilename );
|
icon.setValue( dictServer.iconFilename );
|
||||||
ds.setAttributeNode( icon );
|
ds.setAttributeNode( icon );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1575,33 +1563,32 @@ void save( Class const & c )
|
||||||
QDomElement programs = dd.createElement( "programs" );
|
QDomElement programs = dd.createElement( "programs" );
|
||||||
root.appendChild( programs );
|
root.appendChild( programs );
|
||||||
|
|
||||||
for( Programs::const_iterator i = c.programs.begin(); i != c.programs.end(); ++i )
|
for ( const auto & program : c.programs ) {
|
||||||
{
|
|
||||||
QDomElement p = dd.createElement( "program" );
|
QDomElement p = dd.createElement( "program" );
|
||||||
programs.appendChild( p );
|
programs.appendChild( p );
|
||||||
|
|
||||||
QDomAttr id = dd.createAttribute( "id" );
|
QDomAttr id = dd.createAttribute( "id" );
|
||||||
id.setValue( i->id );
|
id.setValue( program.id );
|
||||||
p.setAttributeNode( id );
|
p.setAttributeNode( id );
|
||||||
|
|
||||||
QDomAttr name = dd.createAttribute( "name" );
|
QDomAttr name = dd.createAttribute( "name" );
|
||||||
name.setValue( i->name );
|
name.setValue( program.name );
|
||||||
p.setAttributeNode( name );
|
p.setAttributeNode( name );
|
||||||
|
|
||||||
QDomAttr commandLine = dd.createAttribute( "commandLine" );
|
QDomAttr commandLine = dd.createAttribute( "commandLine" );
|
||||||
commandLine.setValue( i->commandLine );
|
commandLine.setValue( program.commandLine );
|
||||||
p.setAttributeNode( commandLine );
|
p.setAttributeNode( commandLine );
|
||||||
|
|
||||||
QDomAttr enabled = dd.createAttribute( "enabled" );
|
QDomAttr enabled = dd.createAttribute( "enabled" );
|
||||||
enabled.setValue( i->enabled ? "1" : "0" );
|
enabled.setValue( program.enabled ? "1" : "0" );
|
||||||
p.setAttributeNode( enabled );
|
p.setAttributeNode( enabled );
|
||||||
|
|
||||||
QDomAttr type = dd.createAttribute( "type" );
|
QDomAttr type = dd.createAttribute( "type" );
|
||||||
type.setValue( QString::number( i->type ) );
|
type.setValue( QString::number( program.type ) );
|
||||||
p.setAttributeNode( type );
|
p.setAttributeNode( type );
|
||||||
|
|
||||||
QDomAttr icon = dd.createAttribute( "icon" );
|
QDomAttr icon = dd.createAttribute( "icon" );
|
||||||
icon.setValue( i->iconFilename );
|
icon.setValue( program.iconFilename );
|
||||||
p.setAttributeNode( icon );
|
p.setAttributeNode( icon );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1668,9 +1655,9 @@ void save( Class const & c )
|
||||||
opt.appendChild( dd.createTextNode( c.preferences.interfaceLanguage ) );
|
opt.appendChild( dd.createTextNode( c.preferences.interfaceLanguage ) );
|
||||||
preferences.appendChild( opt );
|
preferences.appendChild( opt );
|
||||||
|
|
||||||
opt = dd.createElement( "webFontFamily" );
|
opt = dd.createElement( "customFonts" );
|
||||||
opt.appendChild( dd.createTextNode( c.preferences.webFontFamily ) );
|
auto customFont = c.preferences.customFonts.toElement( dd );
|
||||||
preferences.appendChild( opt );
|
preferences.appendChild( customFont );
|
||||||
|
|
||||||
opt = dd.createElement( "displayStyle" );
|
opt = dd.createElement( "displayStyle" );
|
||||||
opt.appendChild( dd.createTextNode( c.preferences.displayStyle ) );
|
opt.appendChild( dd.createTextNode( c.preferences.displayStyle ) );
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include "ex.hh"
|
#include "ex.hh"
|
||||||
|
#include <QDomDocument>
|
||||||
#include <QLocale>
|
#include <QLocale>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
|
@ -189,6 +190,56 @@ struct FullTextSearch
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct CustomFonts
|
||||||
|
{
|
||||||
|
QString standard;
|
||||||
|
QString serif;
|
||||||
|
QString sansSerif;
|
||||||
|
QString monospace;
|
||||||
|
|
||||||
|
bool operator==( CustomFonts const & other ) const
|
||||||
|
{
|
||||||
|
return standard == other.standard && serif == other.serif && sansSerif == other.sansSerif
|
||||||
|
&& monospace == other.monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool operator!=( CustomFonts const & other ) const
|
||||||
|
{
|
||||||
|
return !operator==( other );
|
||||||
|
}
|
||||||
|
|
||||||
|
QDomElement toElement( QDomDocument dd ) const
|
||||||
|
{
|
||||||
|
QDomElement proxy = dd.createElement( "customFonts" );
|
||||||
|
|
||||||
|
QDomAttr standard_attr = dd.createAttribute( "standard" );
|
||||||
|
standard_attr.setValue( this->standard );
|
||||||
|
proxy.setAttributeNode( standard_attr );
|
||||||
|
|
||||||
|
QDomAttr serif_attr = dd.createAttribute( "serif" );
|
||||||
|
serif_attr.setValue( this->serif );
|
||||||
|
proxy.setAttributeNode( serif_attr );
|
||||||
|
|
||||||
|
QDomAttr sans_attr = dd.createAttribute( "sans-serif" );
|
||||||
|
sans_attr.setValue( this->sansSerif );
|
||||||
|
proxy.setAttributeNode( sans_attr );
|
||||||
|
QDomAttr mono_attr = dd.createAttribute( "monospace" );
|
||||||
|
mono_attr.setValue( this->monospace );
|
||||||
|
proxy.setAttributeNode( mono_attr );
|
||||||
|
return proxy;
|
||||||
|
}
|
||||||
|
|
||||||
|
static CustomFonts fromElement( QDomElement proxy )
|
||||||
|
{
|
||||||
|
CustomFonts c;
|
||||||
|
c.standard = proxy.attribute( "standard" );
|
||||||
|
c.serif = proxy.attribute( "serif" );
|
||||||
|
c.sansSerif = proxy.attribute( "sans-serif" );
|
||||||
|
c.monospace = proxy.attribute( "monospace" );
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/// This class encapsulates supported backend preprocessor logic,
|
/// This class encapsulates supported backend preprocessor logic,
|
||||||
/// discourages duplicating backend names in code, which is error-prone.
|
/// discourages duplicating backend names in code, which is error-prone.
|
||||||
class InternalPlayerBackend
|
class InternalPlayerBackend
|
||||||
|
@ -257,7 +308,7 @@ struct Preferences
|
||||||
{
|
{
|
||||||
QString interfaceLanguage; // Empty value corresponds to system default
|
QString interfaceLanguage; // Empty value corresponds to system default
|
||||||
QString displayStyle; // Empty value corresponds to the default one
|
QString displayStyle; // Empty value corresponds to the default one
|
||||||
QString webFontFamily; // Empty value corresponds to the default one
|
CustomFonts customFonts;
|
||||||
bool newTabsOpenAfterCurrentOne;
|
bool newTabsOpenAfterCurrentOne;
|
||||||
bool newTabsOpenInBackground;
|
bool newTabsOpenInBackground;
|
||||||
bool hideSingleTab;
|
bool hideSingleTab;
|
||||||
|
|
|
@ -98,12 +98,36 @@ QString ApplicationSettingName = "GoldenDict";
|
||||||
|
|
||||||
void MainWindow::changeWebEngineViewFont() const
|
void MainWindow::changeWebEngineViewFont() const
|
||||||
{
|
{
|
||||||
if ( cfg.preferences.webFontFamily.isEmpty() ) {
|
if ( cfg.preferences.customFonts.standard.isEmpty() ) {
|
||||||
QWebEngineProfile::defaultProfile()->settings()->resetFontFamily( QWebEngineSettings::StandardFont );
|
QWebEngineProfile::defaultProfile()->settings()->resetFontFamily( QWebEngineSettings::StandardFont );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
QWebEngineProfile::defaultProfile()->settings()->setFontFamily( QWebEngineSettings::StandardFont,
|
QWebEngineProfile::defaultProfile()->settings()->setFontFamily( QWebEngineSettings::StandardFont,
|
||||||
cfg.preferences.webFontFamily );
|
cfg.preferences.customFonts.standard );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( cfg.preferences.customFonts.serif.isEmpty() ) {
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->resetFontFamily( QWebEngineSettings::SerifFont );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->setFontFamily( QWebEngineSettings::SerifFont,
|
||||||
|
cfg.preferences.customFonts.serif );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( cfg.preferences.customFonts.sansSerif.isEmpty() ) {
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->resetFontFamily( QWebEngineSettings::SansSerifFont );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->setFontFamily( QWebEngineSettings::SansSerifFont,
|
||||||
|
cfg.preferences.customFonts.sansSerif );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( cfg.preferences.customFonts.monospace.isEmpty() ) {
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->resetFontFamily( QWebEngineSettings::FixedFont );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->setFontFamily( QWebEngineSettings::FixedFont,
|
||||||
|
cfg.preferences.customFonts.monospace );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -97,12 +97,34 @@ Preferences::Preferences( QWidget * parent, Config::Class & cfg_ ):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
prevWebFontFamily = p.webFontFamily;
|
prevWebFontFamily = p.customFonts;
|
||||||
|
|
||||||
if(!p.webFontFamily.isEmpty())
|
if ( !p.customFonts.standard.isEmpty() )
|
||||||
ui.fontFamilies->setCurrentText( p.webFontFamily );
|
ui.font_standard->setCurrentText( p.customFonts.standard );
|
||||||
else {
|
else {
|
||||||
ui.fontFamilies->setCurrentFont( QApplication::font() );
|
ui.font_standard->setCurrentFont(
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->fontFamily( QWebEngineSettings::StandardFont ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !p.customFonts.serif.isEmpty() )
|
||||||
|
ui.font_serif->setCurrentText( p.customFonts.serif );
|
||||||
|
else {
|
||||||
|
ui.font_serif->setCurrentFont(
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->fontFamily( QWebEngineSettings::SerifFont ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !p.customFonts.sansSerif.isEmpty() )
|
||||||
|
ui.font_sans->setCurrentText( p.customFonts.sansSerif );
|
||||||
|
else {
|
||||||
|
ui.font_sans->setCurrentFont(
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->fontFamily( QWebEngineSettings::SansSerifFont ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !p.customFonts.monospace.isEmpty() )
|
||||||
|
ui.font_monospace->setCurrentText( p.customFonts.monospace );
|
||||||
|
else {
|
||||||
|
ui.font_monospace->setCurrentFont(
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->fontFamily( QWebEngineSettings::FixedFont ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
ui.displayStyle->addItem( QIcon( ":/icons/programicon_old.png" ), tr( "Default" ), QString() );
|
ui.displayStyle->addItem( QIcon( ":/icons/programicon_old.png" ), tr( "Default" ), QString() );
|
||||||
|
@ -354,11 +376,13 @@ Config::Preferences Preferences::getPreferences()
|
||||||
ui.interfaceLanguage->itemData(
|
ui.interfaceLanguage->itemData(
|
||||||
ui.interfaceLanguage->currentIndex() ).toString();
|
ui.interfaceLanguage->currentIndex() ).toString();
|
||||||
|
|
||||||
//bypass the first default
|
Config::CustomFonts c;
|
||||||
if(ui.fontFamilies->currentIndex()>0)
|
c.standard = ui.font_standard->currentText();
|
||||||
p.webFontFamily = ui.fontFamilies->currentText();
|
c.serif = ui.font_serif->currentText();
|
||||||
else
|
c.sansSerif = ui.font_sans->currentText();
|
||||||
p.webFontFamily = "";
|
c.monospace = ui.font_monospace->currentText();
|
||||||
|
p.customFonts = c;
|
||||||
|
|
||||||
|
|
||||||
p.displayStyle =
|
p.displayStyle =
|
||||||
ui.displayStyle->itemData(
|
ui.displayStyle->itemData(
|
||||||
|
@ -560,19 +584,16 @@ void Preferences::on_buttonBox_accepted()
|
||||||
QMessageBox::information( this, tr( "Changing Language" ),
|
QMessageBox::information( this, tr( "Changing Language" ),
|
||||||
tr( "Restart the program to apply the language change." ) );
|
tr( "Restart the program to apply the language change." ) );
|
||||||
|
|
||||||
auto currentFontFamily = ui.fontFamilies->currentFont().family();
|
auto c = getPreferences();
|
||||||
if( prevWebFontFamily != currentFontFamily )
|
if ( c.customFonts != prevWebFontFamily ) {
|
||||||
{
|
|
||||||
//reset to default font .
|
|
||||||
if( currentFontFamily.isEmpty() )
|
|
||||||
{
|
|
||||||
QWebEngineProfile::defaultProfile()->settings()->resetFontFamily( QWebEngineSettings::StandardFont );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
QWebEngineProfile::defaultProfile()->settings()->setFontFamily( QWebEngineSettings::StandardFont,
|
QWebEngineProfile::defaultProfile()->settings()->setFontFamily( QWebEngineSettings::StandardFont,
|
||||||
currentFontFamily );
|
c.customFonts.standard );
|
||||||
}
|
QWebEngineProfile::defaultProfile()->settings()->setFontFamily( QWebEngineSettings::SerifFont,
|
||||||
|
c.customFonts.serif );
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->setFontFamily( QWebEngineSettings::SansSerifFont,
|
||||||
|
c.customFonts.sansSerif );
|
||||||
|
QWebEngineProfile::defaultProfile()->settings()->setFontFamily( QWebEngineSettings::FixedFont,
|
||||||
|
c.customFonts.monospace );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -602,3 +623,4 @@ void Preferences::on_limitInputPhraseLength_toggled( bool checked )
|
||||||
{
|
{
|
||||||
ui.inputPhraseLengthLimit->setEnabled( checked );
|
ui.inputPhraseLengthLimit->setEnabled( checked );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ class Preferences: public QDialog
|
||||||
|
|
||||||
int prevInterfaceLanguage = 0;
|
int prevInterfaceLanguage = 0;
|
||||||
|
|
||||||
QString prevWebFontFamily;
|
Config::CustomFonts prevWebFontFamily;
|
||||||
|
|
||||||
Config::Class & cfg;
|
Config::Class & cfg;
|
||||||
QAction helpAction;
|
QAction helpAction;
|
||||||
|
@ -55,8 +55,6 @@ private slots:
|
||||||
|
|
||||||
void on_collapseBigArticles_toggled( bool checked );
|
void on_collapseBigArticles_toggled( bool checked );
|
||||||
void on_limitInputPhraseLength_toggled( bool checked );
|
void on_limitInputPhraseLength_toggled( bool checked );
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>787</width>
|
<width>788</width>
|
||||||
<height>730</height>
|
<height>730</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
@ -53,229 +53,6 @@
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>9</number>
|
<number>9</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QGroupBox" name="enableTrayIcon">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>When enabled, an icon appears in the system tray area which can be used
|
|
||||||
to open main window and perform other tasks.</string>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
|
||||||
<string>Enable system tray icon</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="flat">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="checkable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="startToTray">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>With this on, the application starts directly to system tray without showing
|
|
||||||
its main window.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Start to system tray</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="closeToTray">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>With this on, an attempt to close main window would hide it instead of closing
|
|
||||||
the application.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Close to system tray</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QCheckBox" name="escKeyHidesMainWindow">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Normally, pressing ESC key moves focus to the translation line.
|
|
||||||
With this on however, it will hide the main window.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>ESC key hides main window</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QCheckBox" name="autoScrollToTargetArticle">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Normally, clicking on a link, double-clicking on a word or looking up
|
|
||||||
selection in an article loads the translation and almost immediately
|
|
||||||
scrolls to the article from the same dictionary. With this option off,
|
|
||||||
however, the article from the topmost dictionary is shown.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Automatically scroll to target article</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_13">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="maxDictsInContextMenuLabel">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Adjust this value to avoid huge context menus.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Context menu dictionaries limit:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSpinBox" name="maxDictsInContextMenu">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>9999</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>20</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_12">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QGroupBox" name="groupBox_2">
|
|
||||||
<property name="title">
|
|
||||||
<string>Startup</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="cbAutostart">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Automatically starts GoldenDict after operation system bootup.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Start with system</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0">
|
|
||||||
<widget class="QLabel" name="label_6">
|
|
||||||
<property name="text">
|
|
||||||
<string>Interface language:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="0">
|
|
||||||
<widget class="QLabel" name="label_21">
|
|
||||||
<property name="text">
|
|
||||||
<string>Dictionary Font: </string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="20" column="0" colspan="2">
|
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="0" colspan="2">
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_16">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="darkMode">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Turn the UI to dark.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Dark Mode</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="darkReaderMode">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Turn the article display style to dark.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Dark Reader Mode</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QCheckBox" name="selectBySingleClick">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Turn this option on if you want to select words by single mouse click</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Select word by single click</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="0">
|
|
||||||
<widget class="QComboBox" name="interfaceLanguage">
|
|
||||||
<property name="sizeAdjustPolicy">
|
|
||||||
<enum>QComboBox::AdjustToContents</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0">
|
|
||||||
<widget class="QFontComboBox" name="fontFamilies">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>set the fallback font family for dictionary</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QCheckBox" name="doubleClickTranslates">
|
<widget class="QCheckBox" name="doubleClickTranslates">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -336,7 +113,208 @@ be the last ones.</string>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QCheckBox" name="escKeyHidesMainWindow">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Normally, pressing ESC key moves focus to the translation line.
|
||||||
|
With this on however, it will hide the main window.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>ESC key hides main window</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QCheckBox" name="selectBySingleClick">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Turn this option on if you want to select words by single mouse click</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Select word by single click</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QGroupBox" name="groupBox_2">
|
||||||
|
<property name="title">
|
||||||
|
<string>Startup</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="cbAutostart">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Automatically starts GoldenDict after operation system bootup.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Start with system</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QCheckBox" name="autoScrollToTargetArticle">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Normally, clicking on a link, double-clicking on a word or looking up
|
||||||
|
selection in an article loads the translation and almost immediately
|
||||||
|
scrolls to the article from the same dictionary. With this option off,
|
||||||
|
however, the article from the topmost dictionary is shown.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Automatically scroll to target article</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QGroupBox" name="enableTrayIcon">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>When enabled, an icon appears in the system tray area which can be used
|
||||||
|
to open main window and perform other tasks.</string>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>Enable system tray icon</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="startToTray">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>With this on, the application starts directly to system tray without showing
|
||||||
|
its main window.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Start to system tray</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="closeToTray">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>With this on, an attempt to close main window would hide it instead of closing
|
||||||
|
the application.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Close to system tray</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="16" column="0" colspan="2">
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_13">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="maxDictsInContextMenuLabel">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Adjust this value to avoid huge context menus.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Context menu dictionaries limit:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="maxDictsInContextMenu">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>9999</number>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>20</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_12">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
<item row="9" column="0">
|
<item row="9" column="0">
|
||||||
|
<widget class="QGroupBox" name="groupBox_5">
|
||||||
|
<property name="title">
|
||||||
|
<string>Appearance</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_16">
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_6">
|
||||||
|
<property name="text">
|
||||||
|
<string>Interface language:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="interfaceLanguage">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>153</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="sizeAdjustPolicy">
|
||||||
|
<enum>QComboBox::AdjustToContents</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_9">
|
<widget class="QLabel" name="label_9">
|
||||||
|
@ -346,8 +324,25 @@ be the last ones.</string>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="displayStyle"/>
|
<widget class="QComboBox" name="displayStyle">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_12">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="addonStylesLabel">
|
<widget class="QLabel" name="addonStylesLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -356,10 +351,142 @@ be the last ones.</string>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="StylesComboBox" name="addonStyles"/>
|
<widget class="StylesComboBox" name="addonStyles">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="darkMode">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Turn the UI to dark.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Dark Mode</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="darkReaderMode">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Turn the article display style to dark.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Dark Reader Mode</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer_5">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="1">
|
||||||
|
<widget class="QGroupBox" name="groupBox_10">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>These fonts will be applied when the fonts specified by a dictionary are not found.</string>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>Fallback Fonts</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_17">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_16">
|
||||||
|
<property name="text">
|
||||||
|
<string>Standard Font</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QFontComboBox" name="font_standard">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_21">
|
||||||
|
<property name="text">
|
||||||
|
<string>Serif Font</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QFontComboBox" name="font_serif">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_26">
|
||||||
|
<property name="text">
|
||||||
|
<string>Sans-serif Font</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QFontComboBox" name="font_sans">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_27">
|
||||||
|
<property name="text">
|
||||||
|
<string>Monospace Font</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QFontComboBox" name="font_monospace">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="fontFilters">
|
||||||
|
<set>QFontComboBox::MonospacedFonts</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab_popup">
|
<widget class="QWidget" name="tab_popup">
|
||||||
|
|
Loading…
Reference in a new issue