208 Commits

Author SHA1 Message Date
Ilia Rostovtsev
349b2626ce Add an option to transcode to new format only and exit 2020-03-02 11:58:34 +03:00
Ilia Rostovtsev
ed51fca37f Renamed script, and now delete old 2020-03-02 00:33:04 +03:00
Ilia Rostovtsev
4bba8eec6a On error just try again automatically 2020-03-02 00:27:21 +03:00
Ilia Rostovtsev
34b64f9cf4 Renamed to language-manager 2020-03-01 21:06:49 +03:00
Ilia Rostovtsev
16534cd47d Add ability to test and exclude keys from translation 2020-03-01 21:05:59 +03:00
Ilia Rostovtsev
65f4b7483c Add ability to ignore keys 2020-03-01 18:51:23 +03:00
Ilia Rostovtsev
6fc8a59b88 Really return translated value on error 2020-03-01 16:08:14 +03:00
Ilia Rostovtsev
8fe291a235 Add ability to exclude human translated languages; fix regexps 2020-03-01 15:40:00 +03:00
Ilia Rostovtsev
03640725b3 Change invalid encoding for he lang 2020-03-01 12:48:06 +03:00
Ilia Rostovtsev
2e377b5140 Don't fail on translator error; add exclude target languages option 2020-03-01 03:02:06 +03:00
Ilia Rostovtsev
8b5ae4f3a1 Reduce token check time to avoid expirations 2020-02-29 22:34:25 +03:00
Ilia Rostovtsev
16d938b8ed Fix another uninitialized value warning 2020-02-29 22:00:41 +03:00
Ilia Rostovtsev
afe732e975 Preserve original string formatting - text : or text : $1 2020-02-29 21:43:34 +03:00
Ilia Rostovtsev
23f50510c4 Preserve dates example formatting 2020-02-29 21:09:28 +03:00
Ilia Rostovtsev
bac28ccd35 Preserve inner formatting for tag's attrs 2020-02-29 20:48:46 +03:00
Ilia Rostovtsev
59c3c014f2 Fix another uninitialized value warning 2020-02-29 19:56:19 +03:00
Ilia Rostovtsev
d428cbeb1e Fix uninitialized value warning 2020-02-29 19:55:04 +03:00
Ilia Rostovtsev
359e47a332 Fix type uninitialized error 2020-02-29 19:49:03 +03:00
Ilia Rostovtsev
4c4bb4fa97 Fix to update start time 2020-02-29 01:31:19 +03:00
Ilia Rostovtsev
9fd353a857 Unescape single quotes 2020-02-29 00:47:12 +03:00
Ilia Rostovtsev
33fed8d5ed Quote path for Google Translate to prevent translation logic corruption
.. unless path is quoted, the translation results are broken for some languages. It's obviously Goole Translate bug that we need to work around.
2020-02-29 00:24:37 +03:00
Ilia Rostovtsev
c301989c9f Auch, "quantifier" cannot be "greedy" - retranslating the last .. 2020-02-28 23:33:29 +03:00
Ilia Rostovtsev
62ca456cfa Fix missing $opt ref 2020-02-28 23:25:35 +03:00
Ilia Rostovtsev
c90848b59a Translate module info always using HTML format
This is all very tricky and hacky - we need to preserve the path that can be wrapped to span with notranslate attr, and while `module.info` strings doesn't have any extra HTML it will work just fine
2020-02-28 23:14:45 +03:00
Ilia Rostovtsev
27dde7c488 This time update GT API token properly 2020-02-28 21:43:17 +03:00
Ilia Rostovtsev
38cc53cc71 Update GT API token properly 2020-02-28 21:42:25 +03:00
Ilia Rostovtsev
9ef21468db Remove all spaces from path when broken by translator 2020-02-28 21:37:02 +03:00
Ilia Rostovtsev
aa6adca01d Fix to preserve paths in string as it is, e.g. /etc/rpc 2020-02-28 21:17:19 +03:00
Ilia Rostovtsev
82b4bde6b4 Add token expiration check and module exclude option 2020-02-28 20:45:44 +03:00
Ilia Rostovtsev
039b23958c Fix to reduce the rate to prenent 503 error 2020-02-28 16:38:17 +03:00
Ilia Rostovtsev
42ae9658e3 Language Transform: All modules transcode (config) to new UTF-8 format 2020-02-28 16:08:10 +03:00
Ilia Rostovtsev
908ddfaa61 Print error clearly 2020-02-28 15:56:53 +03:00
Ilia Rostovtsev
3d9c809a16 Try first if encoding works out for decode sub 2020-02-28 15:53:19 +03:00
Ilia Rostovtsev
aba0337d24 Fix to support module and config types for mass operations 2020-02-28 15:34:14 +03:00
Ilia Rostovtsev
09a5ba06cf Fix regex for translated strings 2020-02-28 02:57:21 +03:00
Ilia Rostovtsev
c2006d1dfa Language Transform: Add manipulate-language main script
This is the first version of the script which at the moment can only do bulk transcoding/translate for given or all modules/languages. Add/remove and spell check functionality is coming in the near future.
Run `manipulate-language -h` for more details.
2020-02-28 00:50:08 +03:00
Joe Cooper
d2d3a912cd Dead code 2018-11-17 04:17:34 -06:00
Joe Cooper
0d8f5b1907 Oops, remove dead code 2018-11-17 04:15:34 -06:00
Joe Cooper
11bafbf540 Make --help work either before or after subcommand 2018-11-16 20:55:25 -06:00
Joe Cooper
f42e860a97 Pager on --man 2018-11-16 20:13:54 -06:00
Joe Cooper
3709c33834 Move disable-twofactor back to base dir 2018-11-16 17:08:23 -06:00
Joe Cooper
12a8683be3 Add disable-twofactor, which probably works 2018-11-15 22:41:07 -06:00
Joe Cooper
587acc2ac4 Added --man option for manpage 2018-11-15 20:32:49 -06:00
Joe Cooper
1a6cd46975 typo 2018-11-15 03:31:33 -06:00
Joe Cooper
72df582043 disable-proxy and typo 2018-11-15 03:22:28 -06:00
Joe Cooper
7f5e7fb753 disable-proxy added 2018-11-15 02:46:28 -06:00
Joe Cooper
3a20762df1 POD updates 2018-11-15 01:45:17 -06:00
Joe Cooper
f733f93c58 enable-proxy command, fix missing =back in pods 2018-11-15 01:39:02 -06:00
Joe Cooper
004bda9992 Don't include webmin in list-commands 2018-11-14 22:15:14 -06:00
Joe Cooper
b8ba96ca94 List commands with describe option added 2018-11-14 21:36:10 -06:00