Skip to content

Commit

Permalink
Internationalization #136
Browse files Browse the repository at this point in the history
  • Loading branch information
abrain committed Oct 14, 2021
1 parent 927519d commit 840b68c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/Export/Formats/AbstractFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function getColumnNames(): array
return array(
'Einsatznummer',
'Lfd.',
'Alarmierungsarten',
__('Alerting Methods', 'einsatzverwaltung'),
'Alarmzeit',
'Einsatzende',
'Dauer (Minuten)',
Expand Down
2 changes: 1 addition & 1 deletion src/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function getEinsatzberichtHeader(WP_Post $post, bool $mayContainLinks = t
);
$headerstring = $this->getDetailString(__('Date', 'einsatzverwaltung'), $dateAndTime);

$headerstring .= $this->getDetailString('Alarmierungsart', $this->formatter->getTypesOfAlerting($report));
$headerstring .= $this->getDetailString(__('Alerting method', 'einsatzverwaltung'), $this->formatter->getTypesOfAlerting($report));
$headerstring .= $this->getDetailString(__('Duration', 'einsatzverwaltung'), $durationString);
$headerstring .= $this->getDetailString(__('Incident Category', 'einsatzverwaltung'), $art);
$headerstring .= $this->getDetailString(__('Location', 'einsatzverwaltung'), $report->getLocation());
Expand Down
2 changes: 1 addition & 1 deletion src/Frontend/ReportList/ColumnRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function __construct()
$this->addColumn(new Column('workforce', 'Mannschaftsstärke'));
$this->addColumn(new Column('duration', __('Duration', 'einsatzverwaltung'), '', true));
$this->addColumn(new Column('vehicles', __('Vehicles', 'einsatzverwaltung')));
$this->addColumn(new Column('alarmType', 'Alarmierungsart'));
$this->addColumn(new Column('alarmType', __('Alerting method', 'einsatzverwaltung')));
$this->addColumn(new Column('additionalForces', 'Weitere Kräfte'));
$this->addColumn(new Column('units', __('Units', 'einsatzverwaltung')));
$this->addColumn(new Column('incidentType', __('Incident Category', 'einsatzverwaltung')));
Expand Down
2 changes: 1 addition & 1 deletion src/Model/IncidentReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static function getTerms(): array
{
return array(
'alarmierungsart' => array(
'label' => 'Alarmierungsart'
'label' => __('Alerting Method', 'einsatzverwaltung')
),
'einsatzart' => array(
'label' => 'Einsatzart'
Expand Down
39 changes: 19 additions & 20 deletions src/Types/Alarmierungsart.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,26 @@ public static function getSlug(): string
public function getRegistrationArgs(): array
{
return array(
'label' => 'Alarmierungsart',
'labels' => array(
'name' => 'Alarmierungsarten',
'singular_name' => 'Alarmierungsart',
'menu_name' => 'Alarmierungsarten',
'search_items' => 'Alarmierungsart suchen',
'popular_items' => 'Häufige Alarmierungsarten',
'all_items' => 'Alle Alarmierungsarten',
'edit_item' => 'Alarmierungsart bearbeiten',
'view_item' => 'Alarmierungsart ansehen',
'update_item' => 'Alarmierungsart aktualisieren',
'add_new_item' => 'Neue Alarmierungsart',
'new_item_name' => 'Alarmierungsart hinzufügen',
'separate_items_with_commas' => 'Alarmierungsarten mit Kommas trennen',
'add_or_remove_items' => 'Alarmierungsarten hinzufügen oder entfernen',
'choose_from_most_used' => 'Aus häufigen Alarmierungsarten wählen',
'not_found' => 'Keine Alarmierungsarten gefunden.',
'no_terms' => 'Keine Alarmierungsarten',
'items_list_navigation' => 'Navigation der Liste der Alarmierungsarten',
'items_list' => 'Liste der Alarmierungsarten',
'back_to_items' => '← Zurück zu den Alarmierungsarten',
'name' => _x('Alerting Methods', 'taxonomy general name', 'einsatzverwaltung'),
'singular_name' => _x('Alerting Method', 'taxonomy singular name', 'einsatzverwaltung'),
'menu_name' => __('Alerting Methods', 'einsatzverwaltung'),
'search_items' => __('Search Alerting Method', 'einsatzverwaltung'),
'popular_items' => __('Popular Alerting Methods', 'einsatzverwaltung'),
'all_items' => __('All Alerting Methods', 'einsatzverwaltung'),
'edit_item' => __('Edit Alerting Method', 'einsatzverwaltung'),
'view_item' => __('View Alerting Method', 'einsatzverwaltung'),
'update_item' => __('Update Alerting Method', 'einsatzverwaltung'),
'add_new_item' => __('Add New Alerting Method', 'einsatzverwaltung'),
'new_item_name' => __('New Alerting Method Name', 'einsatzverwaltung'),
'separate_items_with_commas' => __('Separate alerting methods with commas', 'einsatzverwaltung'),
'add_or_remove_items' => __('Add or remove alerting methods', 'einsatzverwaltung'),
'choose_from_most_used' => __('Choose from the most used alerting methods', 'einsatzverwaltung'),
'not_found' => __('No alerting methods found.', 'einsatzverwaltung'),
'no_terms' => __('No alerting methods', 'einsatzverwaltung'),
'items_list_navigation' => __('Alerting Methods list navigation', 'einsatzverwaltung'),
'items_list' => __('Alerting Methods list', 'einsatzverwaltung'),
'back_to_items' => __('← Go to Alerting Methods', 'einsatzverwaltung'),
),
'public' => true,
'show_in_nav_menus' => false,
Expand Down

0 comments on commit 840b68c

Please sign in to comment.