Closed (won't fix)
Project:
Project
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2007 at 10:33 UTC
Updated:
23 Feb 2013 at 23:24 UTC
Jump to comment: Most recent file
Comments
Comment #1
hass commentedComment #2
dwwThe smallest change would probably be to add a new $op to hook_project_sort_methods() that returned an array of
method name => translated namemappings for each module, and change various places where we're presenting the sort methods in the UI to use this. Unfortunately, it's a little complicated, since you'd need to make sure you invoked the right module's implementation of the hook for any given sort method.The larger, but probably better change, would be a more major refactoring of this hook so that:
a) It didn't use module_invoke_all() but invoked the hook manually and created a nested array, with sub arrays for each module that implements the hook.
b) Changed the 'methods' op to return an array more like this:
Then, when a call site invoked the hook, it'd get back an array that looked something like this:
Of course, the latter is a bigger change, since it'll hit all the call sites that touch sort_methods, and might create new problems. I haven't thought about this much or looked too closely, so someone who cares will have to do a little more research and come up with a clear, well-thought out proposal.
Cheers,
-Derek
Comment #3
dwwWow, that's funny. I just came across nedjo's patch at http://drupal.org/node/66013#comment-104973 and it implemented some of the changes I'm talking about here to make these translatable. Not sure what he's got there will really work if we lose the data about what module each sorting method is from, but anyone who's going to start writing code for this should at least take a look at what he's got there and use that as a starting point for further consideration.
Comment #4
hunmonk commentedComment #5
vladimir.dolgopolov commentedThis patch based on nedjo's patch.
Added ability to translate "sort method" for users and admin/project/project-settings.
Comment #6
dries commented1. Taxonomy terms should not be translated using the t() function.
2. I'd expect this code to break functionality -- 'project' refers to the project module and shouldn't be altered:
3.
Comment #7
vladimir.dolgopolov commented1. Yes, my bad
2. I think no, because we had added this to find out the proper module
Comment #8
vladimir.dolgopolov commentedHere is new patch.
I'd removed translation of taxonomy term.
But about (2) - it's still here. So we need more tests about it.
Comment #9
hass commentedShouldn't this CNR for now?
Comment #10
aclight commentedThis doesn't seem right:
What happened to the "Browse" part?
Comment #11
hass commented5 years no progress and D6 seems not having these strings. Closing.