Skip to content

Commit 6cfec1f

Browse files
Moves license-related translations for better grouping
Reorganizes license information translation strings to group them with related entries, improving maintainability and logical structure for future updates.
1 parent bac6f23 commit 6cfec1f

6 files changed

Lines changed: 103 additions & 77 deletions

File tree

src/uds/static/admin/translations-fakejs.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,18 @@ gettext("Logs");
435435
gettext("Ok");
436436
gettext("Summary");
437437
gettext("Servers");
438+
gettext("License information");
439+
gettext("UDS ID");
440+
gettext("Brand");
441+
gettext("Support level");
442+
gettext("Licensed users");
443+
gettext("Model");
444+
gettext("Total users");
445+
gettext("Users with services");
446+
gettext("Assigned services");
447+
gettext("Start date");
448+
gettext("End date");
449+
gettext("Close");
438450
gettext("Updated");
439451
gettext("License expired");
440452
gettext("License expires in");
@@ -478,18 +490,6 @@ gettext("assigned");
478490
gettext("View service pools");
479491
gettext("restrained services");
480492
gettext("View service pools");
481-
gettext("License information");
482-
gettext("UDS ID");
483-
gettext("Brand");
484-
gettext("Support level");
485-
gettext("Licensed users");
486-
gettext("Model");
487-
gettext("Total users");
488-
gettext("Users with services");
489-
gettext("Assigned services");
490-
gettext("Start date");
491-
gettext("End date");
492-
gettext("Close");
493493
gettext("Summary");
494494
gettext("Users");
495495
gettext("Groups");

src/uds/static/modern/main.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/uds/static/modern/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
// "Fake" javascript file for translations
22
// Typescript
3-
gettext("Launching service");
4-
gettext("Invalid UDS URL");
5-
gettext("Please wait until the service is launched.");
6-
gettext("Remember that you will need the UDS client on your platform to access the service.");
7-
gettext("Service ready");
8-
gettext("UDS Client not launching");
9-
gettext("It seems that you don't have UDS Client installed. Please, install it from here:");
10-
gettext("UDS Client Download");
11-
gettext("Service ready");
12-
gettext("Launching UDS Client...</br>Please wait.");
13-
gettext("Please wait until the service is launched.");
14-
gettext("Remember that you will need the UDS client on your platform to access the service.");
15-
gettext("Error communicating with your service. Please, retry again.");
16-
gettext("Your session has expired. Please, login again");
17-
gettext("Error");
183
gettext("We use cookies to authenticate users and remember preferences.");
194
gettext("If you do not agree, please");
205
gettext("leave this site");
@@ -23,19 +8,10 @@ gettext("Refuse and leave");
238
gettext("I Accept");
249
gettext("Learn more");
2510
gettext("Cookie Policy");
26-
gettext("Favorites");
27-
gettext("Warning");
28-
gettext("Service is in maintenance and cannot be executed");
29-
gettext("Errors found");
30-
gettext("Biometric Login");
31-
gettext("Would you like to save your credentials for future biometric login?");
32-
gettext("Error");
33-
gettext("Could not register biometrics");
34-
gettext("Errors found");
11+
gettext("seconds");
3512
gettext("Username");
3613
gettext("Password");
3714
gettext("Domain");
38-
gettext("seconds");
3915
gettext("Service is in maintenance");
4016
gettext("This service is currently not accessible due to schedule restrictions.");
4117
gettext("Launcher");
@@ -48,55 +24,79 @@ gettext("Reset service: ");
4824
gettext("Service released");
4925
gettext("Service reseted");
5026
gettext("Are you sure?");
27+
gettext("Favorites");
28+
gettext("Warning");
29+
gettext("Service is in maintenance and cannot be executed");
30+
gettext("Errors found");
31+
gettext("Errors found");
32+
gettext("Biometric Login");
33+
gettext("Would you like to save your credentials for future biometric login?");
34+
gettext("Error");
35+
gettext("Could not register biometrics");
36+
gettext("Launching service");
37+
gettext("Invalid UDS URL");
38+
gettext("Please wait until the service is launched.");
39+
gettext("Remember that you will need the UDS client on your platform to access the service.");
40+
gettext("Service ready");
41+
gettext("UDS Client not launching");
42+
gettext("It seems that you don't have UDS Client installed. Please, install it from here:");
43+
gettext("UDS Client Download");
44+
gettext("Service ready");
45+
gettext("Launching UDS Client...</br>Please wait.");
46+
gettext("Please wait until the service is launched.");
47+
gettext("Remember that you will need the UDS client on your platform to access the service.");
48+
gettext("Error communicating with your service. Please, retry again.");
49+
gettext("Your session has expired. Please, login again");
50+
gettext("Error");
5151
// HTML
52+
gettext("Close");
53+
gettext("Yes");
54+
gettext("No");
55+
gettext("Please, enter access credentials");
56+
gettext("Release service");
57+
gettext("Reset service");
58+
gettext("Connections");
59+
gettext("Actions");
60+
gettext("Filter");
61+
gettext("Information");
62+
gettext("Client IP");
63+
gettext("Client IP");
64+
gettext("Detected proxy ip");
65+
gettext("Transports");
66+
gettext("UDS transports for this client");
67+
gettext("Networks");
68+
gettext("UDS networks for this IP");
69+
gettext("Groups");
70+
gettext("UDS groups for this user");
71+
gettext("Dashboard");
72+
gettext("Downloads");
73+
gettext("Logout");
74+
gettext("{{ api.isDarkTheme ? 'Light theme' : 'Dark theme' }}");
5275
gettext("UDS Client");
53-
gettext("Download UDS client for your platform");
76+
gettext("About");
77+
gettext("UDS Client");
78+
gettext("About");
5479
gettext("UDS Service launcher");
5580
gettext("The service you have requested is being launched.");
5681
gettext("Please, note that reloading this page will not work.");
5782
gettext("To relaunch service, you will have to do it from origin.");
5883
gettext("If the service does not launchs automatically, probably you dont have the UDS Client installed");
5984
gettext("You can obtain it from the");
6085
gettext("UDS Client download page");
61-
gettext("Downloads");
62-
gettext("Always download the UDS actor matching your platform");
86+
gettext("UDS Client");
87+
gettext("Download UDS client for your platform");
6388
gettext("You can access UDS Open Source code at");
6489
gettext("UDS has been developed using these components:");
6590
gettext("If you find that we missed any component, please let us know");
91+
gettext("Downloads");
92+
gettext("Always download the UDS actor matching your platform");
6693
gettext("An error has occurred");
6794
gettext("Return");
95+
gettext("Login Verification");
96+
gettext("Remember me for");
97+
gettext("Submit");
6898
gettext("Username");
6999
gettext("Password");
70100
gettext("Authenticator");
71101
gettext("Login");
72102
gettext("Login with Biometrics");
73-
gettext("Login Verification");
74-
gettext("Remember me for");
75-
gettext("Submit");
76-
gettext("Dashboard");
77-
gettext("Downloads");
78-
gettext("Logout");
79-
gettext("{{ api.isDarkTheme ? 'Light theme' : 'Dark theme' }}");
80-
gettext("UDS Client");
81-
gettext("About");
82-
gettext("UDS Client");
83-
gettext("About");
84-
gettext("Please, enter access credentials");
85-
gettext("Close");
86-
gettext("Yes");
87-
gettext("No");
88-
gettext("Information");
89-
gettext("Client IP");
90-
gettext("Client IP");
91-
gettext("Detected proxy ip");
92-
gettext("Transports");
93-
gettext("UDS transports for this client");
94-
gettext("Networks");
95-
gettext("UDS networks for this IP");
96-
gettext("Groups");
97-
gettext("UDS groups for this user");
98-
gettext("Filter");
99-
gettext("Release service");
100-
gettext("Reset service");
101-
gettext("Connections");
102-
gettext("Actions");

