Skip to content

Commit 80f3054

Browse files
committed
Introducing the Moondust Translator
It's an experimental episode translation tool. It can be already used, however, it has several imperfections that needs to be taken. commit 2bdac08 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 21 22:25:04 2025 +0300 Translator: Small table overlook tweak - Added type icons - Show full names of types to be more obvious - Make center and left alignment per column commit 934ceab Merge: 60c7b00 d807220 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 21 18:41:30 2025 +0300 Merge branch 'master' into wip-translator commit 60c7b00 Merge: 1bdca90 d8bca6c Author: Wohlstand <admin@wohlnet.ru> Date: Thu Apr 10 05:08:06 2025 +0300 Merge branch 'master' into wip-translator commit 1bdca90 Merge: b94fc23 30af874 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Mar 18 11:49:59 2025 +0300 Merge branch 'master' into wip-translator commit b94fc23 Merge: 075e215 3c62ec3 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Mar 16 08:18:13 2025 +0300 Merge branch 'master' into wip-translator commit 075e215 Merge: 46e42d5 61b3f90 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Mar 16 07:47:53 2025 +0300 Merge branch 'master' into wip-translator commit 46e42d5 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Feb 18 23:45:14 2025 +0300 Translator: Fixed missing override mark warning commit 7821a07 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Feb 18 23:31:26 2025 +0300 Engine: Fixed warnings - Overloading the virtual method of parent class - Set but unused variable contacts commit e01fc7a Merge: 9512ff5 d88bb8d Author: Wohlstand <admin@wohlnet.ru> Date: Tue Feb 18 22:43:11 2025 +0300 Merge branch 'master' into wip-translator commit 9512ff5 Merge: cb979d7 4f6b7af Author: Wohlstand <admin@wohlnet.ru> Date: Tue Feb 18 22:08:36 2025 +0300 Merge branch 'master' into wip-translator commit cb979d7 Merge: 5af71ca b505b2a Author: Wohlstand <admin@wohlnet.ru> Date: Tue Feb 18 12:41:54 2025 +0300 Merge branch 'master' into wip-translator commit 5af71ca Author: Wohlstand <Wohlstand@users.noreply.github.com> Date: Tue Feb 18 01:58:23 2025 +0300 Translator: Show number of dialogue items commit 4fab884 Author: Wohlstand <Wohlstand@users.noreply.github.com> Date: Tue Feb 18 01:53:31 2025 +0300 Translator: Added tooltip hint for string type commit 3776589 Merge: c5620ea fb9de61 Author: Wohlstand <Wohlstand@users.noreply.github.com> Date: Tue Feb 18 01:45:46 2025 +0300 Merge branch 'master' into wip-translator commit c5620ea Merge: 69a0e10 8615c23 Author: Wohlstand <Wohlstand@users.noreply.github.com> Date: Tue Feb 18 01:41:52 2025 +0300 Merge branch 'master' into wip-translator commit 69a0e10 Merge: 841092b de864cc Author: Wohlstand <Wohlstand@users.noreply.github.com> Date: Tue Feb 18 01:11:39 2025 +0300 Merge branch 'master' into wip-translator commit 841092b Merge: 41826ca e2dfef9 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Feb 4 05:27:25 2025 +0300 Merge branch 'master' into wip-translator commit 41826ca Merge: 74b7458 84b8835 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Jan 19 22:41:38 2025 +0300 Merge branch 'master' into wip-translator commit 74b7458 Merge: 1994e25 ac4d2e8 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Jan 5 01:23:55 2025 +0300 Merge branch 'master' into wip-translator commit 1994e25 Merge: cdbd53b 02f54ba Author: Wohlstand <admin@wohlnet.ru> Date: Fri Jan 3 04:40:22 2025 +0300 Merge branch 'master' into wip-translator commit cdbd53b Author: Wohlstand <admin@wohlnet.ru> Date: Wed Jan 1 03:19:26 2025 +0300 Updated Copyright year for 2025 commit 88cfa50 Merge: 7442c1c 9ea8c18 Author: Wohlstand <admin@wohlnet.ru> Date: Wed Jan 1 03:08:34 2025 +0300 Merge branch 'master' into wip-translator commit 7442c1c Author: Wohlstand <admin@wohlnet.ru> Date: Wed Jan 1 03:08:29 2025 +0300 Updated submodules commit f40b12c Merge: e647c63 206e5fa Author: Wohlstand <admin@wohlnet.ru> Date: Tue Dec 31 00:53:04 2024 +0300 Merge branch 'master' into wip-translator commit e647c63 Merge: 3e00fea 5efd980 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Dec 31 00:42:56 2024 +0300 Merge branch 'master' into wip-translator commit 3e00fea Merge: bf58bc4 931e0db Author: Wohlstand <admin@wohlnet.ru> Date: Mon Dec 30 23:51:51 2024 +0300 Merge branch 'master' into wip-translator commit bf58bc4 Merge: d1a346e e6ea813 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Dec 30 23:50:55 2024 +0300 Merge branch 'master' into wip-translator commit d1a346e Merge: c798264 9a166b6 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Dec 30 23:49:20 2024 +0300 Merge branch 'master' into wip-translator commit c798264 Merge: 052cd9b bfb01cb Author: Wohlstand <admin@wohlnet.ru> Date: Tue Dec 17 08:40:45 2024 +0300 Merge branch 'master' into wip-translator commit 052cd9b Merge: 58f2a9c 6ba2ce5 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Dec 12 23:07:28 2024 +0300 Merge branch 'master' into wip-translator commit 58f2a9c Merge: be64892 dd0d39b Author: Wohlstand <admin@wohlnet.ru> Date: Wed Dec 11 04:02:59 2024 +0300 Merge branch 'master' into wip-translator commit be64892 Author: Wohlstand <admin@wohlnet.ru> Date: Wed Dec 11 04:02:39 2024 +0300 Android CI: Bump the Artifacts upload to V4 Actually, it's unused here as all builds gets uploaded to the main FTP storage commit fcb3ec8 Merge: c888f7c 4fcea58 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Nov 28 12:26:23 2024 +0300 Merge branch 'master' into wip-translator commit c888f7c Merge: 89b8ee3 e9e3991 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Nov 28 12:05:59 2024 +0300 Merge branch 'master' into wip-translator commit 89b8ee3 Merge: 8c23b08 179088f Author: Wohlstand <admin@wohlnet.ru> Date: Fri Oct 25 13:39:08 2024 +0300 Merge branch 'master' into wip-translator commit 8c23b08 Merge: 5f304f1 d375aba Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 15 06:15:54 2024 +0300 Merge branch 'master' into wip-translator commit 5f304f1 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 15 06:15:28 2024 +0300 Ouch! commit dad86d8 Merge: 3338575 75731e8 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 15 06:13:52 2024 +0300 Merge branch 'master' into wip-translator commit 3338575 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 15 06:13:11 2024 +0300 Editor: Make destructors of all objects virtual #611 commit a75af69 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 15 06:11:43 2024 +0300 Editor: Improve the pointer casts at level objects #611 commit 84a8f72 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Oct 11 02:06:27 2024 +0300 Translator: True fix of the out-of-tree objects bug commit cf647c5 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Oct 6 11:00:34 2024 +0300 Translator: Fixed an inability to see dialogues When other than "original" language is seleted commit 826b6b2 Merge: 9aae9ad f121bdf Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 1 22:20:13 2024 +0300 Merge branch 'master' into wip-translator commit 9aae9ad Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 1 10:43:22 2024 +0300 Translator: Automake missing directory for orphan entry commit 29f1494 Merge: 46c45ae af56722 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 1 03:35:19 2024 +0300 Merge branch 'master' into wip-translator commit 46c45ae Merge: 754f93d 6277c81 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 1 03:32:20 2024 +0300 Merge branch 'master' into wip-translator commit 754f93d Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 1 03:09:33 2024 +0300 Translator: Fixed orphan objects in the tree commit ceca12f Merge: 87c1360 cfd8190 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Oct 1 02:11:20 2024 +0300 Merge branch 'master' into wip-translator commit 87c1360 Merge: 92ec3b3 23495ae Author: Wohlstand <admin@wohlnet.ru> Date: Tue Sep 10 02:41:27 2024 +0300 Merge branch 'master' into wip-translator commit 92ec3b3 Merge: 5498c2a 9593a98 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Aug 3 10:19:44 2024 +0300 Merge branch 'master' into wip-translator commit 5498c2a Merge: 7ec5027 e791b62 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Jul 18 04:47:29 2024 +0300 Merge branch 'master' into wip-translator commit 7ec5027 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Jul 18 04:46:53 2024 +0300 Updated PGE-FL commit 9589519 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Jul 18 04:46:43 2024 +0300 Updated submodules commit 0a76dd5 Merge: 003ab02 045dece Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 29 22:13:58 2024 +0300 Merge branch 'master' into wip-translator commit 003ab02 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 29 03:30:18 2024 +0300 Editor: Attempt to resolve the abnormal item picker behaviour commit c3251b9 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Mar 12 07:50:33 2024 +0300 Translator: Initial translation status indication When selecting a language to translate, the status will show whatever string is translated or not. commit bfc1923 Merge: 5f89b40 3779ea4 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Mar 9 03:03:00 2024 +0300 Merge branch 'master' into wip-translator commit 5f89b40 Merge: ade8714 2e75250 Author: Wohlstand <admin@wohlnet.ru> Date: Wed Mar 6 18:58:40 2024 +0300 Merge branch 'master' into wip-translator commit ade8714 Merge: b092194 8f80841 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Mar 5 22:03:10 2024 +0300 Merge branch 'master' into wip-translator commit b092194 Merge: 9976948 1483326 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Mar 5 20:39:58 2024 +0300 Merge branch 'master' into wip-translator commit 9976948 Merge: 1ab1521 ed1e0b4 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Mar 5 20:38:28 2024 +0300 Merge branch 'master' into wip-translator commit 1ab1521 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Mar 2 15:23:49 2024 +0300 Translation: Implemented language visibility system commit 9b6d278 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Mar 2 14:15:48 2024 +0300 Translator: Highlight syntax in source lines commit 00906ca Author: Wohlstand <admin@wohlnet.ru> Date: Sun Feb 25 05:23:53 2024 +0300 Translator: Adjust the size of the text edit box commit 7163c63 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 24 12:05:27 2024 +0300 Translator: Added Sanitizer option to catch leaks commit 72061db Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 24 12:04:46 2024 +0300 Translator: Expand line editor to content To make it being more convenient to work commit 1105b62 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 24 12:04:19 2024 +0300 Translator: Fixed random crash on switching lines commit a80f771 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 24 12:03:44 2024 +0300 Translator: Fixed memory leak commit 48bb22e Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 24 11:15:57 2024 +0300 Translator: Added syntax highlight for message macros commit 44e392a Merge: e5fc9af 0ca7c03 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 24 11:06:10 2024 +0300 Merge branch 'master' into wip-translator commit e5fc9af Merge: c82e5bb 6b6a444 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 24 05:29:05 2024 +0300 Merge branch 'master' into wip-translator commit c82e5bb Merge: de2512d 5ea493b Author: Wohlstand <admin@wohlnet.ru> Date: Fri Feb 23 07:28:01 2024 +0300 Merge branch 'master' into wip-translator commit de2512d Merge: aa3357b 9567001 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Feb 23 02:18:32 2024 +0300 Merge branch 'master' into wip-translator commit aa3357b Merge: 73b3d09 c2e812e Author: Wohlstand <admin@wohlnet.ru> Date: Wed Feb 21 06:55:58 2024 +0300 Merge branch 'master' into wip-translator commit 73b3d09 Merge: 08dc185 bf0d3b2 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 17 07:19:03 2024 +0300 Merge branch 'master' into wip-translator commit 08dc185 Merge: 3199f62 49994aa Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 17 07:12:17 2024 +0300 Merge branch 'master' into wip-translator commit 3199f62 Merge: 6322082 4c1b6ba Author: Wohlstand <admin@wohlnet.ru> Date: Fri Feb 16 05:27:59 2024 +0300 Merge branch 'master' into wip-translator commit 6322082 Merge: d57e32a 68743ee Author: Wohlstand <admin@wohlnet.ru> Date: Fri Feb 16 05:27:03 2024 +0300 Merge branch 'master' into wip-translator commit d57e32a Merge: bdb98d5 c410a5b Author: Wohlstand <admin@wohlnet.ru> Date: Sun Feb 4 15:15:05 2024 +0300 Merge branch 'master' into wip-translator commit bdb98d5 Merge: b386c4e ca5a7ca Author: Wohlstand <admin@wohlnet.ru> Date: Sun Feb 4 10:05:36 2024 +0300 Merge branch 'master' into wip-translator commit b386c4e Author: Wohlstand <admin@wohlnet.ru> Date: Tue Jan 16 05:48:05 2024 +0300 CI: Attempted to fix the Android SDK/NDK setup commit a9597d7 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Jan 7 06:32:44 2024 +0300 Translator: Updated copyright year to 2024 commit cc9ca00 Merge: 7c38a0a dc32d28 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Jan 7 06:29:06 2024 +0300 Merge branch 'master' into wip-translator commit 7c38a0a Merge: b3c6e2b fc0132f Author: Wohlstand <admin@wohlnet.ru> Date: Sat Dec 23 09:22:13 2023 +0300 Merge branch 'master' into wip-translator commit b3c6e2b Merge: 7fca5b1 446ebbf Author: Wohlstand <admin@wohlnet.ru> Date: Fri Nov 24 10:32:44 2023 +0300 Merge branch 'master' into wip-translator commit 7fca5b1 Merge: 4800b34 f510388 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Nov 24 05:33:43 2023 +0300 Merge branch 'master' into wip-translator commit 4800b34 Merge: ed068a5 9894b82 Author: Wohlstand <admin@wohlnet.ru> Date: Wed Nov 22 09:00:23 2023 +0300 Merge branch 'master' into wip-translator commit ed068a5 Merge: 7f2d154 1b82287 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Nov 20 03:37:16 2023 +0300 Merge branch 'master' into wip-translator commit 7f2d154 Merge: 1053a08 81409de Author: Wohlstand <admin@wohlnet.ru> Date: Wed Nov 1 08:26:21 2023 +0300 Merge branch 'master' into wip-translator commit 1053a08 Author: Wohlstand <admin@wohlnet.ru> Date: Wed Nov 1 05:16:15 2023 +0300 Updated submodules commit 70b88ab Merge: 335dbe0 4d83eae Author: Wohlstand <admin@wohlnet.ru> Date: Sat Oct 7 09:26:27 2023 +0300 Merge branch 'master' into wip-translator commit 335dbe0 Merge: 9145edf 3f82267 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Oct 7 07:25:41 2023 +0300 Merge branch 'master' into wip-translator commit 9145edf Merge: 5108158 90c20af Author: Wohlstand <admin@wohlnet.ru> Date: Sat Oct 7 05:40:13 2023 +0300 Merge branch 'master' into wip-translator commit 5108158 Merge: bb627b3 fbf5241 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Oct 6 01:38:00 2023 +0300 Merge branch 'master' into wip-translator commit bb627b3 Merge: 0ba80e0 54df710 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Oct 6 01:22:20 2023 +0300 Merge branch 'master' into wip-translator commit 0ba80e0 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Sep 25 01:29:01 2023 +0300 Translator: Initial work to support TrId translations commit d251cd5 Merge: 41ed3c9 f5c2d08 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Sep 24 06:34:46 2023 +0300 Merge branch 'master' into wip-translator commit 41ed3c9 Merge: c485c62 0431313 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Sep 24 06:33:47 2023 +0300 Merge branch 'wip-translator' of github.com:WohlSoft/Moondust-Project into wip-translator commit c485c62 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Sep 24 06:33:19 2023 +0300 Translator: Delete invalid entries while updating translations commit 0431313 Author: Vitaly Novichkov <Wohlstand@users.noreply.github.com> Date: Wed Sep 20 07:06:45 2023 +0300 Editor: Attempt to fix macOS build commit 2316dc9 Merge: bc12935 f726edf Author: Wohlstand <admin@wohlnet.ru> Date: Wed Sep 20 06:27:02 2023 +0300 Merge branch 'master' into wip-translator commit bc12935 Merge: 94b5247 e7a37a8 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Sep 17 01:13:58 2023 +0300 Merge branch 'master' into wip-translator commit 94b5247 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Sep 14 05:16:56 2023 +0300 Translator: Added visibility toggler for languages ... not yet working. It's supposed to be remembered globally by setup, and let translator to have favourite languages only being show with no matter what project is open. commit b4590bf Author: Wohlstand <admin@wohlnet.ru> Date: Thu Sep 14 04:52:04 2023 +0300 Translator: Properly refresh UI after language adding commit 8cead9a Author: Wohlstand <admin@wohlnet.ru> Date: Tue Sep 12 05:24:16 2023 +0300 textdata.h: Added tr_id fields for the future use commit 8362302 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Sep 12 01:52:05 2023 +0300 Translator: do name metafile as "metadata" ...instead of "origin". But keep the tool to auto-rename the file on the next save. commit 21895c7 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Sep 11 22:31:31 2023 +0300 Translator: Added language selector dialogue commit e6d58cf Author: Wohlstand <admin@wohlnet.ru> Date: Wed Sep 6 21:39:16 2023 +0300 CI: Enable build of `wip-translator` branch commit a606d30 Author: Wohlstand <admin@wohlnet.ru> Date: Wed Sep 6 21:39:01 2023 +0300 Translator: Set the version number to "alpha" It's still deeply not being finished yet, so, it should be alpha! commit bcc271e Merge: 8d168de 77ebac3 Author: Wohlstand <admin@wohlnet.ru> Date: Wed Aug 30 09:37:10 2023 +0300 Merge branch 'master' into wip-translator commit 8d168de Merge: 794c161 7889e99 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Aug 27 23:55:43 2023 +0300 Merge branch 'master' into wip-translator commit 794c161 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Aug 24 03:45:19 2023 +0300 Engine: Fixed background config load in the monolithic mode commit 6904416 Author: Wohlstand <admin@wohlnet.ru> Date: Wed Aug 23 11:19:32 2023 +0300 Translator: Fixed the preprocessor logic commit c30b7ee Merge: 0650d00 71de45a Author: Wohlstand <admin@wohlnet.ru> Date: Wed Aug 23 10:11:30 2023 +0300 Merge branch 'master' into wip-translator commit 0650d00 Merge: 8637d1f e335792 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Aug 17 14:50:55 2023 +0300 Merge branch 'master' into wip-translator commit 8637d1f Author: Wohlstand <admin@wohlnet.ru> Date: Thu Aug 17 14:48:40 2023 +0300 Editor: Updated English and Russian translations commit c2184cc Merge: 6744943 0c3752e Author: Wohlstand <admin@wohlnet.ru> Date: Thu Aug 17 14:46:45 2023 +0300 Merge branch 'master' of git@github.com:WohlSoft/Moondust-Project.git into wip-translator # Conflicts: # Editor/languages/editor_zh.ts commit 6744943 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Aug 17 14:44:04 2023 +0300 Translations refresh commit 00d2513 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Aug 17 14:42:22 2023 +0300 Editor: Rename the field and add comments Renamed the "Locked Item Opacity" into "Opacity of locked items". Also, added explanation texts. This will be more understandable to non-English speakers, especially to translators who may improperly interpret the phrase. commit 0f8726e Author: Wohlstand <admin@wohlnet.ru> Date: Thu Aug 17 02:31:50 2023 +0300 Translator: Make sure macros are in sync with preprocessor commit 8525324 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Aug 17 02:28:27 2023 +0300 Translator: Update for Qt 6 support commit 3a5cd1e Merge: 4b9ccbe 56a4dc4 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Aug 17 00:24:10 2023 +0300 Merge branch 'master' into wip-translator commit 4b9ccbe Author: Wohlstand <admin@wohlnet.ru> Date: Tue Aug 15 02:52:45 2023 +0300 translator_main.cpp: Fixed the recent list move commit 4502d2b Author: Wohlstand <admin@wohlnet.ru> Date: Tue Aug 15 02:49:00 2023 +0300 Translator: Fixed build commit 35a7390 Merge: 2f73308 81c307a Author: Wohlstand <admin@wohlnet.ru> Date: Mon Aug 14 04:37:08 2023 +0300 Merge branch 'master' into wip-translator commit 2f73308 Merge: 62f25e7 5bd3a15 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Aug 6 19:59:31 2023 +0300 Merge branch 'master' into wip-translator commit 62f25e7 Author: Wohlstand <admin@wohlnet.ru> Date: Wed Jul 26 05:29:04 2023 +0300 Translator: Tweaked the version.h file commit c854441 Author: Wohlstand <admin@wohlnet.ru> Date: Wed Jul 26 05:28:49 2023 +0300 Translator: Started implementing the languages list commit 18238b9 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Jul 24 03:52:31 2023 +0300 pge_version.h: Extended CPU and OS info Update had been backported from the TheXTech project commit 648db60 Merge: ab3fe93 24369d7 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Jul 14 20:42:15 2023 +0300 Merge branch 'master' into wip-translator commit ab3fe93 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Jul 2 02:56:52 2023 +0300 Translator: Added license header to the every source file commit 22f47fe Author: Wohlstand <admin@wohlnet.ru> Date: Sun Jul 2 02:52:46 2023 +0300 Translator: Added "useTrId" field into the metafile TODO: - Change the rescan algorithm in a case of trId is set or unset - On the first project load, ask user to load as TrId or as By-String - Add an option to convert the entire episode (with re-saving of all files) into the TrId format commit cb6a99d Merge: 6e996f2 38b9768 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Jun 24 12:46:11 2023 +0300 Merge branch 'master' into wip-translator commit 6e996f2 Merge: e7e6b57 15c8176 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Jun 22 23:57:25 2023 +0300 Merge branch 'master' into wip-translator commit e7e6b57 Merge: 2928cc4 f8e38bf Author: Wohlstand <admin@wohlnet.ru> Date: Tue Jun 20 17:08:44 2023 +0300 Merge branch 'master' into wip-translator commit 2928cc4 Author: Wohlstand <admin@wohlnet.ru> Date: Tue May 30 04:05:38 2023 +0300 Editor: Reworked exit direction related code - Replaced combo-boxes with menu-equipped tool-buttons - Optimized the code size related to exit codes directions on the world map - Added an ability to provide the custom list of exit codes (#539) - Arranged items on the level enterance point properties dialogue to don't let it expand it's size too much. commit 9c13fe2 Author: Wohlstand <admin@wohlnet.ru> Date: Tue May 30 02:24:46 2023 +0300 Updated submodules commit b3e5474 Merge: 56ae39c a1d817b Author: Wohlstand <admin@wohlnet.ru> Date: Thu May 18 05:51:55 2023 +0300 Merge branch 'master' into wip-translator commit 56ae39c Author: Wohlstand <admin@wohlnet.ru> Date: Thu May 18 05:51:41 2023 +0300 Engine: Fixed build commit 5220fd3 Author: Wohlstand <admin@wohlnet.ru> Date: Thu May 18 05:51:35 2023 +0300 Updated submodules commit 543d22f Author: Wohlstand <admin@wohlnet.ru> Date: Thu May 18 05:51:09 2023 +0300 MusicPlayer: Fixed fallthrough warnings commit a1789f3 Merge: 0433edd b2a6855 Author: Wohlstand <admin@wohlnet.ru> Date: Thu May 18 05:23:15 2023 +0300 Merge branch 'master' into wip-translator commit 0433edd Author: Wohlstand <admin@wohlnet.ru> Date: Thu May 18 05:22:33 2023 +0300 Engine: Small fix at the obj_sound.cpp commit 039b6c8 Author: Wohlstand <admin@wohlnet.ru> Date: Thu May 18 05:17:20 2023 +0300 Engine: Synchronized the logger and other modules with TheXTech commit c130018 Author: Wohlstand <admin@wohlnet.ru> Date: Thu May 18 04:33:49 2023 +0300 DirMan: Synchronized with TheXTech commit 6f1944e Author: Wohlstand <admin@wohlnet.ru> Date: Thu May 18 04:33:15 2023 +0300 IniProcessing: Synchronized the update with TheXTech commit a2e5491 Merge: 18e5ff8 a97d154 Author: Wohlstand <admin@wohlnet.ru> Date: Tue May 16 01:28:17 2023 +0300 Merge branch 'master' into wip-translator commit 18e5ff8 Merge: c98e774 69a4bdf Author: Wohlstand <admin@wohlnet.ru> Date: Sun May 14 04:54:06 2023 +0300 Merge branch 'master' into wip-translator commit c98e774 Merge: 12b1371 02ca7fb Author: Wohlstand <admin@wohlnet.ru> Date: Sun May 14 03:41:50 2023 +0300 Merge branch 'master' into wip-translator commit 12b1371 Merge: 1f92aff c3f232c Author: Wohlstand <admin@wohlnet.ru> Date: Sun May 14 03:37:09 2023 +0300 Merge branch 'master' into wip-translator commit 1f92aff Merge: 404b58f 8071f4d Author: Wohlstand <admin@wohlnet.ru> Date: Sun Apr 30 16:42:04 2023 +0300 Merge branch 'master' into wip-translator commit 404b58f Author: Wohlstand <admin@wohlnet.ru> Date: Sun Apr 30 16:41:32 2023 +0300 Added "yangyangdaji" into Chinese translators list commit ae48829 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Apr 29 01:34:26 2023 +0300 MsgBoxPreview: Initial work on the pre-processor Preprocessor is a feature that should allow showing of a specific text depending on a given condition like a current playable character. commit 317e357 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Apr 28 21:57:27 2023 +0300 Make MsgBoxPreview being shared module commit e700687 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Apr 28 21:48:47 2023 +0300 Editor: Added music setup support on world map When selecting a custom music on the world map, also open the music settings to select them: they are significantly important. commit 84f2b1f Author: Wohlstand <admin@wohlnet.ru> Date: Fri Apr 28 21:48:03 2023 +0300 Editor: item_music.cpp: Added empty line commit 8ac8861 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Apr 28 21:47:37 2023 +0300 Editor: Automatically open music settings When selecting a music file of format that has an extra seettings, do automatically open the music settings as they were required to be set, and users should be sure about the music setup immediately, without a hint of the tiny button at the music field. commit 0ea0fcf Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 25 02:19:04 2023 +0300 Update PGE_File_Formats Fixed Qt build commit cfdbb47 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 25 02:11:41 2023 +0300 Updated submodules commit f534282 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 25 01:48:51 2023 +0300 Editor: Fixed glitch of layer names with ampersand #564 commit 37fa99d Merge: d427120 0cf107b Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 24 20:18:51 2023 +0300 Merge branch 'master' into wip-translator commit d427120 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 24 01:57:56 2023 +0300 Translator: Added draft for the languages list commit 723ea82 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 24 01:52:39 2023 +0300 Translator: Added "About" dialogue Based off the Calibrator's dialogue commit fe00fd7 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 24 01:42:59 2023 +0300 Translator: Added new icon commit 5661ec4 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Apr 22 20:43:59 2023 +0300 Translator: Use "i18n" sub-directories to save projects Also, automatically convert old projects into new format. commit d5975fb Author: Wohlstand <admin@wohlnet.ru> Date: Thu Apr 20 16:47:50 2023 +0300 update-copyright.sh: Also update the pge_version.h commit 8cd2810 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 10 13:51:25 2023 +0300 Translator: Fixed context menu alignment commit 700e2cc Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 10 01:09:50 2023 +0300 Translator: Added "finished" checkbox into tr field commit 33c3e88 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Apr 9 00:06:45 2023 +0300 Translator: Fixed single-level scanning commit 66d7090 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Apr 8 23:54:21 2023 +0300 Translator: Support for single-level translations The format of the translation is the same, however, the placement of the translation file will come into level's data directory. commit 0ae659e Author: Wohlstand <admin@wohlnet.ru> Date: Sat Apr 8 14:07:25 2023 +0300 Translator: Use space at begin to trick QMap commit 0767873 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Apr 8 02:14:54 2023 +0300 Translator: Added new fields into the output commit 1189464 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Apr 7 15:50:28 2023 +0300 Translator: Fixed credits instead title got shown commit 1106744 Author: Wohlstand <admin@wohlnet.ru> Date: Fri Apr 7 02:02:59 2023 +0300 Translator: Fixed some translation notes commit fb4c9f7 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Apr 6 21:39:14 2023 +0300 Translator: Fixed source line for event dialogue entries commit 13a2818 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Apr 6 21:35:36 2023 +0300 Translator: Anoither tweak of the preview algorithm commit ba889a6 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Apr 6 21:01:54 2023 +0300 Translator: trim lines when building a preview commit f64b482 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Apr 6 18:39:52 2023 +0300 Translator: read and write translation notes commit 3b46c28 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Apr 6 17:04:58 2023 +0300 Translator: Fixed bugs commit e761958 Author: Wohlstand <admin@wohlnet.ru> Date: Thu Apr 6 15:10:24 2023 +0300 Translation: More preview updates commit 24ee43a Author: Wohlstand <admin@wohlnet.ru> Date: Thu Apr 6 14:25:19 2023 +0300 Translator: Working translation fields commit ee718db Author: Wohlstand <admin@wohlnet.ru> Date: Thu Apr 6 02:05:01 2023 +0300 Translate: more work on translation tialog commit 63a0e7e Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 22:39:46 2023 +0300 Translator: Added some more icons commit 84bcb5c Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 22:29:12 2023 +0300 Translator: Tweaked regexp to find translations commit e16cad9 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 22:22:16 2023 +0300 Translator: Run loading and scanning asynchroniously commit 8b31787 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 20:12:31 2023 +0300 Translator: Hints and colours for some table cells commit dac2a62 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 19:58:30 2023 +0300 Translator: added recent projects list commit ddc5763 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 19:29:01 2023 +0300 Translator: More work, added dialogues preview - Dialogues list - Dialogue preview - Fixed dialogues chain building code commit fc98c00 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 13:42:46 2023 +0300 Translator: Added preview box commit f3dc616 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 12:21:49 2023 +0300 Translator: small tweaks commit a1b8a94 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 12:09:47 2023 +0300 Translator: Add files with no strings as directories They are required to ensure that child objects will be shown in the tree. commit bd074fa Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 10:34:17 2023 +0300 Translator: Make strings list work commit 6237411 Author: Wohlstand <admin@wohlnet.ru> Date: Tue Apr 4 07:29:52 2023 +0300 Translator: Use the Tree View for episode entries commit 2de03c1 Merge: 127422e bceb431 Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 3 09:43:37 2023 +0300 Merge branch 'master' into wip-translator commit 127422e Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 3 06:43:06 2023 +0300 Translator: Fixed data building and saving commit e67f35c Author: Wohlstand <admin@wohlnet.ru> Date: Mon Apr 3 05:48:23 2023 +0300 Translator: More progress - View of tracked files - Loading and saving data from JSON files commit 8acfb8b Author: Wohlstand <admin@wohlnet.ru> Date: Sun Apr 2 21:23:54 2023 +0300 Translations: Tweaked scan and loading - Initial data loading code - Make scan work by manual tigger or when opening new projects - Remember last opened path commit 541511b Author: Wohlstand <admin@wohlnet.ru> Date: Sun Apr 2 18:52:15 2023 +0300 Translator: Fixed writing of titles commit 9e3ffbc Author: Wohlstand <admin@wohlnet.ru> Date: Sun Apr 2 18:36:41 2023 +0300 Translator: Tweaked logic, and example translation commit 38b9272 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Apr 2 17:52:12 2023 +0300 Translator: Experimental JSON saving commit 8564b1a Author: Wohlstand <admin@wohlnet.ru> Date: Sun Apr 2 17:11:13 2023 +0300 Translator: Improved the chain making commit c493258 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Apr 2 16:24:38 2023 +0300 Translator: Working strings extractor commit c4186cb Merge: 2dee8bd bf70d6a Author: Wohlstand <admin@wohlnet.ru> Date: Sun Apr 2 09:40:30 2023 +0300 Merge branch 'master' into wip-translator commit 2dee8bd Author: Wohlstand <admin@wohlnet.ru> Date: Tue Feb 28 04:56:43 2023 +0300 Translator: Added the data structure prototype commit 34f3c80 Merge: be538c2 109c5aa Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 11 06:55:07 2023 +0300 Merge branch 'master' into wip-translator commit be538c2 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 11 06:53:03 2023 +0300 Editor: Fixed crash on GTK2 theme on Qt 5.15 https://github.com/PrismLauncher/PrismLauncher/pull/604/files commit 63c0f64 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 11 06:49:06 2023 +0300 Editor: Beautify the proxystyle.cpp commit b87043c Merge: 0787ad8 a84be7e Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 11 01:43:31 2023 +0300 Merge branch 'master' into wip-translator commit 0787ad8 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 11 01:43:11 2023 +0300 Editor: Added the "don't edito" notice into credits.html commit 98f8d74 Author: Wohlstand <admin@wohlnet.ru> Date: Sat Feb 11 01:42:14 2023 +0300 Editor: Added Turkish translator into credits commit 6ffe591 Author: Wohlstand <admin@wohlnet.ru> Date: Sun Feb 5 08:12:25 2023 +0300 Added the sketch for the Translator component This utility is a part of the episodes translation concenpt using this plan: TheXTech/TheXTech#340
1 parent 5a1b239 commit 80f3054

