kabo-wiki-hive - slang-wiki en-kabo-center-wiki talk texts in slang / dialect changes local names special


front / face


The day-page-set for the talk in the slang-wiki
Read with preceding explanations.

edit the day-page "talk" for today edit the day-page "talk" for today

2008-02-23 Talk

I tuned the slang-wiki into the state-of-the-art wiki-net.

2007-04-02 Talk

is adapting the language codes possible?

Sam, I wonder about the language codes and using them for slangs and dialects. I guess they are fixed for the entire hive but I ask nevertheless: Is there a way - only on slang-wiki and Dialekt-wiki - to change the language codes displayed in the header into something else like “bay” (for Bavarian) instead of “eo” for example?


Sorry I missed this question earlier. Well, there is no way in the same hive to change it that I know of. Maybe someone like Alex or TheSheep? who is more versed in Perl programming than I could tell me a way to do it. Because, as OddMuse? works right now, all wikis run off the same main script, and the same config script, which is really just a set of exceptions to the main script in another file. All of the wikis on the hive also run off of the same “modules”, which are really just a bunch of different Perl scripts in yet another directory. The language checkboxes are one of those “module” perl scripts.

It looks like this:

 # Copyright (C) 2004  Alex Schroeder <alex@emacswiki.org>
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # GNU General Public License for more details.
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the
 #    Free Software Foundation, Inc.
 #    59 Temple Place, Suite 330
 #    Boston, MA 02111-1307 USA
 # In your CSS file, use something like this, for example:
 # span[lang=en] { background-color:#ddf; }
 # span[lang=fr] { background-color:#fdd; }
 # span[lang=de] { background-color:#ffd; }
 # span[lang=it] { background-color:#dfd; }
 $ModulesDescription .= '<p>$Id: lang.pl,v 1.8 2006/02/26 03:12:35 as Exp    $</p>';
 push(@MyRules, \&LangRule);
 sub LangRule {
   if  (m/\G\[([a-z][a-z])\]/gc) {
     my $html;
     $html .= "</" . shift(@HtmlStack) . ">"  if $HtmlStack[0] eq 'span';
     return $html . AddHtmlEnvironment('span', "lang=\"$1\"") . "[$1]";
   return undef;
 *OldLangInitCookie = *InitCookie;
 *InitCookie = *NewLangInitCookie;
 sub NewLangInitCookie {
   if ($q->param('setlang')) {
     my @old = split(/ /, GetParam('theme', ''));
     my @old_normal;
     my @old_languages;
     foreach $entry (@old) {
       if (length($entry) == 2) {
         push(@old_languages, $entry);
       } else {
         push(@old_normal, $entry);
     my @new = $q->param('languages');
     SetParam('theme', join(' ', @old_normal, @new));
 *OldLangGetNearLinksUsed = *GetNearLinksUsed;
 *GetNearLinksUsed = *NewLangGetNearLinksUsed;
 sub NewLangGetNearLinksUsed {
   my $id = shift;
   my $html = OldLangGetNearLinksUsed($id);
   my @langs = qw(da de en eo es fr he is it ko nl pl pt ru sv);
   my @selected = split(/ /, GetParam('theme', '')); # may contain elements  that are not in @langs!
   $html .= $q->div({-class=>'languages'}, "<form action='$FullUrl'>",
                    $q->p(GetHiddenValue('action', 'browse'),
                          GetHiddenValue('id', $id),
                          T('Languages:'), ' ',
                          $q->checkbox_group('languages', \@langs,  \@selected),
                          $q->hidden('setlang', '1'),
                          $q->submit('dolang', T('Show!'))),
   return $html;

This one script is called for all wikis in kabo wiki hive. You can see above that “@langs” contains the abbreviations for each language that is displayed.

We can ask Alex, but I think the only way to modify this module is to create a new “main” wiki, and put the modified module into it.

Although, I am interested to know if it is possible to create custom combinations of modules in hives. I’ll ask on the IRC channel today.

Thanks Sam. About as I expected it (although not understanding much of it). A new hive would be a solution in case it would get serious. The slang-wiki-hive, das Dialekt-wiki-Nest. But I probably won’t have much time for connecting English slang or German dialect communities anyway ;) But good to know.

2007-03-20 Talk

poietic aggregator added

Ha! I made it to add the [PoieticAggregator? poietic aggregator] to the bar to the right. I admit, the two different uses of colors - once for slangs / dialecs and to the right for “people” - is confusing for somebody new. But it is explained on the respective pages and the advantages of the aggregator are obvious. It “shortcuts” the changes.

2007-03-19 Talk

multi-slangy ambient

Ok, I set this up similar to the German Dialekt-wiki. My English is not sufficient to contribute to translations here. I set London English and Scottish English as examples - or should it be Cockney and Scottish? Scotland sure has many slangs / dialects itself, maybe even enough to keep two or more wikis busy? Let’s start here, playfully, not taking things too scientific in the beginning - it’s easy to fork later. Thanks for setting some English slangs / dialects and for proposing or starting to translate a text. Something simple is best to get used to the new multi-slangy ambient ;)

Or rather these ones? (big)


Define external redirect: TheSheep OddMuse PoieticAggregator

EditNearLinks: MattisManzel

The same page on other sites: