-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Script for Updating Custom Dictionary with Words from .po
Files
#574
Closed
mgiannopoulos24
wants to merge
96
commits into
pygreece:3.12
from
mgiannopoulos24:feature/add-to-dictionary-script
Closed
Add Script for Updating Custom Dictionary with Words from .po
Files
#574
mgiannopoulos24
wants to merge
96
commits into
pygreece:3.12
from
mgiannopoulos24:feature/add-to-dictionary-script
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Translated distributing/index.po * Update index.po * Update index.po * [pre-commit.ci lite] apply automatic fixes --------- Co-authored-by: = <=> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: skpanagiotis <panagiotis.skias@gmail.com>
…om/mgiannopoulos24/python-docs-gr into translate/reference-executionmodel
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
Co-authored-by: Panagiotis Skias <panagiotis.skias@gmail.com>
…om/mgiannopoulos24/python-docs-gr into translate/reference-executionmodel
…-dictionary-script
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Περιγραφή του PR
Αυτό το script προσφέρει μια αυτοματοποιημένη διαδικασία ενημέρωσης του custom λεξικού
main.txt
με νέες λέξεις που εξάγονται από αρχεία.po
. Το script:.po
για να εντοπίσει μοναδικές ελληνικές και αγγλικές λέξεις, αγνοώντας metadata γραμμές (π.χ. γραμμές που ξεκινούν με#:
).main.txt
, το οποίο βρίσκεται στον φάκελοdictionaries/
.Χαρακτηριστικά
main.txt
αν δεν υπάρχει ήδη.msgstr
εγγραφών στα.po
αρχεία.Τρόπος Χρήσης
python scripts/add_to_dictionary.py <file_path>
Παράδειγμα
python scripts/add_to_dictionary.py translations/el.po
Λίστα Εργασιών