Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Update API to reflect changes to CLI interaction #884

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ with composer.
composer require tractorcow/silverstripe-fluent ^5
```

* Run a `dev/build` to ensure all additional table fields have been generated
* Run `sake db:build --flush` to ensure all additional table fields have been generated
* Configure your locales in the `/admin/locales` section
* Publish pages in each of the locales you want them to be visible in

Expand Down
23 changes: 12 additions & 11 deletions docs/en/migrating-from-single-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ TractorCow\Fluent\Model\Locale:
URLSegment: en
```

When you run `dev/build?flush` again, this adds the records to the database if the locales table is still empty.
When you run `sake db:build --flush` again, this adds the records to the database if the locales table is still empty.

## Populating initial localised content for existing Pages and DataObjects in your default locale

Expand Down Expand Up @@ -63,32 +63,33 @@ publish your `Versioned` data (including Pages) from the commandline or queued a

1. Example: Localise all Pages (default, without publishing)

```
dev/tasks/initial-page-localisation-task
```sh
sake tasks:initial-page-localisation-task
```

2. Example: Localise & publish all Pages

```
dev/tasks/initial-page-localisation-task publish=1
```sh
sake tasks:initial-page-localisation-task --publish
```

3. Example: Localising Pages in batches can be done by using the `limit` option.
This will localise & publish five pages on each run.

```
dev/tasks/initial-page-localisation-task publish=1&limit=5
```sh
sake tasks:initial-page-localisation-task --publish --limit=5
```

4. Example: All the same functionality is available for localising all DataObjects, including `Versioned` and non-Versioned classes

```sh
sake tasks:initial-dataobject-localisation-task
```
dev/tasks/initial-dataobject-localisation-task
```

or

```
dev/tasks/initial-dataobject-localisation-task publish=1&limit=5
```sh
sake tasks:initial-dataobject-localisation-task --publish --limit=5
```

#### Customize your own initialisation dev task
Expand Down
222 changes: 0 additions & 222 deletions src/Task/ConvertTranslatableTask.php
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this because the translatable module hasn't been a thing for a really long time - it's time to remove this task.

This file was deleted.

23 changes: 0 additions & 23 deletions src/Task/ConvertTranslatableTask/Exception.php

This file was deleted.

Loading
Loading