Skip to content

Conversation

G-Moris
Copy link
Contributor

@G-Moris G-Moris commented Aug 30, 2025

Error:

message = std::format(_("Connecting to {0}:{1} ..."), m_strHost, m_usPort);

Decision:

message = mtasa::format(_("Connecting to {0}:{1} ..."), m_strHost, m_usPort);

I modified CConnectManager.cpp to include an example of how it works. If that’s a problem, I can remove the changes I made to it.

@botder
Copy link
Member

botder commented Aug 30, 2025

With the introduction of placeholders {} you should start using the index, for example {0} to refer to arguments, when you're formatting a translatable string. This allows translators to reposition the arguments without breaking the formatting operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants