Skip to content

localization#2604

Open
silentmark wants to merge 5 commits into
moo-man:masterfrom
silentmark:localization
Open

localization#2604
silentmark wants to merge 5 commits into
moo-man:masterfrom
silentmark:localization

Conversation

@silentmark
Copy link
Copy Markdown
Contributor

More localization strings, cleanup and order of en.json, for easier translations/change tracking.

{
trigger: "manual",
label: "@effect.name",
label: game.i18n.localize("WFRP4E.ConditionName.Bleeding"),
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I'm not sure why this is necessary if the effect name itself is localized?

Copy link
Copy Markdown
Contributor Author

@silentmark silentmark Sep 7, 2025

Choose a reason for hiding this comment

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

@effect.name doesn't work well with localization - for unknown reasons, when translation is enabled - it doesn't even keep the original (non-translated) value, but treats "@effect.name" as a literal and keeps it that way.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

If this doesn't work with localizations then it should be investigated, as it would imply issues with other effects.

{
trigger: "dialog",
label: "Penalty to all Tests (@effect.name)",
label: game.i18n.format("WFRP4E.ConditionEffects.PenaltyToAllTests", {effect: game.i18n.localize("WFRP4E.ConditionName.Stunned")}),
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I feel like localizing script labels is a but much, most of them are hardly seen, and if it's necessary could just be replaced by the translation module?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this would require replacement of whole object in the config, which i wanted to avoid in this case. And since there weren't so many - I wanted to keep it simple. but again, its your call - i can remove it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@moo-man - please let me know, if you are in the end ok with this localization approach?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I'm going to say let's revert this one.

@silentmark silentmark marked this pull request as draft April 15, 2026 21:41
@silentmark silentmark marked this pull request as ready for review April 15, 2026 22:19
@silentmark
Copy link
Copy Markdown
Contributor Author

@moo-man - i've updated the PR for latest changes.

icon: "fas fa-circle",
name: "morrslieb",
title: game.canvas.scene?.getFlag("wfrp4e", "morrslieb") ? "Morrslieb - Currently On " : "Morrslieb - Currently Off",
title: game.canvas.scene?.getFlag("wfrp4e", "morrslieb") ? game.i18n.localize("Morrslieb - Currently On") : game.i18n.localize("Morrslieb - Currently Off"),
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This one is probably worth adding a key for

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