pentatonicfunk / pot-similarity
One is too many string to translate
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:tools
Requires
- php: ^7.0
- gettext/gettext: 4.6.0
- symfony/console: 3.4.0
Requires (Dev)
- phpunit/phpunit: 6.5.11
- squizlabs/php_codesniffer: 3.3.1
- symfony/phpunit-bridge: 4.1.3
This package is not auto-updated.
Last update: 2025-03-29 11:19:28 UTC
README
Feeling too much string to translate ? do pre-scan with this.
Current Limitation
- Not handling any
context
, if you use__x()
on WordPress, take extra care on the results - Not handling any
plural
, if you use__n()
on Wordpress, take extra care on the results
Installation
# Globally
$ composer global require pentatonicfunk/pot-similarity:dev-master
# In your project
$ composer require --dev pentatonicfunk/pot-similarity:dev-master
Usage
# Globally
$ export PATH=~/.composer/vendor/bin:$PATH
$ pot-similarity find:similar /mnt/e/wsl/wpmudev-ms/wp-content/plugins/forminator/languages/forminator.pot 96
# In your project
$ ./vendor/bin/ pot-similarity find:similar /mnt/e/wsl/wpmudev-ms/wp-content/plugins/forminator/languages/forminator.pot 96
Arguments
- pot_path Path of the pot file
- threshold_percentage Thresehold Percentage of similar text [default: 70]
Troubleshoot
Memory limit
increase memory limit