wger
wger copied to clipboard
Naming issues when adding Category, Equipment or Muscle
Steps to Reproduce
- Adding any category, equipment or muscle through the administration area.
- Cleared cache through CLI.
- Cleared cache in browser.
Expected results: Category, Equipment or Muscle appearing in the navigation
Actual results: It appears that the name displayed correctly, but the "subcategory" is displayed incorrectly, highlighted below. Although the image below shows the "Category", the issue also appears from muscles and equipment.
hi! yes, this is an ugly result of the way translations are currently handled (the same would happen on the mobile app). At the moment the categories, muscles, etc, are more or less considered static and need to be extracted with a script so they can be translated by the react or the flutter apps.
I just looked and it seems we can check if the keys exists with i18n.exists("foo") so we could at least output the original string
I have the same issue, it would be nice to show at least the DB value. Or is there a workaround to translate new equipment?
we now (finally) show the value if there's no translation