update translation strings

This commit is contained in:
henrygd
2026-09-18 14:00:20 -04:00
parent 6e5440c21f
commit b347599928
5 changed files with 6 additions and 14 deletions

View File

@@ -192,12 +192,12 @@ export const containerChartCols: ColumnDef<ContainerRecord>[] = [
<Tooltip> <Tooltip>
<TooltipTrigger <TooltipTrigger
className="shrink-0 rounded-sm text-emerald-600 dark:text-emerald-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring" className="shrink-0 rounded-sm text-emerald-600 dark:text-emerald-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
aria-label={t`Image update available`} aria-label={t({ message: "Image update available", context: "Docker image" })}
onClick={(event) => event.stopPropagation()} onClick={(event) => event.stopPropagation()}
> >
<CircleArrowUpIcon className="size-4" aria-hidden="true" /> <CircleArrowUpIcon className="size-4" aria-hidden="true" />
</TooltipTrigger> </TooltipTrigger>
<TooltipContent>{t`Image update available`}</TooltipContent> <TooltipContent>{t({ message: "Image update available", context: "Docker image" })}</TooltipContent>
</Tooltip> </Tooltip>
)} )}
</div> </div>

View File

@@ -242,7 +242,7 @@ function SystemMultiSelect({
? t`Select systems` ? t`Select systems`
: selectedSystemIds.size === 1 : selectedSystemIds.size === 1
? systems.find((s) => selectedSystemIds.has(s.id))?.name ? systems.find((s) => selectedSystemIds.has(s.id))?.name
: t`${selectedSystemIds.size} systems selected`} : t`${selectedSystemIds.size} selected`}
</span> </span>
<ChevronDownIcon className="size-4 absolute end-4 top-1/2 -translate-y-1/2 opacity-50" /> <ChevronDownIcon className="size-4 absolute end-4 top-1/2 -translate-y-1/2 opacity-50" />
</Button> </Button>
@@ -450,7 +450,7 @@ export function AddMonitorDialog({ systemId, monitors }: { systemId?: string; mo
<div className="w-px h-full bg-muted"></div> <div className="w-px h-full bg-muted"></div>
<DropdownMenu> <DropdownMenu>
<DropdownMenuTrigger asChild> <DropdownMenuTrigger asChild>
<Button variant="outline" className="px-2 rounded-s-none border-s-0" aria-label={t`More monitor actions`}> <Button variant="outline" className="px-2 rounded-s-none border-s-0" aria-label={`More actions`}>
<ChevronDownIcon className="size-4" /> <ChevronDownIcon className="size-4" />
</Button> </Button>
</DropdownMenuTrigger> </DropdownMenuTrigger>
@@ -759,13 +759,7 @@ function MonitorDialogContent({
type="submit" type="submit"
disabled={loading || (!systemId && (isEditing ? !selectedSystemId : !selectedSystemIds.size))} disabled={loading || (!systemId && (isEditing ? !selectedSystemId : !selectedSystemIds.size))}
> >
{loading ? ( {isEditing ? (
isEditing ? (
<Trans>Saving...</Trans>
) : (
<Trans>Creating...</Trans>
)
) : isEditing ? (
<Trans>Save {{ foo: t`Monitor` }}</Trans> <Trans>Save {{ foo: t`Monitor` }}</Trans>
) : ( ) : (
<Trans>Add {{ foo: t`Monitor` }}</Trans> <Trans>Add {{ foo: t`Monitor` }}</Trans>

View File

@@ -254,7 +254,6 @@ export default function NetworkMonitorsTableNew({
<div className="relative"> <div className="relative">
<Input <Input
placeholder={t`Filter...`} placeholder={t`Filter...`}
title={t`Use commas to match any of multiple terms, e.g. "system1, system2"`}
value={globalFilter} value={globalFilter}
onChange={(e) => setGlobalFilter(e.target.value)} onChange={(e) => setGlobalFilter(e.target.value)}
className="ms-auto px-4 w-full max-w-full md:w-50" className="ms-auto px-4 w-full max-w-full md:w-50"

View File

@@ -44,7 +44,6 @@ export function FilterBar({ store = $containerFilter }: { store?: typeof $contai
<> <>
<Input <Input
placeholder={t`Filter...`} placeholder={t`Filter...`}
title={t`Use commas to match any of multiple terms, e.g. "system1, system2"`}
className="ps-4 pe-8 w-full sm:w-44" className="ps-4 pe-8 w-full sm:w-44"
onChange={handleChange} onChange={handleChange}
value={inputValue} value={inputValue}

View File

@@ -186,7 +186,7 @@ export function AvgMinMaxResponseChart({ monitorStats, monitor, chartData, empty
export function LossChart({ monitorStats, grid, monitors, chartData, empty, titlePrefix }: MonitorChartProps) { export function LossChart({ monitorStats, grid, monitors, chartData, empty, titlePrefix }: MonitorChartProps) {
const { t } = useLingui() const { t } = useLingui()
const lossTitle = t`Loss` const lossTitle = t({ message: "Loss", context: "Packet loss" })
const title = titlePrefix ? `${titlePrefix} — ${lossTitle}` : lossTitle const title = titlePrefix ? `${titlePrefix} — ${lossTitle}` : lossTitle
return ( return (