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'])).
| Comment | File | Size | Author |
|---|---|---|---|
| D6_advanced_help_context_senstive_strings_step1.patch | 4.59 KB | hass |
Comments
Comment #1
gábor hojtsyWhat do you miss here which is not yet possible? I don't see the use case.
Comment #2
hass commentedThe 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.Comment #3
merlinofchaos commentedHow does the existing book navigation handle it? It should theoretically be the same.
Comment #4
hass commentedThank you for pointing out that book module also have this bug in
book-navigation.tpl.php.Comment #5
avpadernoThe 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.
Comment #6
gisleSix 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.