Commit Graph
1922 Commits
Author SHA1 Message Date
FerdyARTs 3897b9893d Add Spanish translation (es_ES) via Qt .ts
Migrate kcc_es.json entries into translations/kcc_es_ES.ts on the latest master.

Co-authored-by: FerdyARTs <86256256+FerdyARTs@users.noreply.github.com>
2026-10-14 17:51:17 +08:00
Ryuga6 a053b3ea9f Add multi-language i18n support (Simplified Chinese, Japanese, Korean) (#1453)
* Add multi-language i18n support (English, Chinese, Japanese, Korean)

- Add i18n.py module for translation management via QTranslator
- Add Simplified Chinese (zh_CN), Japanese (ja_JP), and Korean (ko_KR) translations
- Integrate translation files into Qt resource system (KCC.qrc / KCC_rc.py)
- Add language switcher button in the top button bar of main window
- Language setting persists via QSettings
- Dynamic text updates work correctly after language switch
- Support %1, %2, %3 placeholders via tr_arg() helper function
- KCCGUI and KCCGUI_MetaEditor now inherit QObject for tr() support

* Complete Japanese/Korean/Chinese translations + fix language switch issues

- Fill 61 missing Japanese translations (tooltips, 3-state checkboxes, etc.)
- Fill 61 missing Korean translations (tooltips, 3-state checkboxes, etc.)
- Fill 6 missing Chinese translations
- Fix language menu: use QActionGroup for exclusive (single-select) checkmarks
- Fix jobList initial tips: refresh translations on language switch by
  updating label text directly (preserves message order and user-added entries)
- Add PROJECT_I18N_README.md developer documentation

* Replace emoji language icon with PNG globe icon

Fixes PR review feedback from axu2: the emoji character doesn't render on Windows 7 (no emoji font support). Replaced with a PNG globe icon from Wikimedia Commons (CC license), loaded via Qt resource system for consistent cross-platform rendering.

* Fix RuntimeError when switching language: re-fetch labels from jobList

Previously, QLabel references were saved directly, but the underlying

C++ objects could be deleted by Qt, causing RuntimeError on access.

Now we save only source strings and re-fetch labels from jobList

items when updating, with try/except as a safety net.

* Use text label for language button instead of PNG icon

Replace the globe PNG icon with a plain text button (' 文 A ')

so its color automatically follows the system light/dark theme,

per review feedback. Removes icons/language.png and its QRC entry.

* Finalize i18n: retranslate jobList messages and translate CLI output

- Add source= to 16 GUI addMessage calls so already-shown messages retranslate on language switch
- Translate comic2ebook.py conversion/CLI messages via QCoreApplication.translate('KCCGUI', ...)
- Clear 29 unfinished WorkerThread translations (context unified to KCCGUI)
- Guard apply_language when QApplication is not yet created
- Trim dead imports and redundant code

* Avoid duplicated source strings: translate inside addMessage

Replace the self.tr/translate + source= pattern (same string written twice) with
QT_TRANSLATE_NOOP('KCCGUI', ...) at call sites; addMessage now translates internally
and stores the source text for retranslation on language switch.

- Drop the source parameter from addMessage; simplify signal to 3 args
- Include comic2ebook.py in lupdate (20 CLI/conversion messages)

* Add translation maintenance workflow

Add gen_translation_files.sh/.bat, TRANSLATION.md, and a README pointer; remove the superseded PROJECT_I18N_README.md.

* chmod +x
2026-10-13 11:10:33 -07:00
Alex Xu 55342bd4f9 update ignore 2026-09-29 17:50:10 -07:00
Alex Xu b4b53c4a43 Update README.md 2026-09-28 08:35:44 -07:00
Alex Xu bc936b8991 Update README.md 2026-09-28 08:30:02 -07:00
Alex Xu b17633bd0e update macOS compatibility 2026-09-27 22:17:28 -07:00
Alex Xu f127adbca9 bump to 12.0.0 v12.0.0 2026-09-25 17:17:25 -07:00
Alex Xu b93d4246eb add more icons 2026-09-25 17:16:27 -07:00
Alex Xu 491864f1a6 linux appimage: remove libfuse2 and add arm (experimental) (#1447)
* initial commit

* test

* fix it

* fix permissions

* uses python3.11

* use venv

* fix typo

* update pyside6

* fix

* remove pip

* use older ubuntu

* remove ExpatError

* pacman everything

* update pkgforge

* remove mozjpeg

* Revert "remove ExpatError"

This reverts commit c2a1598fdd.

* add theme stuff

* remove stuff

* add /usr/lib/libQt6Gui.so*

* pyside6 version depends on os

* DEPLOY_QT_WEB_ENGINE: 0

* add libvantum

* mesa-mini

* nano

* fix debloat order

* re-add  /usr/lib/libQt6Gui.so*

* Update package-linux.yml

* Update package-linux.yml

* finalize naming

* final tweaks

* actual final tweaks

* remove web engine

* fix upinfo
2026-09-25 17:13:08 -07:00
Alex Xu 010ed22637 Update README.md 2026-09-25 16:30:11 -07:00
Alex Xu a221b0c45e note that png is better than webp for BW content (#1451) 2026-09-25 15:36:43 -07:00
Alex Xu e9410d26f7 update README 2026-09-25 15:05:34 -07:00
Alex Xu 1cc8db37e2 fix dark images on Kindle 1/2/3 for cbz png (#1450) 2026-09-25 13:33:39 -07:00
Alex Xu 6f759f435a refactor color back inside 2026-09-25 12:23:32 -07:00
Alex Xu 9f1384ef2a Kindle Scribe 2025 default is PDF (#1449) 2026-09-24 12:43:14 -07:00
Alex Xu f390d18ddb Support Windows 11 ARM (#1448)
* add Windows on ARM

* fix arm

* fix runner arch

* temporarily remove mozjpeg

* debug

* capitalize ARM64

* Revert "debug"

This reverts commit 696bdb943e.

* Revert "temporarily remove mozjpeg"

This reverts commit d431713d73.

* remove print
2026-09-23 17:58:18 -07:00
Alex Xu bed9382aab Update README.md 2026-09-21 13:39:31 -07:00
Alex Xu 2ac50f66ef add Legacy Panel View option from KCC 6 (#1445) 2026-09-21 13:38:39 -07:00
Alex Xu e301aeff52 Update README.md 2026-09-21 09:43:22 -07:00
Alex Xu 2beac5e891 Add files via upload 2026-09-21 09:42:46 -07:00
Alex Xu 6ce8d6fecb crop before split instead of after (#1444) 2026-09-20 22:37:08 -07:00
Alex Xu 1256ac97ba Update README.md 2026-09-18 17:12:41 -07:00
Alex Xu 4f475de4de Update README.md 2026-09-18 17:11:56 -07:00
Alex Xu 2483509343 update header image 2026-09-18 12:06:00 -07:00
Alex Xu 739f5170d6 Add files via upload 2026-09-18 12:05:29 -07:00
Alex Xu 9752b50cc3 bump to 11.3.2 v11.3.2 2026-09-16 18:16:15 -07:00
Alex Xu 19eda3aad2 don't crop first page if its color (#1441) 2026-09-16 15:07:10 -07:00
Alex Xu a1fd24d6a3 bump to 11.3.1 v11.3.1 2026-09-15 18:59:29 -07:00
Alex Xu 4f06f4ef90 fix expert mode showing easy label 2026-09-15 18:58:47 -07:00
Alex Xu c611cf6dc7 bump to 11.3.0 v11.3.0 2026-09-15 18:37:16 -07:00
dependabot[bot] 80fe280b50 Bump signpath/github-action-submit-signing-request from 2.3 to 3.0 (#1437)
Bumps [signpath/github-action-submit-signing-request](https://github.com/signpath/github-action-submit-signing-request) from 2.3 to 3.0.
- [Release notes](https://github.com/signpath/github-action-submit-signing-request/releases)
- [Commits](https://github.com/signpath/github-action-submit-signing-request/compare/v2.3...v3.0)

---
updated-dependencies:
- dependency-name: signpath/github-action-submit-signing-request
  dependency-version: '3.0'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-15 18:36:09 -07:00
Alex Xu ff9a5e518d fix expert button height on windows 2026-09-15 18:35:19 -07:00
Alex Xu 05e5844779 support Kindle Previewer 4 on Windows (#1440)
* initial commit

* refactor kindlegen check

* search for windows kindlegen

* increase search range
2026-09-15 18:27:43 -07:00
Alex Xu aaf3548595 increase search range 2026-09-15 18:25:32 -07:00
Alex Xu ea8a4db26e search for windows kindlegen 2026-09-15 18:25:32 -07:00
Alex Xu aa652ff6c0 refactor kindlegen check 2026-09-15 18:25:32 -07:00
Alex Xu a310d4c2b1 initial commit 2026-09-15 18:25:32 -07:00
Alex Xu 7245fdf2e1 support kindle previewer 4 (#1439) 2026-09-14 15:56:18 -07:00
Alex Xu fe85274105 implement custom covers for webtoon and fusion (#1438) 2026-09-14 13:06:53 -07:00
Alex Xu cb7592dcd0 fix cropping with edge imperfections (#1435)
* improve detection of edge imperfections for cropping

* increase imperfections ratio

* fil in edge too

* fine tune the constants
2026-09-12 17:35:05 -07:00
Alex Xu ea532c709b Update README.md 2026-09-08 13:19:05 -07:00
Alex Xu 1ce92bac83 Update README.md 2026-09-08 11:53:00 -07:00
Alex Xu 5b67d4019e Update README.md 2026-09-06 22:25:38 -07:00
Alex Xu 2423e2e44a Add files via upload 2026-09-06 22:22:59 -07:00
Alex Xu eb694b2dc3 bump to 11.2.0 v11.2.0 2026-09-06 22:14:10 -07:00
Alex Xu 04aac3ffc0 add simple mode (#1434)
* add expert mode

* add helper text
2026-09-06 22:13:48 -07:00
Alex Xu 0f630c5804 fix 7zip warning 2026-09-06 20:56:32 -07:00
Alex Xu d272073748 Update README.md 2026-09-06 20:50:29 -07:00
Alex Xu 66c6b8611a bump to 11.1.0 v11.1.0 2026-09-03 23:06:40 -07:00
dependabot[bot] 1b3b619491 Bump signpath/github-action-submit-signing-request from 2.2 to 2.3 (#1418)
Bumps [signpath/github-action-submit-signing-request](https://github.com/signpath/github-action-submit-signing-request) from 2.2 to 2.3.
- [Release notes](https://github.com/signpath/github-action-submit-signing-request/releases)
- [Commits](https://github.com/signpath/github-action-submit-signing-request/compare/v2.2...v2.3)

---
updated-dependencies:
- dependency-name: signpath/github-action-submit-signing-request
  dependency-version: '2.3'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-03 21:59:40 -07:00