@@ -67,35 +69,35 @@ class ExifSettingsForm extends ConfigFormBase implements ContainerInjectionInter
$form['information1']=[
'#type'=>'item',
'#title'=>'Informations',
'#markup'=>t('If you have not create a media/content type for your photographies').', '.t('take a look at <a href="/admin/config/media/exif/helper">the quick start page</a>.'),
'#markup'=>$this->t('If you have not create a media/content type for your photographies, take a look at <a href="/admin/config/media/exif/helper">the quick start page</a>.'),
];
$form['information2']=[
'#type'=>'item',
'#title'=>'',
'#markup'=>t('To have a sample of metadata content, take a look at <a href="/admin/config/media/exif/sample">the sample page</a>.'),
'#markup'=>$this->t('To have a sample of metadata content, take a look at <a href="/admin/config/media/exif/sample">the sample page</a>.'),
];
$form['exif']=[
'#type'=>'vertical_tabs',
'#prefix'=>'<div class="exif">',
'#suffix'=>'</div>',
'#title'=>t('Image Metadata Settings'),
'#description'=>t('If you have not create a media/content type for your photographies').', '.t('take a look at <a href="/admin/config/media/exif/helper">the quick start page</a>.'),
'#title'=>$this->t('Image Metadata Settings'),
'#description'=>$this->t('If you have not create a media/content type for your photographies, take a look at <a href="/admin/config/media/exif/helper">the quick start page</a>.'),
];
$form['global']=[
'#type'=>'details',
'#title'=>t('Global Settings'),
'#title'=>$this->t('Global Settings'),
'#group'=>'exif',
];
$form['global']['granularity']=[
'#type'=>'select',
'#title'=>t('Granularity'),
'#options'=>[0=>t('Default'),1=>('Day')],
'#title'=>$this->t('Granularity'),
'#options'=>[0=>$this->t('Default'),1=>('Day')],
'#default_value'=>$config->get('granularity',0),
'#description'=>t('If a timestamp is selected (for example the date the picture was taken), you can specify here how granular the timestamp should be. If you select default it will just take whatever is available in the picture. If you select Day, the Date saved will look something like 13-12-2008. This can be useful if you want to use some kind of grouping on the data.'),
'#description'=>$this->t('If a timestamp is selected (for example the date the picture was taken), you can specify here how granular the timestamp should be. If you select default it will just take whatever is available in the picture. If you select Day, the Date saved will look something like 13-12-2008. This can be useful if you want to use some kind of grouping on the data.'),
];
$form['fieldname']=[
@@ -105,7 +107,7 @@ class ExifSettingsForm extends ConfigFormBase implements ContainerInjectionInter
'#description'=>t("If checked all values will be written. So for example if you want to read the creation date from EXIF, but it's not available, it will just write an empty string. If unchecked, empty strings will not be written. This might be the desired behavior, if you have a default value for the CCK field."),
'#description'=>$this->t("If checked all values will be written. So for example if you want to read the creation date from EXIF, but it's not available, it will just write an empty string. If unchecked, empty strings will not be written. This might be the desired behavior, if you have a default value for the CCK field."),
];
$all_vocabularies=Vocabulary::loadMultiple();
@@ -216,13 +218,13 @@ class ExifSettingsForm extends ConfigFormBase implements ContainerInjectionInter
}
$form['global']['vocabulary']=[
'#type'=>'select',
'#title'=>t('Default Vocabulary'),
'#title'=>$this->t('Default Vocabulary'),
'#options'=>$all_vocs,
'#default_value'=>$config->get('vocabulary',[]),
'#description'=>t('Select vocabulary which should be used for iptc & exif data.').t('If you think no vocabulary is usable for the purpose').', '.t('take a look at <a href="/admin/config/media/exif/helper">the quick start page</a>.'),
'#description'=>$this->t('Select vocabulary which should be used for iptc & exif data.If you think no vocabulary is usable for the purpose, take a look at <a href="/admin/config/media/exif/helper">the quick start page</a>.'),
];
// TODO : Check if the media module is install to add automatically
// TODO : the image type active and add active default exif field.
// @todo Check if the media module is install to add automatically
// @todo the image type active and add active default exif field.