# 144 Bug Special page links ignore MediaWiki localization - Another Web Company
ArcadeDownloadsNewslettersForum MenuNavigationWhat AWC OffersWiki ToolsLogin or Create Account

Log in

You must have cookies enabled to log in to Main Site - Local.

 

# 144 Bug Special page links ignore MediaWiki localization

From Another Web Company

Viewed 432 times, With a total of 7 Posts
Have a suggestion, improvement, change or non-beta Forum Entension bug ? Please add them to the todo list

2.5.12 Update Release


Forum Vet
Wiki Edit 2995
Threads 153
Posts 1524

The following information is for Issue number 144.
Title: Special page links ignore MediaWiki localization
Submited on: 2010-09-04 19:25:30
Who: Merri
Type: Bug
Status: New
Summary:
MediaWiki URLs contain localized versions of "Special" pages. When using a MediaWiki language other than English there is a redirection from Special:AWCforum to LocalizedSpecial:AWCforum on each page load.


Im sorry, but i do not understand - can you post an example (PM if its to a private site).



_
~ What was once an opinion, became a fact, to be later proven wrong ~
  • Forum Ver. 2.5.12 has been released (05/05/2011), Download here.


Clicked A Few Times
Wiki Edit 0
Threads 3
Posts 14
Each link in the forum are in the format:

http://yoursite/Special:AWCforum/

Ignoring the MediaWiki language in use. For example, for Finnish it should be:

http://yoursite/Toiminnot:AWCforum/

Afaik MediaWiki needs to make one extra redirect call to the browser to fix the URL and this will slow down access to the forum. But I'm not an expert in HTTP so I'm not sure on the details.

The same applies to some other strings shown in the forum, for example user groups next to each post I write display bureaucrat, sysop when it should display byrokraatti, ylläpitäjä

I haven't extensively gone through the language pack files yet – but these strings should be taken from what MediaWiki is currently using, not via forum's own language pack. There are probably other cases as well where using MediaWiki language strings would be ideal.
Edited On 7:41:39 AM - Monday 06th, September 2010 by Merri

Clicked A Few Times
Wiki Edit 0
Threads 3
Posts 14
Even more on the language strings: they are not defined by context. What I mean with this that I have huge issues with subscribe/unsubscribe, because a single string is used in two different contexts (even if it seem that in English it is just fine):

When making a post, there is:

Subscribe: Unsubscribe, Via E-mail, Via MemCP list

These are used in Thread tools drop down menu as well:

Unsubscribe Via E-mail
Subscribe Via MemCP list

Now this gets very hard, because in the first case I'd like to translate Unsubscribe as "Ei tilausta (päätä tilaus)" which translates as "no subscribe (end subscribtion)" – but because this string is incorrectly re-used in the drop down menu context, I get weird results:

Ei tilausta (päätä tilaus) Email-tilaukset
Tilaus: Omat tilaukset

Not to forget the "Via" strings are also used in the top menu as well, which is again a different context.


I think I can workaround this issue, but it wastes a lot of my time to figure out a word that doesn't feel odd and actually works for each case.

Also related to this is that all the language strings are in a very bizarre order, I have to first translate "blind" and then see where my translations end up being used. I'm changing some strings for the fifth time as I found a new place where the same string is being used – and the context doesn't fit.

I guess you were changing the language strings with the next release, but I guess it is better to give feedback on it so that you can implement it better Going by context is the best way to go, and defining the string variables by where they are used really helps a lot.

Ie. 'mod_post', 'editing', 'views', 'quote'... are examples of badly defined variables, because it is unclear where they are used and what they relate to. Depending on context I could translate these in many different ways, 'quote' could be simply Lainaus or Lainaa, but 'editing' gets pretty complex: Muokkaa, Muokata, Muokataan, Muokkaus, Muokkauksessa... all depends on where it is being used and because I don't know it is hard to get it right on first try.

The are some cases that are OK, 'submit', 'preview', and I guess 'yes' and 'no' are pretty ok as they are. Although I'd still define them as 'send_submit' or somesuch just to make the context more defined.


To make you feel a bit better: I've seen worse language implementations! Just don't make me dig them up for you, I don't want to remember them!
Edited On 8:33:06 AM - Monday 06th, September 2010 by Merri

Forum Vet
Wiki Edit 2995
Threads 153
Posts 1524
Ok, now i understand the redirect of Special:AWCforum
I'll look into it now and see what i can come up with and post something soon.

As for the lang 'keys', i will definitely keep this in mind for the next major release, but im sorry to say, for now your gonna have to live with it, sorry.

_

Clicked A Few Times
Wiki Edit 0
Threads 3
Posts 14
For now it is ok, it'll get worse when far more people use it

I'll probably have a look at the source sometime and start suggesting (performance) improvements, but this is likely to happen in November in the earliest. Probably goes to next year, there is a lot of things to fix and get done. I've been out of the picture on the site far too long so it is about time I get back to it properly instead of doing some partial work here and there for just a little while

Forum Vet
Wiki Edit 2995
Threads 153
Posts 1524
As far as i can tell, Mediawiki loads the SpecialPage class before it loads any lang files so i can not pull from the $namespaceNames array.

A quick fix would to be add a new define() to the forums config.php and then make the two changes in the awc_forum.php (line 148-ish) file and the forums SpecialPage.php (line 70-ish) file.

Still gonna look for an automated way around this.

_

Forum Vet
Wiki Edit 2995
Threads 153
Posts 1524
Quote:Merri Sep 6th 8:58 pm
...I'll probably have a look at the source sometime and start suggesting (performance) improvements, but this is likely to happen in November in the earliest...

Sounds good to me, im sure it could use it (for the last two years, there have been alot of code just tossed together just to get it done (been too busy with the house to focus on the forum)).

Been looking around at this redirect issue and dont see an automated way around it.
Have you tried the the option above ?

_

Clicked A Few Times
Wiki Edit 0
Threads 3
Posts 14
Nope, I've actually decided not to touch the forum code at this time, at all. I'm staying with the official releases. It isn't an issue that needs to be fixed asap, I'm reporting these now that they're (hopefully) fixed by December when the new site is likely to go gold.


Forum >> AWC`s MediaWiki Extension`s >> AWC's MediaWiki Forum Extension



Who's here now Members 0 Guests 0 Bots/Crawler 0


AWC's: 2.6.0 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC