- Issue created by @primsi
- Status changed to Needs review
over 1 year ago 11:13am 28 September 2023 - Status changed to Needs work
over 1 year ago 3:02pm 2 October 2023 - 🇨🇭Switzerland berdir Switzerland
-
+++ b/src/AcclaroTranslatorUi.php @@ -90,11 +90,65 @@ class AcclaroTranslatorUi extends TranslatorPluginUiBase { + $supported_formats = array_keys(\Drupal::service('plugin.manager.tmgmt_file.format')->getDefinitions()); + $form['file'] = [ + '#type' => 'file', + '#title' => t('File'), + '#size' => 50, + '#description' => t('Supported formats: @formats.', ['@formats' => implode(', ', $supported_formats)]), + ];
no need for this, acclaro only supports xliff.
I'm not seeing the multiple flag here, according to \Drupal\Core\Render\Element\File, that should be supported, and then file_save_upload() should be called with the default NULL and will return an array.
-
+++ b/src/AcclaroTranslatorUi.php @@ -90,11 +90,65 @@ class AcclaroTranslatorUi extends TranslatorPluginUiBase { + public function submitManualTranslationUpload(array $form, FormStateInterface $form_state) {
missing docblock.
-
- Status changed to Needs review
over 1 year ago 11:59am 3 October 2023 - Status changed to Fixed
about 1 year ago 7:08am 14 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.