这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@pchote
Copy link
Member

@pchote pchote commented Oct 1, 2024

A spin off from active discussions on Discord: The term "translation" is used without restraint throughout the code and yaml to refer to many distinct concepts - many of which may be language related, but are not translation (i.e the ability to select between different languages) related.

This PR applies a brute-force rename in an attempt to define more precise terminology for language- and (specifically) fluent-related concepts/code to free up "translation" for the actual (future) translation implementation details.

This intentionally avoids changing the external API exposed to yaml and lua, these are left to followup PRs as they will contain logic changes in addition to just renaming.

@pchote pchote added this to the Next Release milestone Oct 1, 2024
@pchote pchote force-pushed the translation-to-fluent branch from 3c106d0 to 8cfcada Compare October 1, 2024 18:34
@pchote
Copy link
Member Author

pchote commented Oct 1, 2024

I'd be happy to rename FluentProvider etc to LanguageProvider if there is a consensus that would be a better fit.

@PunkPun
Copy link
Member

PunkPun commented Oct 2, 2024

I find FluentBundle.Arguments quite weird. I recon it should be moved to FluentProvider as this is the class all outside code should interface with

I'm fine with either LanguageProvider or FluentProvider

@pchote
Copy link
Member Author

pchote commented Oct 2, 2024

Removed FluentBundle.Arguments completely, which saves a dictionary allocation each time.

@anvilvapre
Copy link
Contributor

Something generic like StringBundle or ResourceBundle - as used in some languages - sounds better to me. As using the Fluent library is just an implementation detail.

@pchote
Copy link
Member Author

pchote commented Oct 3, 2024

I more or less agree, but they were already discussed and ruled out for FluentBundle etc on Discord.

@pchote pchote force-pushed the translation-to-fluent branch from 2874407 to 7a4706b Compare October 3, 2024 19:34
Copy link
Member

@PunkPun PunkPun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't find any regressions

@PunkPun PunkPun merged commit 464e0dc into OpenRA:bleed Oct 4, 2024
3 checks passed
@PunkPun
Copy link
Member

PunkPun commented Oct 4, 2024

changelog

@Mailaender
Copy link
Member

I think this is actually more imprecise. @projectfluent is not about managing strings, but natural language translations. While this is just internal API and I like the more concise, params you didn't do the project any good with the renaming.

@Mailaender Mailaender mentioned this pull request Oct 20, 2024
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.

4 participants