|
|
@@ -29,6 +29,33 @@ class ControllerExtensionModuleReverb extends Controller {
|
|
|
|
|
|
$data = $this->buildBreadcrumbs();
|
|
|
|
|
|
+ // Language strings required by the view
|
|
|
+ $lang_keys = [
|
|
|
+ 'tab_settings', 'tab_categories', 'tab_log',
|
|
|
+ 'text_api_settings', 'text_shipping_settings', 'text_sync_settings', 'text_manual_sync',
|
|
|
+ 'entry_api_token', 'help_api_token',
|
|
|
+ 'entry_status', 'entry_sync_direction',
|
|
|
+ 'text_sync_push', 'text_sync_both',
|
|
|
+ 'entry_shipping_domestic', 'help_shipping_domestic',
|
|
|
+ 'entry_shipping_international', 'help_shipping_international',
|
|
|
+ 'help_sync_categories', 'button_sync_now',
|
|
|
+ 'text_category_mapping_help', 'text_no_categories',
|
|
|
+ 'column_oc_category', 'column_reverb_category',
|
|
|
+ 'column_date', 'column_product', 'column_direction', 'column_status', 'column_message',
|
|
|
+ 'text_push', 'text_pull', 'text_error', 'text_no_log',
|
|
|
+ 'text_success', 'text_log_success',
|
|
|
+ 'error_warning', 'error_api_token',
|
|
|
+ ];
|
|
|
+ foreach ($lang_keys as $key) {
|
|
|
+ $data[$key] = $this->language->get($key);
|
|
|
+ }
|
|
|
+ // Global OC strings
|
|
|
+ $data['text_edit'] = $this->language->get('text_edit');
|
|
|
+ $data['text_enabled'] = $this->language->get('text_enabled');
|
|
|
+ $data['text_disabled'] = $this->language->get('text_disabled');
|
|
|
+ $data['button_save'] = $this->language->get('button_save');
|
|
|
+ $data['button_cancel'] = $this->language->get('button_cancel');
|
|
|
+
|
|
|
// Pull saved settings into $data
|
|
|
$fields = [
|
|
|
'module_reverb_api_token',
|