Allow context sensitive translation
hass - October 17, 2008 - 22:01
| Project: | Advanced help |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
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'])).
| Attachment | Size |
|---|---|
| D6_advanced_help_context_senstive_strings_step1.patch | 4.59 KB |

#1
What do you miss here which is not yet possible? I don't see the use case.
#2
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.#3
How does the existing book navigation handle it? It should theoretically be the same.
#4
Thank you for pointing out that book module also have this bug in
book-navigation.tpl.php.#5
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.