src/uds/templates/uds/admin/index.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
height: 100%;
1212
}
1313

14+
/* Dark loading background: avoids the white flash when navigating in dark mode */
15+
html.dark-theme,
16+
html.dark-theme body {
17+
background-color: #0f111a;
18+
}
19+
1420
.app-loading {
1521
position: relative;
1622
display: flex;
@@ -75,6 +81,13 @@
7581

7682
<!-- just in case translations cannot be loaded, provide a fallback -->
7783
<script type="text/javascript">
84+
// Apply the stored theme before first paint to avoid the white flash
85+
try {
86+
if (localStorage.getItem('blackTheme') === 'true') {
87+
document.documentElement.classList.add('dark-theme');
88+
}
89+
} catch (e) { /* localStorage unavailable */ }
90+
7891
django = {
7992
gettext: function (s) {
8093
return s;
@@ -101,6 +114,6 @@
101114
</svg>
102115
</div>
103116
</uds-root>
104-
<link rel="modulepreload" href="/uds/res/admin/chunk-4DTB3P4O.js?stamp=1779442788" integrity="sha384-gdNoIYDAixtoBX/GRVuVSRXdl8cXt8r/eRbf51/Rst7u92L8TkuZxd+S1QdPtX/B"><script src="/uds/res/admin/polyfills.js?stamp=1779442788" type="module" crossorigin="anonymous" integrity="sha384-Lov2zvNCUYj+QLZdfWW9mQb0bbObGhI6HGUI01dSPKR5uEce7CSjGPJFdCm8ZySE"></script><script src="/uds/res/admin/main.js?stamp=1779442788" type="module" crossorigin="anonymous" integrity="sha384-ZY2vWIXAgu+/uVVIVH8jvHesJ3ST46TH3KFmkyyScyLL6E1t6Tg/qzPixK/a0LH2"></script></body>
117+
<link rel="modulepreload" href="/uds/res/admin/chunk-4DTB3P4O.js?stamp=1779459056" integrity="sha384-gdNoIYDAixtoBX/GRVuVSRXdl8cXt8r/eRbf51/Rst7u92L8TkuZxd+S1QdPtX/B"><script src="/uds/res/admin/polyfills.js?stamp=1779459056" type="module" crossorigin="anonymous" integrity="sha384-Lov2zvNCUYj+QLZdfWW9mQb0bbObGhI6HGUI01dSPKR5uEce7CSjGPJFdCm8ZySE"></script><script src="/uds/res/admin/main.js?stamp=1779459056" type="module" crossorigin="anonymous" integrity="sha384-ZY2vWIXAgu+/uVVIVH8jvHesJ3ST46TH3KFmkyyScyLL6E1t6Tg/qzPixK/a0LH2"></script></body>
105118

106119
</html>

src/uds/templates/uds/modern/index.html

Lines changed: 15 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)