| @@ -147,9 +147,12 @@ | ||
| 147 | 147 | return array_slice($actions, 0, 1, true) + ['usk-edit-action' => $editActionLink] + array_slice($actions, 1, null, true); |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | public function set_post_columns($columns) { |
| 151 | - return array_slice($columns, 0, 2, true) + ['template_type' => 'Type', 'is_enabled' => 'Status'] + array_slice($columns, 2, null, true); | |
| 151 | + return array_slice($columns, 0, 2, true) + [ | |
| 152 | + 'template_type' => esc_html__('Type', 'ultimate-store-kit'), | |
| 153 | + 'is_enabled' => esc_html__('Status', 'ultimate-store-kit') | |
| 154 | + ] + array_slice($columns, 2, null, true); | |
| 152 | 155 | } |
| 153 | 156 | |
| 154 | 157 | public function set_custom_column_value($column, $post_id) { |
| 155 | 158 | $templateType = get_post_meta( |
| @@ -166,9 +169,11 @@ | ||
| 166 | 169 | echo ' <strong>-- ' . esc_html(ucwords($postType->name)) . '</strong>'; |
| 167 | 170 | } |
| 168 | 171 | break; |
| 169 | 172 | case 'is_enabled': |
| 170 | - echo (Builder_Template_Helper::getTemplateId($templateType) == $post_id ? 'Active' : 'Inactive'); | |
| 173 | + echo Builder_Template_Helper::getTemplateId($templateType) == $post_id | |
| 174 | + ? esc_html__('Active', 'ultimate-store-kit') | |
| 175 | + : esc_html__('Inactive', 'ultimate-store-kit'); | |
| 171 | 176 | break; |
| 172 | 177 | } |
| 173 | 178 | } |
| 174 | 179 | |