Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions web/src/components/network/FormattedIpsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { sprintf } from "sprintf-js";
import Link from "~/components/core/Link";
import { NETWORK } from "~/routes/paths";
import { useIpAddresses } from "~/hooks/model/system/network";
import { _ } from "~/i18n";
import { _, n_ } from "~/i18n";

/**
* Displays a formatted list of IP addresses from connected devices.
Expand Down Expand Up @@ -71,15 +71,15 @@ export default function FormattedIPsList() {
// is the number of remaining IPs. The text wrapped in square brackets []
// is displayed as a link. Keep the brackets to ensure the link works
// correctly.
text = _("%1$s, %2$s and [%3$d more]");
text = n_("%1$s, %2$s and [%3$d more]", "%1$s, %2$s and [%3$d more]", rest.length);
params = [firstIPv4, firstIPv6, rest.length];
} else {
// TRANSLATORS: Displays a single IP address (either IPv4 or IPv6) with
// count of additional IPs (e.g., "192.168.122.237 and [2 more]"). %1$s is
// the IP address and %2$d is the number of remaining IPs. The text
// wrapped in square brackets [] is displayed as a link. Keep the brackets
// to ensure the link works correctly.
text = _("%1$s and [%2$d more]");
text = n_("%1$s and [%2$d more]", "%1$s and [%2$d more]", rest.length);
params = [firstIPv4 || firstIPv6, rest.length];
}

Expand Down