Skip to content
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

Translate few error messages #23

Merged
merged 2 commits into from
May 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/subscriptions-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ client.registerSystem = (subscriptionDetails, update_progress) => {
};

if (subscriptionDetails.activation_keys && !subscriptionDetails.org) {
const error = new Error("'Organization' is required when using activation keys...");
const error = new Error(_("'Organization' is required when using activation keys"));
dfd.reject(error);
return dfd.promise();
}
Expand All @@ -248,7 +248,9 @@ client.registerSystem = (subscriptionDetails, update_progress) => {
const port = match[3];
const path = match[4];
if (ipv6Address && address) {
throw 'malformed server url; ipv6 address syntax and hostname are mutually exclusive';
const error = new Error(_("Malformed server URL; IPv6 address syntax and hostname are mutually exclusive"));
dfd.reject(error);
return dfd.promise();
}
if (ipv6Address) {
connection_options.host = dbus_str(ipv6Address);
Expand Down Expand Up @@ -279,7 +281,9 @@ client.registerSystem = (subscriptionDetails, update_progress) => {
const address = match[2];
let port = match[3];
if (ipv6Address && address) {
throw 'malformed proxy url; ipv6 address syntax and hostname are mutually exclusive';
const error = new Error(_("Malformed proxy URL; IPv6 address syntax and hostname are mutually exclusive"));
dfd.reject(error);
return dfd.promise();
}
if (ipv6Address) {
connection_options.proxy_hostname = dbus_str(ipv6Address);
Expand Down