Skip to content

chore: Implement short translation keys #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
4691eda
chore: load translations from PHP file, remove JSON file
danjohnson95 Jan 2, 2025
671ecf7
chore: support interpolated translations on support block
danjohnson95 Jan 2, 2025
cbe1bea
chore: use namespaced translation key for enums
danjohnson95 Jan 2, 2025
32c20c7
chore: use namespaced translation keys for component groups
danjohnson95 Jan 2, 2025
7b49c22
chore: use namespaced translation keys for components
danjohnson95 Jan 2, 2025
ff98998
chore: use namespaced translation keys for incidents
danjohnson95 Jan 2, 2025
d47ef2f
chore: use namespaced translation keys for incident templates
danjohnson95 Jan 2, 2025
f2d2e42
chore: use namespaced translation keys for metrics
danjohnson95 Jan 2, 2025
5aff35d
chore: use namespaced translation keys for schedules
danjohnson95 Jan 2, 2025
78e46a5
chore: use namespaced translation keys for subscribers
danjohnson95 Jan 2, 2025
39431ec
chore: use namespaced translation keys on Overview
danjohnson95 Jan 2, 2025
6b31c05
chore: use namespaced translation keys for integrations
danjohnson95 Jan 2, 2025
31ba765
chore: update header to use filament translation strings
danjohnson95 Jan 2, 2025
69e9190
chore: update footer to use namespaced translation key
danjohnson95 Jan 2, 2025
7d31d1e
chore: use namespaced translation keys for other components
danjohnson95 Jan 2, 2025
cdbcade
chore: update settings pages to use namespaced translation keys
danjohnson95 Jan 2, 2025
53a08ca
chore: fix some typos in relation to translation strings
danjohnson95 Jan 2, 2025
46996dd
feat: add language files
danjohnson95 Jan 2, 2025
2eca7b3
Fix en_GB customisation
jbrooksuk Jan 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 0 additions & 74 deletions resources/lang/en.json

This file was deleted.

13 changes: 13 additions & 0 deletions resources/lang/en/cachet.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

return [
'support' => [
'section_heading' => 'Support Cachet',
'consider_supporting' => 'Please consider supporting Cachet via *GitHub Sponsors*.',
'keep_up_to_date' => 'Keep up to date with the latest news and releases by following the *Cachet blog*.',
],
'powered_by' => 'Powered by',
'open_source_status_page' => 'The open-source status page.',
'all_times_shown_in' => 'All times are shown in *:timezone*.',
'rss_feed' => ':name RSS Feed',
];
39 changes: 39 additions & 0 deletions resources/lang/en/component.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

return [
'resource_label' => 'Component|Components',
'list' => [
'headers' => [
'name' => 'Name',
'status' => 'Status',
'order' => 'Order',
'group' => 'Group',
'enabled' => 'Enabled',
'created_at' => 'Created at',
'updated_at' => 'Updated at',
'deleted_at' => 'Deleted at',
],
'empty_state' => [
'heading' => 'Components',
'description' => 'Components represent the various parts of your system that can affect the status of your status page.',
]
],
'last_updated' => 'Last updated :timestamp',
'view_details' => 'View Details',
'form' => [
'name_label' => 'Name',
'status_label' => 'Status',
'description_label' => 'Description',
'component_group_label' => 'Component Group',
'link_label' => 'Link',
'link_helper' => 'An optional link to the component.',
],
'status' => [
'operational' => 'Operational',
'performance_issues' => 'Performance Issues',
'partial_outage' => 'Partial Outage',
'major_outage' => 'Major Outage',
'unknown' => 'Unknown',
],

];
29 changes: 29 additions & 0 deletions resources/lang/en/component_group.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

return [
'resource_label' => 'Component Group|Component Groups',
'incident_count' => ':count Incident|:count Incidents',
'visibility' => [
'expanded' => 'Always Expanded',
'collapsed' => 'Always Collapsed',
'collapsed_unless_incident' => 'Collapsed Unless Ongoing Incident',
],
'list' => [
'headers' => [
'name' => 'Name',
'visible' => 'Visible',
'collapsed' => 'Collapsed',
'created_at' => 'Created at',
'updated_at' => 'Updated at',
],
'empty_state' => [
'heading' => 'Component Groups',
'description' => 'Group related components together.',
]
],
'form' => [
'name_label' => 'Name',
'visible_label' => 'Visible',
'collapsed_label' => 'Collapsed',
]
];
79 changes: 79 additions & 0 deletions resources/lang/en/incident.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?php

