Skip to content

Commit

Permalink
Add i18n configuration for system installed captions (#4011)
Browse files Browse the repository at this point in the history
Add i18n configuration for system installed captions.
  • Loading branch information
ahmed-mgd authored Dec 17, 2024
1 parent 6e45ffc commit f26058b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
17 changes: 4 additions & 13 deletions apps/dashboard/app/apps/sys_router.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The router class for all system apps.
class SysRouter
attr_reader :name
attr_reader :name, :owner, :caption, :category

#TODO: consider making SysRouter a subclass of
# OodAppkit::Url
Expand All @@ -23,6 +23,9 @@ def self.apps

def initialize(name)
@name = name.to_s
@owner = :sys
@caption = I18n.t('dashboard.system_apps_caption')
@category = ""
end

def token
Expand All @@ -37,18 +40,6 @@ def type
:sys
end

def owner
:sys
end

def caption
"System Installed App"
end

def category
""
end

def url
"/pun/sys/#{name}"
end
Expand Down
3 changes: 2 additions & 1 deletion apps/dashboard/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ en:
<pre>%{exception_message}</pre>
<h4>Stack trace:</h4>
<pre>%{exception_trace}</pre>
apps_system_apps_title: "System Apps"
apps_system_apps_title: "System Apps" # Not used anywhere
system_apps_caption: "System Installed App"

shell_app_title: "%{cluster_title} Shell Access"

Expand Down

0 comments on commit f26058b

Please sign in to comment.