Skip to content

Commit

Permalink
Switch to llm_pgettext for some newerer canned messages
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Oct 5, 2024
1 parent 22813ae commit f68d675
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/components/AccountWarning/CannedMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import { _, interpolate } from "@/lib/translate";
import { _, interpolate, llm_pgettext } from "@/lib/translate";

// These are the "canned messages" that Community Moderators can vote for.

Expand Down Expand Up @@ -290,27 +290,36 @@ moderator to let them know.
),
bot_owner_notified: (bot) =>
interpolate(
_(`
llm_pgettext(
"Message to acknowledge a report of a bot",
`
Thanks for your recent report about {{bot}}.
We've notified the owner of that bot.
`),
`,
),
{ bot },
),
ack_suspended: (reported) =>
interpolate(
_(`
llm_pgettext(
"Message to acknowledge a report of a repeat offender",
`
Thank you for your report. {{reported}} is a repeat offender, their account has been suspended.
`),
`,
),
{ reported },
),

ack_suspended_and_annul: (reported) =>
interpolate(
_(`
llm_pgettext(
"Message to acknowledge a report of a repeat offender and annul a game",
`
Thank you for your report. {{reported}} is a repeat offender, their has been suspended. \
The reported game has been annulled.
`),
`,
),
{ reported },
),
};

0 comments on commit f68d675

Please sign in to comment.