3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Fix Incorrect translation placeholders for asset names #540

This commit is contained in:
Michael Stenta 2022-08-29 09:36:32 -04:00
parent a63e8a9683
commit 948a873f59
4 changed files with 6 additions and 5 deletions

View file

@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Fix for Autocomplete dropdown not showing in Chrome on Android #552](https://github.com/farmOS/farmOS/issues/552)
- [Uncaught (in promise) TypeError: instance.editAttached is undefined #550](https://github.com/farmOS/farmOS/issues/550)
- [Map form element #required is not enforced #560](https://github.com/farmOS/farmOS/issues/560)
- [Incorrect translation placeholders for asset names #540](https://github.com/farmOS/farmOS/issues/540)
## [2.0.0-beta6] 2022-07-30

View file

@ -204,7 +204,7 @@ class AssetGroupActionForm extends ConfirmFormBase {
// Generate a name for the log.
$asset_names = farm_log_asset_names_summary($accessible_entities);
$group_names = farm_log_asset_names_summary($groups);
$log_name = $this->t('Group :assets into :groups', [':assets' => $asset_names, ':groups' => $group_names]);
$log_name = $this->t('Group @assets into @groups', ['@assets' => $asset_names, '@groups' => $group_names]);
// Create the log.
$log = Log::create([

View file

@ -223,7 +223,7 @@ class AssetMoveActionForm extends ConfirmFormBase {
// Generate a name for the log.
$asset_names = farm_log_asset_names_summary($accessible_entities);
$location_names = farm_log_asset_names_summary($locations);
$log_name = $this->t('Move :assets to :locations', [':assets' => $asset_names, ':locations' => $location_names]);
$log_name = $this->t('Move @assets to @locations', ['@assets' => $asset_names, '@locations' => $location_names]);
// Create the log.
$log = Log::create([

View file

@ -527,15 +527,15 @@ class Planting extends QuickFormBase {
// Name the log based on the type and asset.
switch ($log_type) {
case 'seeding':
$log_name = $this->t('Seed :asset', [':asset' => $plant_asset->label()]);
$log_name = $this->t('Seed @asset', ['@asset' => $plant_asset->label()]);
break;
case 'transplanting':
$log_name = $this->t('Transplant :asset', [':asset' => $plant_asset->label()]);
$log_name = $this->t('Transplant @asset', ['@asset' => $plant_asset->label()]);
break;
case 'harvest':
$log_name = $this->t('Harvest :asset', [':asset' => $plant_asset->label()]);
$log_name = $this->t('Harvest @asset', ['@asset' => $plant_asset->label()]);
break;
}