Closed (fixed)
Project:
Advanced Help
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2008 at 21:21 UTC
Updated:
10 Nov 2008 at 20:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedHmm. This patch seems to go a little far. While the missing t() around 'Help' is bad (can't believe no one's caught that before now) is a no-brainer, you've got lots of little translatable strings that come out of the .ini file; the .ini file is translateable directly. I'm not sure that these variable strings should be run through t() like that.
I'm afraid I don't know what you're referring to with the module_exists construct.
Comment #2
hass commentedUps, I wasn't aware that some of this strings came out of the .ini files. I'm not sure about the combination... partly you take some out of the .ini, but partly not. I'm only guessing now - but
$items[] = advanced_help_l(t($name), "admin/advanced_help/$module");andadvanced_help_l(t(advanced_help_get_module_name($pmodule)), "admin/advanced_help/$pmodule");seems not inside the .ini files and is therefore correct, isn't it?If the DE translation would work I could test better... but I was unable to get this working in cck and advanced_help, yet.
POTX complains on this construct:
Comment #3
hass commentedAdditional for
t('<< @topic_title', array('@topic_title' => $topics[$prev[0]][$prev[1]]['title']))it seems like we need to rebuild the t() function into a advanced_help_t().Comment #4
hass commentedOk, as I've used a wrong folder for the html files this seems now working. But on "admin/advanced_help" the list items are not translated as they are not inside the .ini files. Not sure how we should fix the list building function as there is a mix of .ini file strings and core strings!?
Comment #5
Freso commentedOne other comment:
I don't know what's above the
else {, but if it sets$namelike theelsedoes (or it is set in theelse), thet($name)will translate an already translated string. Which could quickly and easily become a mess...Comment #6
merlinofchaos commentedI've committed the missing t() fixes; the rest I think are unnecessary unless I've missed something. WHich I may have, but they're fixed by making sure that they're pulled from the translated .ini file; let's do separate issues for that if they are a problem.
Comment #7
hass commentedWe missed one "Home" string. Here is a patch. Sooo trivial that I'm setting RTBC.
Comment #8
merlinofchaos commentedApparently this got in in the next commit (the patch was against 1.31 and 1.32 has the change already).
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.