On page ?q=myuserpoints there is a list below with the points earned so far. I guess the string for this is '!points Balance', whereas the category is put hard coded before that string.

For translatability it is required, to move the category to another position, so a variable has to be added into the string mentioned, for example '@category !points Balance', so that via the translation the position can be changed.

It would also be nice to have a little table for the listing below so that the numbers are under each other.

Could you also tell me, what 'net points' are?

Comments

FrankT’s picture

It's the same with the headings on page ?q=admin/user/userpoints and ?q=admin/user/userpoints/moderate: thare must be a variable containg the points category.

jredding’s picture

Component: Code: userpoints_basic » Code: userpoints API

Categories are being pulled directly from the term table thus they should maintain whatever term is used on that screen.

Unfortunately this does not take into account having multiple translations of the same term (i.e. it used the default name of the term used to categorize the points).

FrankT’s picture

There seems to be a misunderstanding. Currently the display of the points is in the form of '@category !points Balance', but not in the form of a variable but hard coded the term/category before the string '!Points Balance'.

For the translation I need to switch the position of the category so that it results in something like '!Points balance @category'.

My only idea to set the position of the category depending on the languages needs is to use the string I suggested when opening this issue.

It's the same need on all 3 places I mentioned.

jredding’s picture

OK at least we're getting closer to the issue here. I'll try to take a look and see how we can accommodate this.

Feel free to take a look at the code and see if you can figure out how to make this happen.

berdir’s picture

Status: Active » Fixed

Looks like everything here has been addressed, so let's close this issue. Note that the branding feature currently doesn't work together with translations, see #791734: Translation of Branded Points.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.