77 files changed

Lines changed: 8221 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/macos-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- master
77
- stable
8+
- wip-translator
89
pull_request:
910
branches:
1011
- master

.github/workflows/ubuntu-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- master
77
- stable
88
- versus-ci-ubuntu
9+
- wip-translator
910
pull_request:
1011
branches:
1112
- master

.github/workflows/windows-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- master
77
- stable
8+
- wip-translator
89
pull_request:
910
branches:
1011
- master

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ else()
3636
endif()
3737

3838
option(PGE_STATIC_SDLMIXER "Prefer static assembly of SDL Mixer X and libraries" ${PGE_STATIC_SDLMIXER_PLATFORM_DEFAULT})
39+
option(ENABLE_ADDRESS_SANITIZER "Enable the Address Sanitizer GCC feature" OFF)
3940

4041
if(PGE_STATIC_SDLMIXER)
4142
set(PGE_SHARED_SDLMIXER OFF)
@@ -171,6 +172,12 @@ if(PGE_ENABLE_QT AND NOT ANDROID AND NOT EMSCRIPTEN)
171172
qtDeployAdd(pge_maintainer)
172173
endif()
173174

175+
option(PGE_BUILD_TRANSLATOR "Build the Translator utility component (Qt5 required)" ON)
176+
if(PGE_BUILD_TRANSLATOR)
177+
add_subdirectory(Translator)
178+
qtDeployAdd(pge_translator)
179+
endif()
180+
174181
pgeSetupQtDeploymet(${PGE_ENABLE_STATIC_QT} ${PGE_SHARED_SDLMIXER})
175182
endif()
176183