return [
'title' => 'Incidents',
'resource_label' => 'Incident|Incidents',
'status' => [
'investigating' => 'Investigating',
'identified' => 'Identified',
'watching' => 'Watching',
'fixed' => 'Fixed',
'reported' => 'Reported',
],
'edit_button' => 'Edit Incident',
'new_button' => 'New Incident',
'no_incidents_reported' => 'No incidents reported.',
'timeline' => [
'past_incidents_header' => 'Past Incidents',
'no_incidents_reported_between' => 'No incidents reported between :from and :to',
'navigate' => [
'previous' => 'Previous',
'today' => 'Today',
'next' => 'Next',
]
],
'list' => [
'headers' => [
'name' => 'Name',
'status' => 'Status',
'visible' => 'Visible',
'stickied' => 'Stickied',
'occurred_at' => 'Occurred at',
'notified_subscribers' => 'Notified subscribers',
'created_at' => 'Created at',
'updated_at' => 'Updated at',
'deleted_at' => 'Deleted at',
],
'actions' => [
'record_update' => 'Record Update',
'view_incident' => 'View incident',
],
'empty_state' => [
'heading' => 'Incidents',
'description' => 'Incidents are used to communicate and track the status of your services.',
]
],
'form' => [
'name_label' => 'Name',
'status_label' => 'Status',
'message_label' => 'Message',
'occurred_at_label' => 'Occurred at',
'occurred_at_helper' => 'The incident\'s created timestamp will be used if left empty.',
'visible_label' => 'Visible',
'user_label' => 'User',
'user_helper' => 'The user who reported the incident.',
'notifications_label' => 'Notify Subscribers?',
'stickied_label' => 'Sticky Incident?',
'guid_label' => 'Incident UUID',
'add_component' => [
'action_label' => 'Add Component',
'header' => 'Components',
'component_label' => 'Component',
'status_label' => 'Status',
]
],
'record_update' => [
'success_title' => 'Incident :name Updated',
'success_body' => 'A new incident update has been recorded.',
'form' => [
'message_label' => 'Message',
'status_label' => 'Status',
'user_label' => 'User',
'user_helper' => 'Who reported this incident.',
],
],
'overview' => [
'total_incidents_label' => 'Total Incidents',
'total_incidents_description' => 'Total number of incidents.',
]
];
31 changes: 31 additions & 0 deletions resources/lang/en/incident_template.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

return [
'resource_label' => 'Incident Template|Incident Templates',
'list' => [
'headers' => [
'name' => 'Name',
'slug' => 'Slug',
'engine' => 'Engine',
'created_at' => 'Created at',
'updated_at' => 'Updated at',
'deleted_at' => 'Deleted at',
],
'empty_state' => [
'heading' => 'Incident Templates',
'description' => 'Incident templates are used to create reusable incident messages.',
]
],
'form' => [
'name_label' => 'Name',
'slug_label' => 'Slug',
'template_label' => 'Template',
'engine_label' => 'Engine',
],
'engine' => [
'laravel_blade' => 'Laravel Blade',
'laravel_blade_docs' => 'Laravel Blade Documentation',
'twig' => 'Twig',
'twig_docs' => 'Twig Documentation',
],
];
17 changes: 17 additions & 0 deletions resources/lang/en/integrations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

return [
'oh_dear' => [
'import_feed_button' => 'Import Feed',
'status_page_url_label' => 'OhDear Status Page URL',
'status_page_url_helper' => 'Enter the URL of your OhDear status page (eg. https://status.example.com).',
'import_sites_as_components_label' => 'Import Sites as Components',
'import_sites_as_components_helper' => 'Sites configured in OhDear will be imported as components in Cachet.',
'component_group_label' => 'Component Group',
'component_group_helper' => 'The component group to assign imported components to.',
'import_incidents_label' => 'Import Incidents',
'import_incidents_helper' => 'Recent incidents from OhDear will be imported as incidents in Cachet.',
'provided_url_invalid' => 'The provided URL is not a valid OhDear status page endpoint.',
'imported_successfully' => 'OhDear feed imported successfully.',
],
];
51 changes: 51 additions & 0 deletions resources/lang/en/metric.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php

return [
'resource_label' => 'Metric|Metrics',
'list' => [
'headers' => [
'name' => 'Name',
'suffix' => 'Suffix',
'default_value' => 'Default Value',
'calc_type' => 'Metric Type',
'display_chart' => 'Display Chart',
'places' => 'Places',
'default_view' => 'Default View',
'threshold' => 'Threshold',
'order' => 'Order',
'visible' => 'Visible',
'points_count' => 'Points Count',
'created_at' => 'Created at',
'updated_at' => 'Updated at',
],
'empty_state' => [
'heading' => 'Metrics',
'description' => 'Metrics are used to track and display data.',
],
],
'form' => [
'name_label' => 'Name',
'suffix_label' => 'Suffix',
'description_label' => 'Description',
'default_view_label' => 'Default View',
'default_value_label' => 'Default Value',
'calc_type_label' => 'Metric Type',
'places_label' => 'Places',
'threshold_label' => 'Threshold',

'visible_label' => 'Visible',
'display_chart_label' => 'Display Chart',
],
'overview' => [
'metric_points_label' => 'Metric Points',
'metric_points_description' => 'Recent metric points.',
],
'sum_label' => 'Sum',
'average_label' => 'Average',
'view_labels' => [
'last_hour' => 'Last Hour',
'today' => 'Today',
'week' => 'Week',
'month' => 'Month',
],
];
26 changes: 26 additions & 0 deletions resources/lang/en/navigation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

return [
'settings' => [
'label' => 'Settings',
'items' => [
'manage_cachet' => 'Manage Cachet',
'manage_customization' => 'Manage Customization',
'manage_theme' => 'Manage Theme',
],
],

'integrations' => [
'label' => 'Integrations',
'items' => [
'oh_dear' => 'Oh Dear',
],
],
'resources' => [
'label' => 'Resources',
'items' => [
'status_page' => 'Status Page',
'documentation' => 'Documentation',
],
],
];
9 changes: 9 additions & 0 deletions resources/lang/en/resource.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

return [
'visibility' => [
'authenticated' => 'Users',
'guest' => 'Guests',
'hidden' => 'Always Hidden',
],
];
Loading
Loading