Skip to content

Added more dashboard localizations (#1960)#5357

Open
SimonX1a0 wants to merge 12 commits intomasterfrom
localization
Open

Added more dashboard localizations (#1960)#5357
SimonX1a0 wants to merge 12 commits intomasterfrom
localization

Conversation

@SimonX1a0
Copy link
Copy Markdown

Added missing i18n keys for texts on /dashboard, /files, /activejobs, /projects, /module-browser, and /system-status pages.

Simon Xiao added 12 commits April 15, 2026 18:47
expose global datatables language config from Rails i18n and apply it in
application JS so the table is auto-initialized with the correct locale
configs. Also localized remaining hard coded strings in this page.
Replaced hard coded strings with I18n and added corresponding string
entries in en.yml file
replaced some hard coded strings with i18n for some files under
bc_desktop/session_context/new
Expose XDMoD i18n JSON to the frontend and replace hard-coded
English strings in the XDMoD widgets
Displayed sys files on the dashboard page and added more chinese translations
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not modify javascript files for localization - we haven't built any foundational stuff for that yet.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment above regarding javascript files.

data-current-filesystem="<%= @filesystem %>"
data-download-error-title="<%= t('dashboard.files_directory_download_error_modal_title') %>"
data-current-files-upload-path="<%= url_for(fs: @filesystem, action: 'upload') if Configuration.upload_enabled? %>"
data-label-filter="<%= t('dashboard.files_filter') %>"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have #5124 open to add internationalization to javascript, and I don't think we want to bulk up the config object so much until we have a unified strategy. At the very least we should split this up into server-side internationalizations in ruby (the easy part), and javascript changes in a separate PR where we can really dig in and find the most efficient approach.

@@ -0,0 +1,4 @@
pinned_apps:
Copy link
Copy Markdown
Contributor

@Bubballoo3 Bubballoo3 Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this file was added by mistake

# Using the sleep to wait before reload
sleep(2.0)
redirect_to active_jobs_path, :notice => "Successfully deleted #{job_id}"
redirect_to active_jobs_path, :notice => t('dashboard.active_jobs.delete_success', job_id: job_id, default: "Successfully deleted %{job_id}")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a configuration that will raise errors on missing internationalizations, so providing a default value is always going to be unnecessary

@Bubballoo3 Bubballoo3 moved this from Awaiting Review to Changes Requested in PR Review Pipeline Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Changes Requested

Development

Successfully merging this pull request may close these issues.

4 participants