wger icon indicating copy to clipboard operation
wger copied to clipboard

Naming issues when adding Category, Equipment or Muscle

Open rldaugherty opened this issue 1 year ago • 1 comments

Steps to Reproduce

  1. Adding any category, equipment or muscle through the administration area.
  2. Cleared cache through CLI.
  3. 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.

Image

Image

rldaugherty avatar Nov 19 '24 12:11 rldaugherty

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

rolandgeider avatar Nov 19 '24 18:11 rolandgeider

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?

morskipas avatar May 04 '25 20:05 morskipas

we now (finally) show the value if there's no translation

rolandgeider avatar May 16 '25 13:05 rolandgeider