Commit graph

4444 commits

Author SHA1 Message Date
xiaoyifang b8d4d49f54 opt: Folding::trimWhiteSpace refactor
add a new method which accept QString .
modern c++ style format
2023-04-29 18:21:42 +08:00
xiaoyifang 93c3bdc007 opt:reduce string conversion 2023-04-29 18:21:42 +08:00
xiaoyifang 752c1ff54d delete this locale language.
the locale has been changed according to the initial commit of each file to meet goldendict country icon requirement.
All these files have been replaced with a corresponding Crowdin locale file
ay_WI.ts (ay_BO in crowdin)
eo_EO.ts https://simple.wikipedia.org/wiki/Esperanto (eo_UY in crowdin)
ie_001.ts add custom mapping in crowdin
jb_JB.ts introduced in 7df235b (NEW in crowdin jbo_EN)
qu_WI.ts qu-PE in crowdin
sr_SR.ts sr-SP in crowdin
2023-04-29 18:09:04 +08:00
xiaoyifang e52e8e5195 opt:language does not display icon 2023-04-29 18:09:04 +08:00
xiaoyifang 325c3fb0bb opt: replace qthreadpool with qfuture
relate #515
2023-04-29 18:08:39 +08:00
xiaoyifang 28d33ed39f opt: relayout the preference language controls
fix #602
2023-04-29 11:23:14 +08:00
xiaoyifang 7f6409c05a opt:qtsingleapplication remove old code 2023-04-29 08:20:16 +08:00
xiaoyifang dbe04db7f5 opt: move fsencoding to utils.hh(.cc)
after multi refactor ,the fsencoding only left two methods and has nothing to do with encoding . Base on this condition  ,move the method to utils
2023-04-29 00:56:22 +08:00
shenleban tongying 933c8aea58 fix(scanpopup): preserve old group selection after editDictionaries
dialog
2023-04-29 00:55:56 +08:00
xiaoyifang a1b10b6956 i18n: zh_CN shift item translation 2023-04-29 00:19:27 +08:00
xiaoyifang ed4273e540 opt:refactor html:unescape method
close #579
2023-04-28 21:21:38 +08:00
shenleban tongying 3550362cac fix: add standard FindNext/Previous shortcuts to search panel
* Ctrl+G & Ctrl+Shift+G or F3 & Shift+F3 depends on platform.
2023-04-28 20:11:15 +08:00
xiaoyifang 2f6cb3c5d8 opt: replace wildcardtoregularexpression with qt builtin method
ref #502
2023-04-28 13:39:22 +08:00
xiaoyifang f84ddfc38c opt:refactor folding.cc methods with qt's builtin method
fix #592
2023-04-28 13:38:59 +08:00
YiFang Xiao 617c6b961f action: macos homebrew check 2023-04-28 12:52:28 +08:00
shenleban tongying 9716acb2ee feat: add dict:// handler to linux
* Remove any thing before first occurance of ://
* so that user may add custom handler by just changing the .desktop file
2023-04-27 23:00:24 +08:00
xiaoyifang 81e1b5d9a6 fix: the implementation of unescapeutf8 is wrong
fix the bug found in ref #579
2023-04-27 13:26:32 +08:00
YiFang Xiao 617589d09c fix:unified the cache/directory
supplement to a82ce2a86f
2023-04-27 13:25:57 +08:00
shenleban tongying 07d9c63c79 clean(html): satisfy w3c html validator
* use <meta charset="utf-8">
* remove useless script type=text/javascript
* remove a trailing slash on <link>
2023-04-27 13:18:05 +08:00
xiaoyifang 6511e0500a
I18n (#588)
* New translations zh_CN.ts (Belarusian)

* New translations zh_CN.ts (Esperanto)

* New translations zh_CN.ts (Aymara)

* New translations zh_CN.ts (Arabic, Saudi Arabia)

* New translations zh_CN.ts (Chinese Traditional)

* New translations zh_CN.ts (Lojban)

* New translations zh_CN.ts (Interlingue)
2023-04-27 10:10:08 +08:00
xiaoyifang 12d9ae3ddb fix:stardict bword dictionary compatiblity
fix #567, some word is html encoded
2023-04-27 07:06:42 +08:00
shenleban tongying 2258454074 fix(action): deploy_website does not trigger 2023-04-27 06:11:58 +08:00
shenleban tongying dfc5d701ea fix(autoGroupByFolder): prepend upper level folder name when two
groups share same name but in different folder
2023-04-26 20:46:07 +08:00
shenleban tongying 867f6a2d82 docs: update linux package links 2023-04-26 14:02:11 +08:00
xiaoyifang a82ce2a86f opt: use unified cache dir
seperate the persistentstoragepath with cachepath
2023-04-26 07:45:48 +08:00
xiaoyifang 04260c1fbe fix: can not remove favorite word in popup
this bug was existed for a long time
2023-04-25 23:07:22 +08:00
xiaoyifang 1da5614d34
Merge pull request #507 from xiaoyifang/fix/issue-502-wstring
opt: Sorting through the use of strings
2023-04-25 23:06:35 +08:00
xiaoyifang 7261151eb6
Merge branch 'staged' into fix/issue-502-wstring 2023-04-25 22:33:47 +08:00
xiaoyifang 19889bfa9b opt:add a statusbar notification when finshed save article
fix #554
2023-04-25 22:22:30 +08:00
xiaoyifang a9d797ec42
Update README.md 2023-04-25 09:42:54 +08:00
xiaoyifang 3a52323f29 remove unnecessary string conversion 2023-04-25 08:28:40 +08:00
xiaoyifang f6a3fc205c
New Crowdin updates (#557)
* New translations zh_CN.ts (Slovak)

* New translations zh_CN.ts (Albanian)

* New translations zh_CN.ts (Swedish)

* New translations zh_CN.ts (Turkish)

* New translations zh_CN.ts (Ukrainian)

* New translations zh_CN.ts (Vietnamese)

* New translations zh_CN.ts (Spanish, Argentina)

* New translations zh_CN.ts (Spanish, Bolivia)

* New translations zh_CN.ts (Tajik)

* New translations zh_CN.ts (Turkmen)

* New translations zh_CN.ts (French)

* New translations zh_CN.ts (Spanish)

* New translations zh_CN.ts (Bulgarian)

* New translations zh_CN.ts (Czech)

* New translations zh_CN.ts (German)

* New translations zh_CN.ts (Greek)

* New translations zh_CN.ts (Finnish)

* New translations zh_CN.ts (Italian)

* New translations zh_CN.ts (Japanese)

* New translations zh_CN.ts (Korean)

* New translations zh_CN.ts (Lithuanian)

* New translations zh_CN.ts (Macedonian)

* New translations zh_CN.ts (Dutch)

* New translations zh_CN.ts (Polish)

* New translations zh_CN.ts (Portuguese)

* New translations zh_CN.ts (Russian)

* New translations zh_CN.ts (Serbian (Cyrillic))

* New translations zh_CN.ts (Chinese Simplified)

* New translations zh_CN.ts (Chinese Traditional)

* New translations zh_CN.ts (Portuguese, Brazilian)

* New translations zh_CN.ts (Persian)

* New translations zh_CN.ts (Hindi)

* New translations zh_CN.ts (German, Switzerland)

* New translations zh_CN.ts (Quechua)
2023-04-24 18:23:35 +08:00
xiaoyifang 130044b092 fix:clang-tidy warning 2023-04-24 15:55:32 +08:00
Xiao YiFang b68a70caa6 refactor wstring toWString
ref #506
2023-04-24 15:55:24 +08:00
Xiao YiFang c2f856c074 opt: Sorting through the use of strings
there are many string conversion in the system .some of them can be avoided .
2023-04-24 15:11:40 +08:00
xiaoyifang cb67c465a3 opt: use QTextStream to generate the BOM
when export headwords to file
2023-04-23 21:20:40 +08:00
xiaoyifang 084175f56f fix: code smell 2023-04-23 21:20:40 +08:00
xiaoyifang 11ea4bc799 opt: remove country.cc(.hh)
this file is only used in forvo functionality.  As country flag is about to removed in future PR.
remove these two files first
2023-04-23 13:45:11 +08:00
xiaoyifang 34652421be fix: refactor language.cc implementation
fix #535
2023-04-23 13:45:11 +08:00
xiaoyifang 8c415cb9a6 fix: code smell and format 2023-04-23 13:45:11 +08:00
xiaoyifang a810a56d0c opt: performance improve headword filter 2023-04-23 13:38:43 +08:00
xiaoyifang 21bab62263 fix : code smell 2023-04-23 13:38:43 +08:00
xiaoyifang 72fca59a92 fix: headword dialog filter and export
the wildcard and regex filter does not work as expected.

fix #556
2023-04-23 13:38:43 +08:00
shenleban tongying d0ae253c27 docs: various updates
* isolate Help related code into help.hh
* update website & README.md
2023-04-22 18:21:14 +08:00
YiFang Xiao d61dfaa8f3 fix: change contain-intrinsic-size to contain-intrinsic-height with auto value 2023-04-21 21:28:36 +08:00
shenleban tongying a8c898192f feat(group): Auto Grouping by Dict' Containning Folder 2023-04-21 15:38:09 +08:00
Xiao YiFang 1798025d0b opt: when in darkmode ,make the current article more significant
fix #493
2023-04-21 12:09:12 +08:00
xiaoyifang a5d6505765
fix: rename qt_*.ts in locale to distinguish between normal locale la… (#543)
* fix: rename qt_*.ts in locale to distinguish between normal locale language files.

also put qtwebengine_zh_CN.ts here to avoid windows script copying.

fix #533

* Update Readme.md
2023-04-21 09:36:26 +08:00
shenleban tongying 1a3bae3329 cleanup(css): remove 1x1 pixel <img> hack
When the code was written, there is no way to specify img's src, so
the 1x1 blank.png is a dummy img to be replaced.
2023-04-20 19:53:34 +08:00
shenleban tongying 3f3ba6eee1 refactor: reduce dependency on mainwindow.hh
* editdictionaries.cc and dictheadwords.cc doesn't actually need it
* fulltextsearch has a useless static_cast
2023-04-20 19:53:17 +08:00