Skip to the content
Documentation

exp:exploremipsumfill

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

Fill a translation of objects in a test language (Lorem Ipsum, qlo-ZZ) with lorem ipsum text (dry run unless --apply)

Usage

./console exp:exploremipsumfill [options]
php bin/php/exploremipsumfill.php [options]
./console exp:loremipsum [options]

Aliases

exp:loremipsum

Help

The output of ./console help exp:exploremipsumfill (the script run with --help), without the standard options:

Usage: bin/php/exploremipsumfill.php [OPTION]... [OBJECTS]
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.md


Options:
  --apply           write and publish the translations (the default is a dry run that prints them)
  --dry-run         the default: print what would be written, change nothing
  --language=VALUE  the test language to fill (default: qlo-ZZ)
  --from=VALUE      the language to copy the other attributes from (default: the object's main language)
  --subtree=VALUE   every object below this node, the node's own object included
  --limit=VALUE     with --subtree: at most this many objects (default 50)

Options

Option Value Description
--apply -  
--dry-run -  
--language required the test language to fill (default:
--from required  
--subtree required  
--limit required  

Arguments

[OBJECTS]

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/exploremipsumfill.php, kernel/private/classes/commands/exploremipsumfill.php

See also

Generated example: exp:exploremipsumfill

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.