OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: CrazedHarpooner on March 28, 2025, 10:38:20 pm

Title: [DONE][Suggestion] Add {0} reference in mod title to mod version in metadata.
Post by: CrazedHarpooner on March 28, 2025, 10:38:20 pm
Basically allow the STR_OPENXCOM language string to include {0} that points to the version number found in the mod's metadata file. This way we can mitigate cases where an incorrect mod version is displayed due to a translation or any other possible error like https://openxcom.org/forum/index.php?topic=5047.msg170816#msg170816

Code: [Select]
STR_OPENXCOM: "My Mod Name: {0}"
Title: Re: [Suggestion] Add {0} reference in mod title to mod version in metadata.
Post by: Solarius Scorch on March 29, 2025, 01:33:38 am
No idea how viable this is, but seconded so much.
Title: Re: [Suggestion] Add {0} reference in mod title to mod version in metadata.
Post by: Yankes on March 29, 2025, 02:22:09 am
`versionDisplay:` or `version:`?

[ps]

I pushed some "trash" changes to `test` branch, soon should be available at http://108.61.157.159/versions/win/ where this `{0}` should be supported.
As bonus test branch had some refactors with AI, I would be thankful if someone check if I did not break it.
Title: Re: [Suggestion] Add {0} reference in mod title to mod version in metadata.
Post by: CrazedHarpooner on March 29, 2025, 02:52:43 am
A quick look at some of the big mods around (40K, XCF, Chronicles, etc...) they all use 'version' and haven't seen 'versionDisplay'. If there has to be a choice I would propose 'version'. Alternatively, if someone would rather use 'versionDisplay' perhaps use {0} for one, {1} for the other and let the modders pick the one they want to show.
Title: Re: [DONE][Suggestion] Add {0} reference in mod title to mod version in metadata.
Post by: Meridian on March 29, 2025, 05:18:14 pm
Done.

https://github.com/MeridianOXC/OpenXcom/commit/b697bc492a1c6f4a737d46d29289b62a98f2eca8