exp:exploremipsumfill
Fill a translation of objects in a test language (Lorem Ipsum, qlo-ZZ) with lorem ipsum text (dry run unless --apply).
Script bin/php/exploremipsumfill.php, code in kernel/private/classes/commands/exploremipsumfill.php. Run it from the installation root, as the user the web server runs as:
./console exp:exploremipsumfill --help
./console exp:loremipsum --help
php bin/php/exploremipsumfill.php --helpHelp text
Fills the translation of objects in a test language with lorem ipsum text.
Text lines, text blocks, rich text and keywords get lorem ipsum; every other attribute keeps
the value of the language it is copied from. One published version per object. The language
must be a test language (TestLanguage=true in its share/locale file) and already added on
Setup > Languages; the command never adds one.
Without --apply nothing is written: the command prints what it would write. --dry-run means
the same as no flag; --apply together with --dry-run is a usage error (exit 2).
php bin/php/exploremipsumfill.php <object id>[,...] [--apply]
php bin/php/exploremipsumfill.php --subtree=<node id> [--limit=50] [--apply]
./console exp:loremipsum <object id> --language=qlo-ZZ --from=eng-GB --apply
Exit code: 0 done (or a dry run), 1 refused or failed, 2 usage error.
Guide: doc/eng-us/guides/test-language-lorem-ipsum.mdOptions
| Option | Value | Help |
|---|---|---|
--apply | ||
--dry-run | ||
--language | required | the test language to fill (default: |
--from | required | |
--subtree | required | |
--limit | required |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Arguments: [OBJECTS].
Related
Generated by ./console exp:help:examples from bin/php/exploremipsumfill.php, kernel/private/classes/commands/exploremipsumfill.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.