Jan 032011
 

From the beginning I was going to make this blog multilingual, with some content in russian, some in english, and some in both. Unfortunately I was unable to find a “good enough” technical way to do that.

I want to make blog somewhat “language-symmetric”. Language control widget should allow to select “preferred language” (russian or english), with default detected from browser settings, and fallback to english only if detection fails. Also with a checkbox “show content in other language”, selected by default. “Preferred language” should be used to display site’s interface (title, sidebars, etc) and also used for content if possible. Content not available in “preferred language” should be shown in other language if “show content in other language” is selected, or hidden otherwise.

Using some spare time at new year holidays, I looked at what is available for “multilingual wordpress” now. And I was unable to find a solution for what I want. Language Switcher plugin that I’ve once installed, was abandoned upstream. Those that are currently active (qTranslate, WPML, mLanguage) all seem to have strong notion of “default language”, e.g. on first open site is displayed in “default language”, and no possibility to fallback from default to non-default language if post available only in later.

I’ve asked a question about what I want at WPML forum. Let’s see if any interesting information will arrive – either there or here :) .

 

There are lots of wikies in the web running on MediaWiki software. Most of those are far not as large as WikiPedia, but contain only several 10s or 100s of pages.

Today I faced a situation when it would be good to download entire content of a MediaWiki installation, for futher offline browsing.

Doing so using variants of wget --mirror turned to be next to impossible, because wget ended downloading all edit- and special-links, and was unable to complete within an hour, then I interrupted it. Using --reject flag did not help because it does not stop wget from following and downloading link, it just removes the file after download.

Here is a solution that I found:

wget -k -p -r -l 1 --html-extension --reject '*=*' http://linux-raid.osdl.org/index.php/Special:Allpages

This command completed in several seconds, and produced exactly what I wanted – cross-linked copies of all wiki pages, and almost no garbage.

If there is a better method, please let me know :)

 

Why in the world your webmasters think that you should decide if your reader will read wide or narrow text pages?

Ever heard that web browser windows are resizable?

If I have my window resized narrow – and I may have that for a reason! – why in the world I’m seeng horizontal scrollbar and text is behind right window border, while half of window contains nothing than background?

If I have my window resized wide – and I may have that for a reason! – why in the world I have to look at huge empty pads at both sides while text (e.g. code examples) is not fitting in the central field, for the best having ugly horizontal scrollbar attached, but more often just garbling other text on right?

P.S.
Still searching a nice-looking non-fixed-width wordpress theme with internationalization support …

© 2011 yoush.homelinux.org Suffusion theme by Sayontan Sinha