exp:exploremipsumfill
Füllt eine Übersetzung von Objekten in einer Testsprache (Lorem Ipsum, qlo-ZZ) mit Lorem-ipsum-Text (Probelauf, außer mit --apply).
Skript bin/php/exploremipsumfill.php, Code in kernel/private/classes/commands/exploremipsumfill.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:
./console exp:exploremipsumfill --help
./console exp:loremipsum --help
php bin/php/exploremipsumfill.php --helpHilfetext
Was --help ausgibt, so wie der Befehl es schreibt:
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.mdOptionen
| Option | Wert | Hilfe |
|---|---|---|
--apply | ||
--dry-run | ||
--language | erforderlich | die zu füllende Testsprache (Standard: |
--from | erforderlich | |
--subtree | erforderlich | |
--limit | erforderlich |
Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Argumente: [OBJECTS].
Siehe auch
Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/exploremipsumfill.php, kernel/private/classes/commands/exploremipsumfill.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.