Closed (won't fix)
Project:
Activity
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2009 at 20:18 UTC
Updated:
11 Sep 2010 at 22:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
Scott Reynolds commentedDon't need both of these
And im pretty sure module_exists() is faster. But that is trivial and not what needs work. Need to confirm that tt() will check_plain(), and
Comment #2
aufumy commentedThank you for the review. I'd like your opinion on a discussion with Kars-T regarding the use of module_exists/function_exists versus a wrapper tt function for each contrib module.
The reason for the redundant function_exists('tt') is for the case that multiple contrib modules need to use tt() and add the same degrade path, so the first contrib module that does not find i18nstrings enabled, will define function tt(). The second contrib module that does not find i18nstrings enabled, will then also try to define function tt() which will result in a fatal error without function_exists()
Comment #3
aufumy commentedI was also re-considering about how t() is not supposed to be used for variables, and wondering whether it would be better to just
return $string(could be with check_plain() around).Comment #4
aufumy commentedUsing a wrapper function for tt()
Comment #5
shenzhuxi commented602668.patch confirmed
Comment #6
sirkitree commentedclosing. 1.x no longer supported.