Fix untranslatable concatenated messages

Change-Id: I6757e97998971fd507648c3605005a7442712a30
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
This commit is contained in:
Ivan Anfimov committed 2026-09-30 16:02:50 +00:00
1 parent efdcedb8e3
commit 2562abf3bb
3 files changed
+10 -7

No files matched your search

@@ -121,7 +121,7 @@
function perform(item) {
// Initialize the per-item title for use now and during submit
title = gettext("Set Domain Name PTR for ") + item.address;
title = interpolate(gettext("Set Domain Name PTR for %s"), [item.address]);
formConfig.title = title;
// Get a form model based on the current item
@@ -102,7 +102,7 @@
}
function perform(item) {
title = gettext("Unset Domain Name PTR for ") + item.address;
title = interpolate(gettext("Unset Domain Name PTR for %s"), [item.address]);
// Store the zone ID so it can be used on submit
formConfig.model.floatingIpId = item.id;
formConfig.title = title;
@@ -49,7 +49,7 @@
/**
* @name list
* @description
* Get a list of DNS floating ips.
* Get a list of DNS floating IPs.
*
* The listing result is an object with property "items." Each item is
* a floating IP PTR record.
@@ -63,7 +63,7 @@
var config = params ? {params: params} : {};
return httpService.get(apiPassthroughUrl + 'v2/reverse/floatingips/', config)
.catch(function () {
toastService.add('error', gettext('Unable to retrieve the floating ip PTRs.'));
toastService.add('error', gettext('Unable to retrieve the floating IP PTRs.'));
});
}
@@ -71,14 +71,17 @@
var config = params ? {params: params} : {};
return httpService.get(apiPassthroughUrl + 'v2/reverse/floatingips/' + id + '/', config)
.catch(function () {
toastService.add('error', gettext('Unable to get the floating ip PTR ' + id));
toastService.add(
'error',
interpolate(gettext('Unable to get the floating IP PTR %s'), [id])
);
});
}
/**
* @name set
* @description
* Set a floating ip PTR record
* Set a floating IP PTR record
*
* @param {string} floatingIpID - ID of PTR record to unset
* @param {Object} data
@@ -104,7 +107,7 @@
/**
* @name unset
* @description
* Unset a floating ip PTR record
* Unset a floating IP PTR record
*
* @param {string} floatingIpID - ID of PTR record to unset
*