pentatonicfunk / pot-similarity

字符串过多,无法全部翻译

dev-master 2018-08-13 07:14 UTC

This package is not auto-updated.

Last update: 2024-09-28 09:07:18 UTC


README

Build Status Code Coverage

感觉字符串太多难以翻译?请使用此进行预扫描。

当前限制

  • 不处理任何上下文,如果你在WordPress中使用__x(),请注意结果
  • 不处理任何复数,如果你在WordPress中使用__n(),请注意结果

安装

# Globally
$ composer global require pentatonicfunk/pot-similarity:dev-master

# In your project
$ composer require --dev pentatonicfunk/pot-similarity:dev-master

使用

# 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

参数

- pot_path              Path of the pot file
- threshold_percentage  Thresehold Percentage of similar text [default: 70]

故障排除

内存限制

increase memory limit