Last modified: 2008-10-02 17:28:31 UTC
If you enable translation by setting $smwgTranslate = true in SMW_Settings.php, Special:Browse looks up property names and other page names in the langlinks table to get translated names. (Cool!) However, Special:Browse does these lookups even when the user's language ($wgLang) is the same as the wiki's language ($wgContLang). I believe there will never be interlang "translations" in this case. For example, in an English wiki the langlinks table will never contain an "en" translation. It would be a performance boost not to perform all this work if the user's language is the wiki's language. The test in smwfTranslateTitle() should be something like: if ( $smwgTranslate ) { global $wgLanguageCode; // Only make expensive DB queries if user's language differs from wiki. if ($language->getCode() != $wgLanguageCode) { ... do the langlinks DB query } else { ... return title's fullText/text
Since the translation system was completely removed, the bug does not apply anymore. For creating a new translation system the comment though must to be taken into account.