Skip to main content

With jdReplace you can replace a text in all files of a directory

Project description

jdReplace

With jdReplace you can replace a text in all files of a directorys

jdReplace

jdReplace is a simple mass search and replace tool. You set a directory, a text to replace, the replacement and click OK. jdReplace will do the rest.

Install

Flatpak

You can get jdReplace from Flathub

AUR

Arch Users can get jdReplace from the AUR

pip

You can install jdReplace from PyPI using pip:

pip install jdReplace

Using this Method, it will not include a Desktop Entry or any other Data file, so you need to run jdReplace from the Command Line. Use this only, when nothing else works.

From source

This is only for experienced Users and someone, who wants to package jdReplace for a Distro. jdReplaceshould be installed as a Python package. You can use pip or any other tool that can handle Python packages. You need to have lrelease installed to build the Package. After that, you should run install-unix-datafiles.py which wil install things like the Desktop Entry or the Icon in the correct place. It defaults to /usr, but you can change it with the --prefix argument. It also applies the translation to this files. You need gettext installed to run install-unix-datafiles.py.

Here's a example of installing jdReplace into /usr/local:

sudo pip install --prefix /usr/local .
sudo ./install-unix-datafiles.py --prefix /usr/local

Translate

You can help translating jdReplace on Codeberg Translate

Develop

jdReplaceis written in Python and uses PyQt6 as GUI toolkit. You should have some experience in both. You can run jdReplace.pyto start jdReplace from source and test your local changes. It ships with a few scripts in the tools directory that you need to develop.

BuildTranslations.py

This script takes all .ts files and compiles it to .qm files. The .ts files are containing the translation source and are being used during the translation process. The .qm contains the compiled translation and are being used by the Program. You need to compile a .ts file to a .qm file to see the translations in the Program.

UpdateTranslations.py

This regenerates the .ts files. You need to run it, when you changed something in the source code. The .ts files are contains the line in the source, where the string to translate appears, so make sure you run it even when you don't changed a translatable string, so the location is correct.

UpdateUnixDataTranslations.py

This regenerates the translation files in deploy/translations. these files contains the translations for the Desktop Entry and the AppStream File. It uses gettext, as it is hard to translate this using Qt. These files just exists to integrate the translation with Weblate, because Weblate can't translate the Desktop Entry and the AppStream file. Make sure you run this when you edited one of these files. You need to have gettext installed to use it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jdreplace-4.3.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jdReplace-4.3-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

Details for the file jdreplace-4.3.tar.gz.

File metadata

  • Download URL: jdreplace-4.3.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for jdreplace-4.3.tar.gz
Algorithm Hash digest
SHA256 1c4a8babb65a848176d841e038a17acdf84b314b1a861e6a7cf0102a6f1dca7b
MD5 3d0841d66cdd147c0453b7033ca5a70d
BLAKE2b-256 985604114eb30c7e3b9f130ec54e1b0f56bdde54a865a7a7acb4bccb1c74c156

See more details on using hashes here.

File details

Details for the file jdReplace-4.3-py3-none-any.whl.

File metadata

  • Download URL: jdReplace-4.3-py3-none-any.whl
  • Upload date:
  • Size: 29.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for jdReplace-4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9a119706670fcd83fb594f9e81c6b227deabbf62ecd21a20d15ba954b595d467
MD5 24ea3008174f3f939e0f8101d103edb5
BLAKE2b-256 10b340c916fa943b414c17155770a42017159a8da12d4792cd1b3e7d7e8fc28a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page