https://bugzilla.wikimedia.org/show_bug.cgi?id=32165

--- Comment #39 from Markus Krötzsch <[email protected]> 2011-11-12 
15:28:06 UTC ---
Thanks to all for clarifying their positions ;-) As was already explained
above, _CDAT is simply the internal name of the property, nothing a user will
ever see. But if you use User Interface strings like "Creation date" in
LocalSettings.php, it means that SMW first has to do a language (alias) lookup
to understand its own configuration. This is not desirable: the configuration
should be directly machine readable as it is. Otherwise, machine cycles will be
wasted in each request just for evaluating the configuration (and this effort
is not reduced by bytecode caching which otherwise reduces the effort of
reading LocalSettings.php on each run).

We could define a PHP constant that is more readable, but as Jeroen said above,
this would mean that the setting would cause errors if SMW is not included. Yet
I wonder if this is a problem in practice. In particular, it seems to me that
an assignment to "$variable[]" should also cause problems in PHP if $variable
is not defined before (which would be the case if SMW was not loaded). So maybe
we could have English based surface constants for the setting?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to