I've started to rebuild the t() function into advanced_help_t(). It's not yet ready... I need some help for advanced_help_locale() what would make some other functions obsolete, too.

This implementation is required to allow the translation of context sensitive strings like advanced_help_t('<< @title', array('@title' => $topics[$prev[0]][$prev[1]]['title'])).

Comments

gábor hojtsy’s picture

What do you miss here which is not yet possible? I don't see the use case.

hass’s picture

The strings '<< ' . $topics[$prev[0]][$prev[1]]['title'] are not correct from context sensitive side. I'm not sure what will happen with JP or Arabic or Hebrew strings.

merlinofchaos’s picture

How does the existing book navigation handle it? It should theoretically be the same.

hass’s picture

Thank you for pointing out that book module also have this bug in book-navigation.tpl.php.

avpaderno’s picture

The patch proposed from hass makes sense; in some languages the position of the arrows should be different from the one for the English language.
I guess that languages which are read from right would place the arrows to the right of the link title.

gisle’s picture

Category: Bug report » Feature request
Issue summary: View changes
Status: Needs work » Closed (won't fix)

Six years has gone by without resolution. Time to close.

I think I get the point of this (re. #5). But if this is to fixed, it should be be part of Drupal's general translation framework, not implemented in each module that needs it.