diff --git a/build.py b/build.py index 0b8c9a90..6c137030 100644 --- a/build.py +++ b/build.py @@ -8,6 +8,7 @@ from pathlib import Path import sys from optparse import OptionParser import shutil +from multiprocessing import Pool from setuptools import sandbox from hscommon import sphinxgen @@ -28,7 +29,8 @@ def parse_args(): dest="clean", help="Clean build folder before building", ) - parser.add_option("--doc", action="store_true", dest="doc", help="Build only the help file") + parser.add_option("--doc", action="store_true", dest="doc", help="Build only the help file (en)") + parser.add_option("--alldoc", action="store_true", dest="all_doc", help="Build only the help file in all languages") parser.add_option("--loc", action="store_true", dest="loc", help="Build only localization") parser.add_option( "--updatepot", @@ -58,16 +60,16 @@ def parse_args(): return options -def build_help(): - print("Generating Help") +def build_one_help(language): + print("Generating Help in {}".format(language)) current_path = Path(".").absolute() - help_basepath = current_path.joinpath("help", "en") - help_destpath = current_path.joinpath("build", "help") changelog_path = current_path.joinpath("help", "changelog") tixurl = "https://github.com/arsenetar/dupeguru/issues/{}" - confrepl = {"language": "en"} changelogtmpl = current_path.joinpath("help", "changelog.tmpl") conftmpl = current_path.joinpath("help", "conf.tmpl") + help_basepath = current_path.joinpath("help", language) + help_destpath = current_path.joinpath("build", "help", language) + confrepl = {"language": language} sphinxgen.gen( help_basepath, help_destpath, @@ -79,6 +81,13 @@ def build_help(): ) +def build_help(): + languages = ["en", "de", "fr", "hy", "ru", "uk"] + # Running with Pools as for some reason sphinx seems to cross contaminate the output otherwise + with Pool(len(languages)) as p: + p.map(build_one_help, languages) + + def build_qt_localizations(): loc.compile_all_po(Path("qtlib", "locale")) loc.merge_locale_dir(Path("qtlib", "locale"), "locale") @@ -149,6 +158,8 @@ def main(): if not Path("build").exists(): Path("build").mkdir() if options.doc: + build_one_help("en") + elif options.all_doc: build_help() elif options.loc: build_localizations() diff --git a/help/de/faq.rst b/help/de/faq.rst index 5495bfa4..57c32969 100644 --- a/help/de/faq.rst +++ b/help/de/faq.rst @@ -1,7 +1,7 @@ Häufig gestellte Fragen ========================== -.. topic:: What is |appname|? +.. topic:: What is dupeGuru? .. only:: edition_se @@ -25,7 +25,7 @@ Häufig gestellte Fragen .. topic:: Was sind die Demo-Einschränkungen von dupeGuru? - Keine, |appname| ist `Fairware `_. + Keine, dupeGuru ist `Fairware `_. .. topic:: Die Markierungsbox einer Datei, die ich löschen möchte, ist deaktiviert. Was muss ich tun? diff --git a/help/de/index.rst b/help/de/index.rst index b57bb174..7c1a5fc4 100644 --- a/help/de/index.rst +++ b/help/de/index.rst @@ -1,21 +1,13 @@ -|appname| Hilfe +dupeGuru Hilfe =============== .. only:: edition_se - Dieses Dokument ist auch auf `Englisch `__ und `Französisch `__ verfügbar. - -.. only:: edition_me - - Dieses Dokument ist auch auf `Englisch `__ und `Französisch `__ verfügbar. - -.. only:: edition_pe - - Dieses Dokument ist auch auf `Englisch `__ und `Französisch `__ verfügbar. + Dieses Dokument ist auch auf `Englisch `__ und `Französisch `__ verfügbar. .. only:: edition_se or edition_me - |appname| ist ein Tool zum Auffinden von Duplikaten auf Ihrem Computer. Es kann entweder Dateinamen oder Inhalte scannen. Der Dateiname-Scan stellt einen lockeren Suchalgorithmus zur Verfügung, der sogar Duplikate findet, die nicht den exakten selben Namen haben. + dupeGuru ist ein Tool zum Auffinden von Duplikaten auf Ihrem Computer. Es kann entweder Dateinamen oder Inhalte scannen. Der Dateiname-Scan stellt einen lockeren Suchalgorithmus zur Verfügung, der sogar Duplikate findet, die nicht den exakten selben Namen haben. .. only:: edition_pe @@ -23,7 +15,7 @@ Obwohl dupeGuru auch leicht ohne Dokumentation genutzt werden kann, ist es sinnvoll die Hilfe zu lesen. Wenn Sie nach einer Führung für den ersten Duplikatscan suchen, werfen Sie einen Blick auf die :doc:`Schnellstart ` Sektion -Es ist eine gute Idee |appname| aktuell zu halten. Sie können die neueste Version auf der `homepage`_ finden. +Es ist eine gute Idee dupeGuru aktuell zu halten. Sie können die neueste Version auf der http://dupeguru.voltaicideas.net finden. Inhalte: diff --git a/help/en/contribute.rst b/help/en/contribute.rst index f0e46c70..a529fa52 100644 --- a/help/en/contribute.rst +++ b/help/en/contribute.rst @@ -83,9 +83,9 @@ dupeGuru. For more information about how to do that, you can refer to the `trans .. _been open source: https://www.hardcoded.net/articles/free-as-in-speech-fair-as-in-trade .. _let me know: mailto:hsoft@hardcoded.net -.. _Source code repository: https://github.com/hsoft/dupeguru -.. _Issue Tracker: https://github.com/hsoft/dupeguru/issues -.. _Issue labels meaning: https://github.com/hsoft/dupeguru/wiki/issue-labels +.. _Source code repository: https://github.com/arsenetar/dupeguru +.. _Issue Tracker: https://github.com/hsoft/arsenetar/issues +.. _Issue labels meaning: https://github.com/hsoft/arsenetar/wiki/issue-labels .. _Sphinx: http://sphinx-doc.org/ .. _reST: http://en.wikipedia.org/wiki/ReStructuredText -.. _translator guide: https://github.com/hsoft/dupeguru/wiki/Translator-Guide +.. _translator guide: https://github.com/hsoft/arsenetar/wiki/Translator-Guide diff --git a/help/en/developer/hscommon/jobprogress/qt.rst b/help/en/developer/hscommon/jobprogress/qt.rst deleted file mode 100644 index e7fd1df5..00000000 --- a/help/en/developer/hscommon/jobprogress/qt.rst +++ /dev/null @@ -1,12 +0,0 @@ -hscommon.jobprogress.qt -======================= - -.. automodule:: hscommon.jobprogress.qt - - .. autosummary:: - - Progress - - .. autoclass:: Progress - :members: - diff --git a/help/en/faq.rst b/help/en/faq.rst index 1fe9da40..49b5028b 100644 --- a/help/en/faq.rst +++ b/help/en/faq.rst @@ -151,8 +151,6 @@ delete files" option that is offered to you when you activate Send to Trash. Thi files to the Trash, but delete them immediately. In some cases, for example on network storage (NAS), this has been known to work when normal deletion didn't. -If this fail, `HS forums`_ might be of some help. - Why is Picture mode's contents scan so slow? -------------------------------------------- @@ -178,7 +176,6 @@ Preferences are stored elsewhere: * Linux: ``~/.config/Hardcoded Software/dupeGuru.conf`` * Mac OS X: In the built-in ``defaults`` system, as ``com.hardcoded-software.dupeguru`` -.. _HS forums: https://forum.hardcoded.net/ -.. _Github: https://github.com/hsoft/dupeguru -.. _open an issue: https://github.com/hsoft/dupeguru/wiki/issue-labels +.. _Github: https://github.com/arsenetar/dupeguru +.. _open an issue: https://github.com/arsenetar/dupeguru/wiki/issue-labels diff --git a/help/en/index.rst b/help/en/index.rst index bda31538..97c345fa 100644 --- a/help/en/index.rst +++ b/help/en/index.rst @@ -3,11 +3,11 @@ dupeGuru help This help document is also available in these languages: -* `French `__ -* `German `__ -* `Armenian `__ -* `Russian `__ -* `Ukrainian `__ +* `French `__ +* `German `__ +* `Armenian `__ +* `Russian `__ +* `Ukrainian `__ dupeGuru is a tool to find duplicate files on your computer. It has three modes, Standard, Music and Picture, with each mode having its own scan types @@ -42,4 +42,4 @@ Indices and tables * :ref:`genindex` * :ref:`search` -.. _homepage: https://www.hardcoded.net/dupeguru +.. _homepage: https://dupeguru.voltaicideas.net/ diff --git a/help/fr/faq.rst b/help/fr/faq.rst index 9b1c18c7..f8eae327 100644 --- a/help/fr/faq.rst +++ b/help/fr/faq.rst @@ -3,7 +3,7 @@ Foire aux questions .. contents:: -Qu'est-ce que |appname|? +Qu'est-ce que dupeGuru? ------------------------ .. only:: edition_se diff --git a/help/fr/index.rst b/help/fr/index.rst index 5da7bed9..66898fb9 100644 --- a/help/fr/index.rst +++ b/help/fr/index.rst @@ -1,21 +1,13 @@ -Aide |appname| +Aide dupeGuru =============== .. only:: edition_se - Ce document est aussi disponible en `anglais `__, en `allemand `__ et en `arménien `__. - -.. only:: edition_me - - Ce document est aussi disponible en `anglais `__, en `allemand `__ et en `arménien `__. - -.. only:: edition_pe - - Ce document est aussi disponible en `anglais `__, en `allemand `__ et en `arménien `__. + Ce document est aussi disponible en `anglais `__, en `allemand `__ et en `arménien `__. .. only:: edition_se or edition_me - |appname| est un outil pour trouver des doublons parmi vos fichiers. Il peut comparer soit les noms de fichiers, soit le contenu. Le comparateur de nom de fichier peut trouver des doublons même si les noms ne sont pas exactement pareils. + dupeGuru est un outil pour trouver des doublons parmi vos fichiers. Il peut comparer soit les noms de fichiers, soit le contenu. Le comparateur de nom de fichier peut trouver des doublons même si les noms ne sont pas exactement pareils. .. only:: edition_pe @@ -23,7 +15,7 @@ Aide |appname| Bien que dupeGuru puisse être utilisé sans lire l'aide, une telle lecture vous permettra de bien comprendre comment l'application fonctionne. Pour un guide rapide pour une première utilisation, référez vous à la section :doc:`Démarrage Rapide `. -C'est toujours une bonne idée de garder |appname| à jour. Vous pouvez télécharger la dernière version sur sa `page web`_. +C'est toujours une bonne idée de garder dupeGuru à jour. Vous pouvez télécharger la dernière version sur sa http://dupeguru.voltaicideas.net. Contents: diff --git a/help/hy/faq.rst b/help/hy/faq.rst index f29d656a..eeb42dea 100644 --- a/help/hy/faq.rst +++ b/help/hy/faq.rst @@ -1,7 +1,7 @@ Հաճախ Տրվող Հարցեր ========================== -.. topic:: Ի՞նչ է |appname|-ը: +.. topic:: Ի՞նչ է dupeGuru-ը: .. only:: edition_se diff --git a/help/hy/index.rst b/help/hy/index.rst index 1f0efcc3..2a86b6fb 100644 --- a/help/hy/index.rst +++ b/help/hy/index.rst @@ -1,21 +1,13 @@ -|appname| help +dupeGuru help =============== .. only:: edition_se - Այս փաստաթուղթը հասանելի է նաև՝ `Ֆրանսերեն `__ և `Գերմաներեն `__. - -.. only:: edition_me - - Այս փաստաթուղթը հասանելի է նաև՝ `Ֆրանսերեն `__ և `Գերմաներեն `__. - -.. only:: edition_pe - - Այս փաստաթուղթը հասանելի է նաև՝ `Ֆրանսերեն `__ և `Գերմաներեն `__. + Այս փաստաթուղթը հասանելի է նաև՝ `Ֆրանսերեն `__ և `Գերմաներեն `__. .. only:: edition_se or edition_me - |appname| ծրագիր է՝ գտնելու կրկնօրինակ ունեցող ֆայլեր Ձեր համակարգչում: Այն կարող է անգամ ստուգել ֆայլի անունները կան բովանդակությունը: Ֆայլի անվան ստուգման հնարավորությունները ոչ ճշգրիտ համընկման ալգորիթմով, որը կարող է գտնել ֆայլի անվան կրկնօրինակներ, անգամ եթե դրանք նույնը չեն: + dupeGuru ծրագիր է՝ գտնելու կրկնօրինակ ունեցող ֆայլեր Ձեր համակարգչում: Այն կարող է անգամ ստուգել ֆայլի անունները կան բովանդակությունը: Ֆայլի անվան ստուգման հնարավորությունները ոչ ճշգրիտ համընկման ալգորիթմով, որը կարող է գտնել ֆայլի անվան կրկնօրինակներ, անգամ եթե դրանք նույնը չեն: .. only:: edition_pe @@ -23,7 +15,7 @@ Չնայած dupeGuru-ն կարող է հեշտությամբ օգտագործվել առանց օգնության, այնուհանդերձ եթե կարդաք այս ֆայլը, այն մեծապես կօգնի Ձեզ ընկալելու ծրագրի աշխատանքը: Եթե Դուք նայում եք ձեռնարկը կրկնօրինակների առաջին ստուգման համար, ապա կարող եք ընտրել :doc:`Արագ Սկիզբ ` հատվածը: -Շատ լավ միտք է պահելու |appname| թարմացված: Կարող եք բեռնել վեբ կայքի համապատասխան էջից `homepage`_: +Շատ լավ միտք է պահելու dupeGuru թարմացված: Կարող եք բեռնել վեբ կայքի համապատասխան էջից http://dupeguru.voltaicideas.net: Պարունակությունը. diff --git a/help/ru/faq.rst b/help/ru/faq.rst index fc46448e..e31d119f 100644 --- a/help/ru/faq.rst +++ b/help/ru/faq.rst @@ -1,7 +1,7 @@ Часто задаваемые вопросы ========================== -.. topic:: Что такое |appname|? +.. topic:: Что такое dupeGuru? .. only:: edition_se diff --git a/help/ru/index.rst b/help/ru/index.rst index cdde11f9..fdec2c46 100644 --- a/help/ru/index.rst +++ b/help/ru/index.rst @@ -1,21 +1,11 @@ -|appname| help +dupeGuru help =============== -.. only:: edition_se - - Этот документ также доступна на `французском `__, `немецком `__ и `армянский `__. - -.. only:: edition_me - - Этот документ также доступна на `французском `__, `немецкий `__ и `армянский `__. - -.. only:: edition_pe - - Этот документ также доступна на `французском `__, `немецкий `__ и `армянский `__. +Этот документ также доступна на `французском `__, `немецком `__ и `армянский `__. .. only:: edition_se or edition_me - |appname| есть инструмент для поиска дубликатов файлов на вашем компьютере. Он может сканировать либо имен файлов или содержимого.Имя файла функций сканирования нечеткого соответствия алгоритма, который позволяет найти одинаковые имена файлов, даже если они не совсем то же самое. + dupeGuru есть инструмент для поиска дубликатов файлов на вашем компьютере. Он может сканировать либо имен файлов или содержимого.Имя файла функций сканирования нечеткого соответствия алгоритма, который позволяет найти одинаковые имена файлов, даже если они не совсем то же самое. .. only:: edition_pe @@ -23,7 +13,7 @@ Хотя dupeGuru может быть легко использована без документации, чтение этого файла поможет вам освоить его. Если вы ищете руководство для вашей первой дублировать сканирования, вы можете взглянуть на раздел :doc:`Быстрый ` Начало. -Это хорошая идея, чтобы сохранить |appname| обновлен. Вы можете скачать последнюю версию на своей `homepage`_. +Это хорошая идея, чтобы сохранить dupeGuru обновлен. Вы можете скачать последнюю версию на своей http://dupeguru.voltaicideas.net. Содержание: .. toctree:: diff --git a/help/uk/faq.rst b/help/uk/faq.rst index 2f107488..cf685d5f 100644 --- a/help/uk/faq.rst +++ b/help/uk/faq.rst @@ -1,7 +1,7 @@ Часті питання ========================== -.. topic:: Що таке |appname|? +.. topic:: Що таке dupeGuru? .. only:: edition_se diff --git a/help/uk/index.rst b/help/uk/index.rst index 3b0536c4..26f49dc9 100644 --- a/help/uk/index.rst +++ b/help/uk/index.rst @@ -1,21 +1,13 @@ -|appname| help +dupeGuru help =============== .. only:: edition_se - Цей документ також доступна на `французькому `__, `німецький `__ і `Вірменський `__. - -.. only:: edition_me - - Цей документ також доступна на `французькому `__, `німецький `__ і `Вірменський `__. - -.. only:: edition_pe - - Цей документ також доступна на `французькому `__, `німецький `__ і `Вірменський `__. + Цей документ також доступна на `французькому `__, `німецький `__ і `Вірменський `__. .. only:: edition_se or edition_me - |appname| це інструмент для пошуку дублікатів файлів на вашому комп'ютері. Він може сканувати або імен файлів або вмісту. Файл функцій сканування нечіткого відповідності алгоритму, який дозволяє знайти однакові імена файлів, навіть якщо вони не зовсім те ж саме. + dupeGuru це інструмент для пошуку дублікатів файлів на вашому комп'ютері. Він може сканувати або імен файлів або вмісту. Файл функцій сканування нечіткого відповідності алгоритму, який дозволяє знайти однакові імена файлів, навіть якщо вони не зовсім те ж саме. .. only:: edition_pe @@ -23,7 +15,7 @@ Хоча dupeGuru може бути легко використана без документації, читання цього файлу допоможе вам освоїти його. Якщо ви шукаєте керівництво для вашої першої дублювати сканування, ви можете поглянути на: :doc:`Quick Start ` -Це гарна ідея, щоб зберегти |appname| оновлено. Ви можете завантажити останню версію на своєму `homepage`_. +Це гарна ідея, щоб зберегти dupeGuru оновлено. Ви можете завантажити останню версію на своєму http://dupeguru.voltaicideas.net. Contents: diff --git a/package.py b/package.py index 1b1d5aaf..879ed053 100644 --- a/package.py +++ b/package.py @@ -226,8 +226,7 @@ def main(): return print("Packaging dupeGuru with UI qt") if sys.platform == "win32": - package_debian() - # package_windows() + package_windows() elif sys.platform == "darwin": package_macos() else: