Skip to content

Commit

Permalink
fix declaring a commented translatable string
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jan 30, 2025
1 parent 89caba2 commit 8463438
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions web/src/components/storage/DriveEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -517,16 +517,13 @@ const DriveHeader = ({ drive, driveDevice }: DriveEditorProps) => {
};

const [txt1, txt2] = text(drive).split("%s");
// TRANSLATORS: a disk drive
const toggleAriaLabel = _("Drive");

return (
<h4>
<span>{txt1}</span>
{
// how do I even make a translator comment in the syntactic context of a JSX component?
// FIXME: what label makes sense?
// TRANSLATORS: ...
}
<DriveSelector drive={drive} selected={driveDevice} toggleAriaLabel={_("Drive")} />
<DriveSelector drive={drive} selected={driveDevice} toggleAriaLabel={toggleAriaLabel} />
<span>{txt2}</span>
</h4>
);
Expand Down

0 comments on commit 8463438

Please sign in to comment.