Strange glithes with relatedlinks
Posted: Tue Mar 22, 2011 6:55 pm
Detected in the process of frontend translation, but related not only with this process
Preface
I had 3 independent installalation with the same codebase (1.5.5)
- mayorat.e-city.net.ru/blog/ - proving ground on local Apache without any additional frontends
- lazybadger.ru (tabacco theme) + lazybadger.net (brownpaper theme) on common hoster's platform (Apache + proxy)
All blogs use serendipity_event_relatedlinks 1.8 with default template (no overrides in themes originally) plugins/serendipity_event_relatedlinks/plugin_relatedlinks.tpl
Problem
Attempt to translate frontend produced different (in deep) results
Test URLs are
http://mayorat.e-city.net.ru/blog/archi ... kosti.html
http://www.lazybadger.ru/archives/165-I ... acii!.html
http://www.lazybadger.net/archives/109- ... mogut.html
Single change in serendipity_event_relatedlinks/UTF-8/lang_ru.inc.php lang-file (copy of lang_en.inc.php) is
-@define('PLUGIN_EVENT_RELATEDLINKS_LIST', 'Related Links:');
+@define('PLUGIN_EVENT_RELATEDLINKS_LIST', 'Связанные ссылки/записи:');
template_c dir was cleaned in all 3 installs
Now got differences
1. Net's page show me text "Ссылки:" instead of PLUGIN_EVENT_RELATEDLINKS_LIST (russian or english original, see above), even interesting, word "Ссылки:" missing totally in plugin's lang-file and s9y lang-file too
2. Mayorat and Ru shows me "Related Links:" identically, but cached version of template found only in one case: brownpaper*plugin_relatedlinks.tpl.php (Net-site), none for tabacco and bulletproof
3. Moved to theme dir on mayorat plugin_relatedlinks.tpl and changed template after it haven't any effect in output page (added HTML-comments around template content must be visible in rendered page) and in template_c state
I'm mad now
Preface
I had 3 independent installalation with the same codebase (1.5.5)
- mayorat.e-city.net.ru/blog/ - proving ground on local Apache without any additional frontends
- lazybadger.ru (tabacco theme) + lazybadger.net (brownpaper theme) on common hoster's platform (Apache + proxy)
All blogs use serendipity_event_relatedlinks 1.8 with default template (no overrides in themes originally) plugins/serendipity_event_relatedlinks/plugin_relatedlinks.tpl
Problem
Attempt to translate frontend produced different (in deep) results
Test URLs are
http://mayorat.e-city.net.ru/blog/archi ... kosti.html
http://www.lazybadger.ru/archives/165-I ... acii!.html
http://www.lazybadger.net/archives/109- ... mogut.html
Single change in serendipity_event_relatedlinks/UTF-8/lang_ru.inc.php lang-file (copy of lang_en.inc.php) is
-@define('PLUGIN_EVENT_RELATEDLINKS_LIST', 'Related Links:');
+@define('PLUGIN_EVENT_RELATEDLINKS_LIST', 'Связанные ссылки/записи:');
template_c dir was cleaned in all 3 installs
Now got differences
1. Net's page show me text "Ссылки:" instead of PLUGIN_EVENT_RELATEDLINKS_LIST (russian or english original, see above), even interesting, word "Ссылки:" missing totally in plugin's lang-file and s9y lang-file too
2. Mayorat and Ru shows me "Related Links:" identically, but cached version of template found only in one case: brownpaper*plugin_relatedlinks.tpl.php (Net-site), none for tabacco and bulletproof
3. Moved to theme dir on mayorat plugin_relatedlinks.tpl and changed template after it haven't any effect in output page (added HTML-comments around template content must be visible in rendered page) and in template_c state
I'm mad now