Hoi, If it becomes ugly after 15 languages, consider that there are something like over 7000 languages out there. This is not taking into account dialects and other linguistic entities that would make for something like over 30.000. Thanks, GerardM
On Thu, Aug 14, 2008 at 12:48 AM, Conrad Irwin conrad.irwin@googlemail.comwrote:
It can be done with javascript, I've done it on en.wiktionary. However the tool that does this ([[en:User:Conrad.Irwin/parser.js]]) does way too many other things. I ran into a peculiar bug with the # links to each section - but I'm sure if I were to roll it out again it could be resolved.
The parsing of the page is fairly easy to do, assuming that all language headers are <h2>, it's just a case of iterating over the whole document and moving nodes into boxes, tabbing between boxes is trivial to implement in javascript. The only issue occurs if you expect to get a language heading within a box, in which case you have to parse recursively which is much tougher.
The other thing to think about is Category links, do you want to split them into languages too, that could be the trickiest bit.
It becomes a little ugly after 15 or so languages, as the bar of tabs begins to take up a noticeable amount of the screen space, and so the useful information gets pushed further down out of sight.
It would in some ways be nice to have each language separated by some PHP allowing this effect for anonymous users too, but that leads to further issues with urls and it would not be a trivial extension to write.
Conrad
2008/8/13 Gerard Meijssen gerard.meijssen@gmail.com
Hoi, How many languages do you currently support? What would be the maximum
that
you could safely support ?? Thanks, GerardM
On Wed, Aug 13, 2008 at 5:35 PM, Анатолій Гончаров <ahonc.ua@gmail.com
wrote:
Sysop of Russian and Ukrainian Wiktionaries Al Silonov suggests to make tabs for different languages if the word uses in many languages. He made
example
here: http://ru.wiktionary.org/wiki/User:Al_Silonov/yucca . I made
another
example: http://uk.wiktionary.org/wiki/November . But these examples
use
subpages and we cannot add the tab "Add other language...". Can it be
made
using scripts and without subpages? And who can make it?
-- Анатолій Гончаров (Ahonc) mailto:Ahonc.ua@gmail.com _______________________________________________ Wiktionary-l mailing list Wiktionary-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wiktionary-l
Wiktionary-l mailing list Wiktionary-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wiktionary-l
Wiktionary-l mailing list Wiktionary-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wiktionary-l