Skip to content

Add Translations#2325

Open
Yago004 wants to merge 9 commits into
UPC:mainfrom
Yago004:Translation
Open

Add Translations#2325
Yago004 wants to merge 9 commits into
UPC:mainfrom
Yago004:Translation

Conversation

@Yago004
Copy link
Copy Markdown
Collaborator

@Yago004 Yago004 commented May 12, 2026

Added translations for english, catalan and spanish.

Description

Added requested translations, fixed some spelling errors and fixed some words that weren't being translated before.

Motivation and Context

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds/updates UI localization across Mojolicious templates and booking error messages, alongside new/updated English, Catalan, and Spanish gettext entries.

Changes:

  • Localized additional UI strings in several admin/user templates (buttons, labels, table headers).
  • Localized /booking error messages (including link text) via $c->stash->{i18n}->localize(...).
  • Expanded/adjusted en.po, ca.po, and es.po with new msgids/msgstrs and corrected some existing keys.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
templates/ng-templates/list_next_bookings_today.html.ep Reformatted booking warning string used as an i18n key.
templates/main/vm_hostdev.html.ep Localized “Manage Host Devices” link text.
templates/main/upload_users.html.ep Localized “Type” label and “Cancel” action.
templates/main/storage_list.html.ep Localized storage table headers.
templates/main/settings_generic.html.ep Attempted to localize dynamic settings title and “back” link.
templates/main/list_bases_ng.html.ep Localized “Prepare base” button text.
templates/main/admin_settings.html.ep Localized “upload” link text.
templates/main/admin_machines.html.ep Localized “Machine” label in lock status row.
templates/main/admin_hostdev.html.ep Localized host device editor labels (“list command”, “filter”, “Machines”).
script/rvd_front Localized booking setup error strings (with embedded links).
lib/Ravada/I18N/es.po Added/updated Spanish translations for newly localized strings.
lib/Ravada/I18N/en.po Added/updated English msgids/msgstrs for newly localized strings.
lib/Ravada/I18N/ca.po Added/updated Catalan translations for newly localized strings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/Ravada/I18N/en.po Outdated
Comment thread script/rvd_front Outdated
my $i18n = $c->stash->{i18n};
return $c->render(template => '/ng-templates/error'
,message => "Groups are required to set up bookings. Some groups where found but no members belong to them. <a href='/admin/groups'>Add new entries here.</a>"
,message => $i18n->localize("Groups are required to set up bookings. Some groups where found but no members belong to them.")
Comment thread script/rvd_front
Comment on lines +2919 to 2921
,message => $i18n->localize("Groups are required to set up bookings. No groups found.")
."<a href='/group/new'>".$i18n->localize(" Add new entries here.")."</a>"
);
Comment on lines 19 to 21
<span class="title">
<%= $item %>
<%=l "\u$item" %>
{{<%= $item %>._old_name}}
Comment thread lib/Ravada/I18N/es.po Outdated
msgstr "Mostrar clones"

msgid "This base is available for all users"
msgstr "Esta base está disponible para todos los ususarios"
Comment thread lib/Ravada/I18N/ca.po
Comment on lines +2551 to +2553
msgid "You can grant access to users from the users administration form:"
msgstr "Podeu concedir accés a ususaris des del formolari d'administració d'usuaris:"

Comment thread templates/main/storage_list.html.ep Outdated
<th class="list"><%=l 'Size' %></th>
<th class="list"><%=l 'Used' %></th>
<th class="list"><%=l 'Available' %></th>
<th class="list"><%=l 'Used' %> %</th>
<p>
<%=l 'This server has reservations for today. Machines from users out of
the booking list will be shutdown.' %>
<%=l 'This server has reservations for today. Machines from users out of the booking list will be shutdown.' %>

<a ng-show="host_devices" type="button" class="btn btn-outline-secondary"
href="/admin/hostdev/{{showmachine.type}}"><b>Manage Host Devices</b></a>
href="/admin/hostdev/{{showmachine.type}}"><b><%=l 'Manage Host Devices' %></b></a>
frankiejol and others added 2 commits May 12, 2026 10:17
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@frankiejol frankiejol requested a review from Copilot May 12, 2026 09:35
@frankiejol frankiejol added this to the v2.4.6 milestone May 12, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.

Comment thread script/rvd_front
my $i18n = $c->stash->{i18n};
return $c->render(template => '/ng-templates/error'
,message => "Groups are required to set up bookings. Some groups where found but no members belong to them. <a href='/admin/groups'>Add new entries here.</a>"
,message => $i18n->localize("Groups are required to set up bookings. Some groups were found but no members belong to them.")
Comment thread lib/Ravada/I18N/en.po Outdated
Comment thread lib/Ravada/I18N/es.po Outdated
msgid "Groups are required to set up bookings. No groups found."
msgstr "Los grupos son necesarios para configurar reservas. No se han encontrado grupos."

msgid "Groups are required to set up bookings. Some groups where found but no members belong to them."
Comment thread lib/Ravada/I18N/ca.po Outdated
msgid "Groups are required to set up bookings. No groups found."
msgstr "Els grups son necessaris per configurar reserves. No s'han trobat grups."

msgid "Groups are required to set up bookings. Some groups where found but no members belong to them."
<div class="col-10">
<span class="title">
<%= $item %>
<%=l "\u$item" %>
Comment thread lib/Ravada/I18N/ca.po Outdated
msgstr "Aquest servidor té reserves per avui."

msgid "Machines from users out of the booking list will be shutdown."
msgstr "Les màquines d'usuaris fora de la reserva seràn aturades."
frankiejol and others added 2 commits May 12, 2026 11:44
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Comment on lines +7 to +8
<%=l 'This server has reservations for today.' %>
<%=l 'Machines from users out of the booking list will be shutdown.' %>
Comment on lines 18 to 22
<div class="col-10">
<span class="title">
<%= $item %>
<%=l "\u$item" %>
{{<%= $item %>._old_name}}
</span>
Comment thread lib/Ravada/I18N/ca.po
msgid "New Storage"
msgstr "Nou emmagatzematge"

msgid "Unused Volumes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants