minefortress icon indicating copy to clipboard operation
minefortress copied to clipboard

Prepare the mod for translation

Open remmintan opened this issue 1 year ago • 4 comments
trafficstars

Describe the feature you'd like to see There are a lot of hardcoded values in the mod source code that are used to display messages in the interface. Because the values are hardcoded we can't translate the mod properly.

The hardcoded value example Text.literal: hardcoded value

we need to convert such values to translatable text pieces like this one Text.translatable: image image

This is done in three steps:

  1. Find any Text.literal
  2. Take text from it to a new key in the resources file resources/assets/minefortress/lang/en_us.json
  3. Replace Text.literal with Text.translatable with that key

Please feel free to refer to these issues in any PR where you make such changes. When all texts are moved to translation files we will close this issue.

remmintan avatar Jan 25 '24 22:01 remmintan

Is it okay if I take this issue and try to complete? Deadline planned?

ozgurozbek avatar Jan 27 '24 23:01 ozgurozbek

If I want to add a translation file, should I make a fork for it, or just push it on master ?

LeMeuble avatar Jan 28 '24 11:01 LeMeuble

If I want to add a translation file, should I make a fork for it, or just push it on master ?

Yes, check this PR #14

artembaechka avatar Jan 28 '24 11:01 artembaechka

Is it okay if I take this issue and try to complete? Deadline planned?

No deadline, but please open PR early, so your work will be visible and also it will be visible that the PR is not abandoned

remmintan avatar Feb 02 '24 19:02 remmintan