Engine/scenes/level/base/lvl_base_physics.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class PGE_physBody
3838
public:
3939
PGE_physBody() = default;
4040
PGE_physBody(const PGE_physBody &o) = default;
41+
PGE_physBody &operator=(const PGE_physBody &o) = default;
4142

4243
// void processCollisions(PGE_RenderList &objs);
4344

Translator/CMakeLists.txt

Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,261 @@
1+
cmake_minimum_required (VERSION 3.5)
2+
project(MoondustTranslator C CXX)
3+
4+
if(POLICY CMP0071) # Automoc
5+
cmake_policy(SET CMP0071 NEW)
6+
endif()
7+
8+
# Tell CMake to run moc when necessary:
9+
set(CMAKE_AUTOMOC ON)
10+
11+
# As moc files are generated in the binary dir, tell CMake
12+
# to always look for includes there:
13+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
14+
15+
set(CMAKE_INSTALL_RPATH ".")
16+
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
17+
18+
include_directories(
19+
${CMAKE_CURRENT_SOURCE_DIR}
20+
${DEPENDENCIES_INSTALL_DIR}/include
21+
${CMAKE_CURRENT_SOURCE_DIR}/../_common/ # PGE-FL
22+
)
23+
link_directories(${DEPENDENCIES_INSTALL_DIR}/lib)
24+
25+
# Version
26+
include(version.cmake)
27+
# Default GIT version
28+
include(../_common/git_version.cmake)
29+
# Common building properties and optimization flags
30+
include(../_common/build_props.cmake)
31+
# Build properties for executable projects
32+
include(../_common/executable_build_props.cmake)
33+
# Find extra libraries to link when using static Qt (use ${QT_EXTRA_LIBS}!)
34+
include(../_common/static_qt.cmake)
35+
36+
include(../_common/translator-qt/translator.cmake)
37+
include(../_common/qt-modules/compat/pge_qt_compat.cmake)
38+
include(../_common/Utf8Main/utf8main.cmake)
39+
include(../_common/qt-modules/msg_box_preview/msg_box_preview.cmake)
40+
include(../_common/qt-modules/syntax_highlight/syntax_highlight.cmake)
41+
42+
if(PGE_USE_QT5)
43+
pge_cxx_standard(14)
44+
else()
45+
pge_cxx_standard(17)
46+
endif()
47+
48+
if(QT_DISABLE_NATIVE_FILE_DIALOG) # Disable native file dialogs when locally-built libPNG was been used to avoid the crash
49+
message("== Translator: Native file dialogs will be DISABLED")
50+
add_definitions(-DQT_DONT_USE_NATIVE_FILE_DIALOG)
51+
else()
52+
message("== Translator: Native file dialogs will be ALLOWED if possible")
53+
endif()
54+
55+
# =============== Translations ===============
56+
set(_LANGAUGES_TEMP_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}/languages")
57+
set(PGE_LANG_OUTPUT_DIR "${CMAKE_BINARY_DIR}/bin/languages")
58+
59+
file(GLOB PGE_LANG_SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/languages/*.ts")
60+
61+
set_source_files_properties(${PGE_LANG_SRC_FILES} PROPERTIES OUTPUT_LOCATION ${PGE_LANG_OUTPUT_DIR})
62+
set(PGE_LANG_BIN_FILES)
63+
pge_qt_add_translation(PGE_LANG_BIN_FILES ${PGE_LANG_SRC_FILES})
64+
add_custom_target(translator_translations DEPENDS ${PGE_LANG_BIN_FILES})
65+
66+
if(NOT APPLE AND NOT EMSCRIPTEN)
67+
install(FILES ${PGE_LANG_BIN_FILES} DESTINATION "${PGE_INSTALL_DIRECTORY}/languages")
68+
endif()
69+
# ===========================================
70+
71+
# Executables fail to build with Qt 5 in the default configuration
72+
# without -fPIE. We add that here.
73+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${QT_Widgets_EXECUTABLE_COMPILE_FLAGS} ${QT_Concurrent_EXECUTABLE_COMPILE_FLAGS}")
74+
75+
pge_qt_wrap_ui(UIS_HDRS
76+
translator_main.ui
77+
translate_field.ui
78+
dialogue_item.ui
79+
about/about.ui
80+
lang_select/lang_select.ui
81+
)
82+
83+
set(RESOURCE ${CMAKE_CURRENT_SOURCE_DIR}/_resources/translator.qrc)
84+
pge_qt_add_resources(RESOURCE_ADDED ${RESOURCE})
85+
86+
if(QT_IMPORT_PLUGINS_MODULE)
87+
set(QT_PLUGINS_CPP "${CMAKE_BINARY_DIR}/pge_translator_plugins.cpp")
88+
file(WRITE
89+
"${QT_PLUGINS_CPP}"
90+
"${QT_IMPORT_PLUGINS_MODULE}")
91+
endif()
92+
93+
set(PGE_TRANSLATOR_SRCS)
94+
95+
list(APPEND PGE_TRANSLATOR_SRCS
96+
${PGETRANSLATOR_SRCS}
97+
${MSG_BOX_PREVIEW_SRC}
98+
${SYNTAX_HIGHLIGHT_SRC}
99+
main.cpp
100+
textdata/textdata.h
101+
textdata/text_types.h
102+
textdata/text_data_processor.h textdata/text_data_processor.cpp
103+
textdata/files_list_model.h textdata/files_list_model.cpp
104+
textdata/dialogues_list_model.h textdata/dialogues_list_model.cpp
105+
textdata/files_strings.h textdata/files_strings.cpp
106+
textdata/langs_list_model.h textdata/langs_list_model.cpp
107+
textdata/delegates/checkbox_delegate.cpp textdata/delegates/checkbox_delegate.h
108+
about/about.h about/about.cpp
109+
lang_select/lang_select.h lang_select/lang_select.cpp
110+
translator_main.h translator_main.cpp
111+
translate_field.h translate_field.cpp
112+
dialogue_item.h dialogue_item.cpp
113+
common_features/app_path.h common_features/app_path.cpp
114+
common_features/logger.h common_features/logger_sets.h common_features/logger.cpp
115+
common_features/growing_text_edit.h common_features/growing_text_edit.cpp
116+
${UTF8MAIN_SRCS}
117+
${UIS_HDRS}
118+
${RESOURCE_ADDED}
119+
${QT_PLUGINS_CPP}
120+
)
121+
122+
if(APPLE)
123+
add_definitions(-DQ_OS_MACX) # Workaround for MOC
124+
set_source_files_properties(${MOONDUST_QT_LANG_BIN_FILES} PROPERTIES GENERATED TRUE) # WORKAROUND
125+
list(APPEND PGE_TRANSLATOR_SRCS
126+
_resources/translator.icns
127+
${PGE_LANG_BIN_FILES}
128+
${MOONDUST_QT_LANG_BIN_FILES}
129+
${MOONDUST_QT_LANG_ICON_FILES}
130+
)
131+
endif()
132+
133+
if(WIN32)
134+
list(APPEND PGE_TRANSLATOR_SRCS _resources/translator.rc)
135+
endif()
136+
137+
add_executable(pge_translator
138+
${PGE_TRANSLATOR_SRCS}
139+
)
140+
141+
add_dependencies(pge_translator
142+
libpng_Local
143+
FREETYPE_Local
144+
PGE_FileFormatsQt
145+
translator_translations
146+
moondust_translations
147+
) # Needed for Qt to be linked
148+
149+
add_library(PGE_Translator_QtLibs INTERFACE)
150+
151+
# The Qt5Widgets_INCLUDES also includes the include directories for
152+
# dependencies QtCore and QtGui
153+
target_include_directories(PGE_Translator_QtLibs
154+
INTERFACE
155+
${QT_Core_INCLUDE_DIRS}
156+
${QT_Gui_INCLUDE_DIRS}
157+
${QT_Widgets_INCLUDE_DIRS}
158+
${QT_Concurrent_INCLUDE_DIRS}
159+
)
160+
161+
# We need add -DQT_WIDGETS_LIB when using QtWidgets in Qt 5.
162+
target_compile_definitions(PGE_Translator_QtLibs
163+
INTERFACE
164+
${QT_Core_DEFINITIONS}
165+
${QT_Gui_DEFINITIONS}
166+
${QT_Widgets_DEFINITIONS}
167+
${QT_Concurrent_DEFINITIONS}
168+
-DPGE_FILES_QT
169+
)
170+
171+
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
172+
if(${CMAKE_BUILD_TYPE_LOWER} STREQUAL "debug")
173+
target_compile_definitions(pge_translator
174+
PRIVATE
175+
-DDEBUG_BUILD
176+
)
177+
endif()
178+
179+
target_link_libraries(PGE_Translator_QtLibs INTERFACE
180+
${QT_EXTRA_LIBS_PRE}
181+
PGE_FileFormatsQt
182+
${QT_Concurrent_LIBRARIES}
183+
${QT_Widgets_LIBRARIES}
184+
${QT_Gui_LIBRARIES}
185+
${QT_Core_LIBRARIES}
186+
${QT_EXTRA_LIBS}
187+
)
188+
if(QT_PTHREAD)
189+
target_link_libraries(PGE_Translator_QtLibs INTERFACE ${QT_PTHREAD})
190+
endif()
191+
192+
193+
set(PGE_TRANSLATOR_LINK_LIBS)
194+
set(PGE_TRANSLATOR_INSTALLS)
195+
196+
list(APPEND PGE_TRANSLATOR_INSTALLS
197+
pge_translator
198+
)
199+
200+
list(APPEND PGE_TRANSLATOR_LINK_LIBS PGE_Translator_QtLibs)
201+
202+
if(WIN32)
203+
list(APPEND PGE_TRANSLATOR_LINK_LIBS
204+
version
205+
)
206+
else()
207+
if(UNIX AND NOT APPLE)
208+
list(APPEND PGE_TRANSLATOR_LINK_LIBS dl)
209+
endif()
210+
endif()
211+
212+
if(NOT EMSCRIPTEN AND NOT MSVC)
213+
if(WIN32)
214+
set_target_properties(pge_translator PROPERTIES WIN32_EXECUTABLE ON)
215+
if(NOT PGE_ENABLE_STATIC_QT)
216+
list(APPEND PGE_TRANSLATOR_LINK_LIBS "-static")
217+
endif()
218+
endif()
219+
find_library(_LIB_PTHREAD pthread)
220+
if(_LIB_PTHREAD)
221+
list(APPEND PGE_TRANSLATOR_LINK_LIBS ${_LIB_PTHREAD})
222+
endif()
223+
endif()
224+
225+
if(APPLE)
226+
set_target_properties(pge_translator PROPERTIES
227+
OUTPUT_NAME "Moondust Translator"
228+
MACOSX_BUNDLE TRUE
229+
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/_resources/translator.plist.in"
230+
MACOSX_BUNDLE_EXECUTABLE_NAME "pge_translator"
231+
MACOSX_BUNDLE_GUI_IDENTIFIER "ru.wohlsoft.pge-translator"
232+
MACOSX_BUNDLE_SHORT_VERSION_STRING "${TRANSLATOR_VERSION_STRING}"
233+
MACOSX_BUNDLE_LONG_VERSION_STRING "${TRANSLATOR_VERSION_STRING}"
234+
MACOSX_BUNDLE_ICON_FILE "translator.icns"
235+
CPACK_BUNDLE_NAME "Moondust Translator"
236+
MACOSX_BUNDLE_INFO_STRING "Episode and levels localization tool"
237+
)
238+
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/_resources/translator.icns" PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
239+
set_source_files_properties(${PGE_LANG_BIN_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources/languages")
240+
set_source_files_properties(${MOONDUST_QT_LANG_BIN_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources/languages")
241+
set_source_files_properties(${MOONDUST_QT_LANG_ICON_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources/languages")
242+
243+
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
244+
list(APPEND PGE_TRANSLATOR_LINK_LIBS ${COREFOUNDATION_LIBRARY})
245+
endif()
246+
247+
target_link_libraries(pge_translator
248+
${PGE_TRANSLATOR_LINK_LIBS}
249+
)
250+
251+
if(ENABLE_ADDRESS_SANITIZER)
252+
target_compile_options(pge_translator PRIVATE -fsanitize=address)
253+
target_link_options(pge_translator PRIVATE -fsanitize=address)
254+
endif()
255+
256+
pge_set_nopie(pge_translator)
257+
258+
install(TARGETS ${PGE_TRANSLATOR_INSTALLS}
259+
RUNTIME DESTINATION "${PGE_INSTALL_DIRECTORY}"
260+
BUNDLE DESTINATION "${PGE_INSTALL_DIRECTORY}"
261+
)
80.5 KB
Binary file not shown.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
TYPE="maintainer"
4+
5+
mkdir $TYPE".iconset"
6+
cp $TYPE"16.png" $TYPE".iconset/icon_16x16.png"
7+
sips -Z 32 $TYPE".iconset/icon_16x16.png" --out $TYPE".iconset/icon_16x16@2x.png"
8+
cp $TYPE"32.png" $TYPE".iconset/icon_32x32.png"
9+
sips -Z 64 $TYPE".iconset/icon_32x32.png" --out $TYPE".iconset/icon_32x32@2x.png"
10+
cp $TYPE"48.png" $TYPE".iconset/icon_48x48.png"
11+
sips -Z 96 $TYPE".iconset/icon_48x48.png" --out $TYPE".iconset/icon_48x48@2x.png"
12+
cp $TYPE"256.png" $TYPE".iconset/icon_256x256.png"
13+
cp $TYPE"256.png" $TYPE".iconset/icon_128x128@2x.png"
14+
sips -Z 512 $TYPE".iconset/icon_256x256.png" --out $TYPE".iconset/icon_256x256@2x.png"
15+
#sips -Z 512 $TYPE".iconset/icon_256x256.png" --out $TYPE".iconset/icon_512x512.png"
16+
sips -Z 128 $TYPE".iconset/icon_256x256.png" --out $TYPE".iconset/icon_128x128.png"
17+
18+
echo "makeIcon..."
19+
20+
iconutil -c icns "$TYPE.iconset"
21+
mv $TYPE".icns" ../
22+
23+
rm -Rf $TYPE".iconset"
24+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
# This script requires ImageMagick and icnsutils packages being installed
4+
5+
TYPE="translator"
6+
if [[ "$TYPE" == "" ]]; then
7+
echo "Error: empty name!"
8+
exit 1
9+
fi
10+
11+
mkdir $TYPE".iconset"
12+
cp $TYPE"16.png" $TYPE".iconset/icon_16x16.png"
13+
cp $TYPE"32.png" $TYPE".iconset/icon_32x32.png"
14+
# convert $TYPE".iconset/icon_32x32.png" -scale 64 $TYPE".iconset/icon_64x64.png"
15+
cp $TYPE"48.png" $TYPE".iconset/icon_48x48.png"
16+
# convert $TYPE".iconset/icon_48x48.png" -scale 96 $TYPE".iconset/icon_96x96.png"
17+
cp $TYPE"256.png" $TYPE".iconset/icon_256x256.png"
18+
convert $TYPE".iconset/icon_256x256.png" -scale 512 $TYPE".iconset/icon_512x512.png"
19+
convert $TYPE".iconset/icon_256x256.png" -scale 128 $TYPE".iconset/icon_128x128.png"
20+
21+
#convert $TYPE".iconset/icon_256x256.png" -scale 512 $TYPE".iconset/icon_256x256@2x.png"
22+
#sips -Z 512 $TYPE".iconset/icon_256x256.png" --out $TYPE".iconset/icon_256x256@2x.png"
23+
#sips -Z 512 $TYPE".iconset/icon_256x256.png" --out $TYPE".iconset/icon_512x512.png"
24+
#sips -Z 128 $TYPE".iconset/icon_256x256.png" --out $TYPE".iconset/icon_128x128.png"
25+
26+
#read -n 1
27+
28+
echo "makeIcon..."
29+
30+
png2icns $TYPE.icns $TYPE".iconset/icon_"*.png
31+
# mv $TYPE".icns" ../
32+
33+
rm -Rf $TYPE".iconset"
6.47 KB
Loading

0 commit comments

Comments
 (0)