Named translation tags #10743

Closed
opened 2025-11-02 09:17:08 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @silverwind on GitHub (Apr 28, 2023).

Feature Description

Currently we have translation strings like

merged commit %[1]s into %[2]s %[3]s

This is impossible to understand for a translator without additional context. Better would be a syntax with named variables, like

merged commit {hash} into {branch} {relative-date}

Can Crowdin to do something like this?

Originally created by @silverwind on GitHub (Apr 28, 2023). ### Feature Description Currently we have translation strings like ``` merged commit %[1]s into %[2]s %[3]s ``` This is impossible to understand for a translator without additional context. Better would be a syntax with named variables, like ``` merged commit {hash} into {branch} {relative-date} ``` Can Crowdin to do something like this?
GiteaMirror added the type/enhancementtype/proposalmodifies/translation labels 2025-11-02 09:17:08 -06:00
Author
Owner
@wxiaoguang commented on GitHub (Apr 28, 2023): https://github.com/go-gitea/gitea/issues/23863 https://support.crowdin.com/icu-message-syntax/
Author
Owner

@silverwind commented on GitHub (Apr 28, 2023):

Close this in favor of https://github.com/go-gitea/gitea/issues/23863? The request here is not specifically for ICU syntax {count, plural}, but also for simple tags like {hash}.

@silverwind commented on GitHub (Apr 28, 2023): Close this in favor of https://github.com/go-gitea/gitea/issues/23863? The request here is not specifically for ICU syntax `{count, plural}`, but also for simple tags like `{hash}`.
Author
Owner
@wxiaoguang commented on GitHub (Apr 28, 2023): `the {var}` syntax is a subset of ICU message. https://unicode-org.github.io/icu/userguide/format_parse/messages/mf2.html https://crowdin.com/blog/2022/04/13/icu-guide#the-icu-message-format-and-module
Author
Owner

@silverwind commented on GitHub (Apr 28, 2023):

Okay, let's close then.

@silverwind commented on GitHub (Apr 28, 2023): Okay, let's close then.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10743