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
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'])).

AttachmentSize
D6_advanced_help_context_senstive_strings_step1.patch4.59 KB

#1

Gábor Hojtsy - October 19, 2008 - 20:53

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

#2

hass - October 19, 2008 - 21:05

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

merlinofchaos - October 27, 2008 - 20:36

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

#4

hass - October 28, 2008 - 07:19

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

#5

kiamlaluno - December 28, 2008 - 13:10

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.

 
 

Drupal is a registered trademark of Dries Buytaert.