Gin Settings Using static text that does not support translation.
Closes #3508553
Merge request reports
Activity
- Resolved by Shivam Tiwari
138 138 ]; 139 139 140 140 // Create gin_more_actions group. 141 $toggle_more_actions = t('More actions'); 141 $toggle_more_actions = $this->t('More actions'); changed this line in version 3 of the diff
33 33 $value = $element['#options'][$value]; 34 34 } 35 35 if ($element['#type'] === 'checkbox') { 36 $value = $value ? t('Enabled') : t('Disabled'); 36 $value = $value ? $this->t('Enabled') : $this->t('Disabled'); 37 37 } 38 38 39 39 $element += ['#description' => '']; 40 40 $element['#description'] .= '<span class="form-item__warning">' . 41 t('This setting is overridden by the <a href=":editUrl">current user</a>. @title: %value', 41 $this->t('This setting is overridden by the <a href=":editUrl">current user</a>. @title: %value', changed this line in version 3 of the diff
33 33 $value = $element['#options'][$value]; 34 34 } 35 35 if ($element['#type'] === 'checkbox') { 36 $value = $value ? t('Enabled') : t('Disabled'); 36 $value = $value ? $this->t('Enabled') : $this->t('Disabled'); changed this line in version 3 of the diff
222 222 // Action buttons. 223 223 if (isset($form['actions'])) { 224 224 // Add sidebar toggle. 225 $hide_panel = t('Hide sidebar panel'); 225 $hide_panel = $this->t('Hide sidebar panel'); changed this line in version 3 of the diff
245 245 $form['gin_sidebar']['footer'] = ($form['footer']) ?? []; 246 246 247 247 // Sidebar close button. 248 $close_sidebar_translation = t('Close sidebar panel'); 248 $close_sidebar_translation = $this->t('Close sidebar panel'); changed this line in version 3 of the diff
54 54 // Remove content and help from admin menu. 55 55 unset($build['#items']['system.admin_content']); 56 56 unset($build['#items']['help.main']); 57 $build['#title'] = t('Administration'); 57 $build['#title'] = $this->t('Administration'); changed this line in version 3 of the diff
68 68 $shortcuts = \Drupal::service('shortcut.lazy_builders')->lazyLinks()['shortcuts']; 69 69 $shortcuts['#theme'] = 'menu_region__top'; 70 70 $shortcuts['#menu_name'] = 'bookmarks'; 71 $shortcuts['#title'] = t('Bookmarks'); 71 $shortcuts['#title'] = $this->t('Bookmarks'); changed this line in version 3 of the diff
122 122 $create_type_items, 123 123 [ 124 124 [ 125 'title' => t('Blocks'), 125 'title' => $this->t('Blocks'), changed this line in version 3 of the diff
262 262 $user_items = [ 263 263 [ 264 'title' => t('Profile'), 264 'title' => $this->t('Profile'), 265 265 'class' => 'profile', 266 266 'url' => Url::fromRoute('user.page')->toString(), 267 267 ], 268 268 [ 269 'title' => t('Settings'), 269 'title' => $this->t('Settings'), 270 270 'class' => 'settings', 271 271 'url' => Url::fromRoute('entity.user.admin_form')->toString(), 272 272 ], 273 273 [ 274 'title' => t('Log out'), 274 'title' => $this->t('Log out'), changed this line in version 3 of the diff
148 148 $create_type_items, 149 149 [ 150 150 [ 151 'title' => t('Media'), 151 'title' => $this->t('Media'), changed this line in version 3 of the diff
174 174 $create_type_items, 175 175 [ 176 176 [ 177 'title' => t('Taxonomy'), 177 'title' => $this->t('Taxonomy'), changed this line in version 3 of the diff
214 214 // Get Content menu item. 215 215 if ($entity_type_manager->hasDefinition('node')) { 216 216 $create_content_items['content'] = [ 217 'title' => t('Content'), 217 'title' => $this->t('Content'), changed this line in version 3 of the diff
223 223 // Get Blocks menu item. 224 224 if ($entity_type_manager->hasDefinition('block_content')) { 225 225 $create_content_items['blocks'] = [ 226 'title' => t('Blocks'), 226 'title' => $this->t('Blocks'), changed this line in version 3 of the diff
232 232 // Get File menu item. 233 233 if ($entity_type_manager->hasDefinition('file')) { 234 234 $create_content_items['files'] = [ 235 'title' => t('Files'), 235 'title' => $this->t('Files'), changed this line in version 3 of the diff
241 241 // Get Media menu item. 242 242 if ($entity_type_manager->hasDefinition('media')) { 243 243 $create_content_items['media'] = [ 244 'title' => t('Media'), 244 'title' => $this->t('Media'), changed this line in version 3 of the diff
251 251 '#theme' => 'menu_region__middle', 252 252 '#items' => $create_content_items, 253 253 '#menu_name' => 'content', 254 '#title' => t('Content Navigation'), 254 '#title' => $this->t('Content Navigation'), changed this line in version 3 of the diff
261 261 public function getMenuNavigationUserItems(): array { 262 262 $user_items = [ 263 263 [ 264 'title' => t('Profile'), 264 'title' => $this->t('Profile'), changed this line in version 3 of the diff
261 261 public function getMenuNavigationUserItems(): array { 262 262 $user_items = [ 263 263 [ 264 'title' => t('Profile'), 264 'title' => $this->t('Profile'), 265 265 'class' => 'profile', 266 266 'url' => Url::fromRoute('user.page')->toString(), 267 267 ], 268 268 [ 269 'title' => t('Settings'), 269 'title' => $this->t('Settings'), changed this line in version 3 of the diff
280 280 '#theme' => 'menu_region__bottom', 281 281 '#items' => $user_items, 282 282 '#menu_name' => 'user', 283 '#title' => t('User'), 283 '#title' => $this->t('User'), changed this line in version 3 of the diff