Hello,
I don't need ULS at my wiki, but now without ULS the language links are not shown. Can you remove this dependancy please?
Hello,
I don't need ULS at my wiki, but now without ULS the language links are not shown. Can you remove this dependancy please?
I have some issues with ULS at my wiki farm website.
At version 1.36.6 all worked fine and I didn't need ULS extension. Now I use:
MediaWiki | 1.39.3 |
PHP | 8.0.28 (cgi-fcgi) |
MySQL | 5.7.34 |
ICU | 57.1 |
I think that it can be changed with one of the configuration variables. $wgULSLanguageDetection is the first one I'd try.
I have tried, but it doesn't work. And in general extension works not so good with several bugs at my wiki farm:
Basically I don't need ULS extension as the language is determined by $wgLanguageCode, but I do need interwiki links. Previously at MW 1.38.6 all worked perfect without ULS extension.
I don't know how to resolve all this bugs (
You can change the language of an user by putting a &setlang=languagecode at the end of the URL. Then a small window pops up, asking the User if he want to change his language. Is their a way to remove that popup-window like in older Versions?
The instructions say to use compile.php
, but it seems not to exist. Is that instruction out of date?
How to get data (list of user’s languages in order of preference) from ULS to template
Added a lot of /* @noflip */ to css
Having hebrew set as the language on my website causes the sidebar and infoboxes to flip to the opposite side, messing up how the pages look. https://jojowiki.com
The side bar also covers my top menu. Any way to prevent the elements from flipping positions?
It's not an issue with the Universal Language Selector. The ULS is a selector—it only helps users select the language they want.
It's an issue with the skin on your site. Hebrew, Arabic, Persian, and other languages that are written from right to left (RTL) are supposed to have the sidebar and many other elements on the other side. The Vector skin is adapted to this well.
To adapt your skin, you'll have to tweak the CSS yourself. The page Directionality support can help you.
Is there a way to detect which language is currently used on a page on that page?
For example:
I have a page with "{{#langage}}" written on it.
If a user visits that page it says for example "Eng" if he is using English or "Ger" if he is using german.
Is there a way to archieve that?
When downloading the extension for Mediawiki 1.34 I get this error while tar unpacking:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
From https://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdistname=UniversalLanguageSelector&extdistversion=REL1_34 I get the link https://extdist.wmflabs.org/dist/extensions/UniversalLanguageSelector-REL1_34-21100eb.tar.gz; locally that expands fine. Are you using that archive or a different one?
Am following the Download link on the right hand side of the page which leads here: https://www.mediawiki.org/wiki/Special:ExtensionDistributor/UniversalLanguageSelector And selecting version 1.34 the downloaded file has that same name, yes. It's being downloaded onto my Windows system, from there I am uploading it to my Ubuntu server and then unpacking it. Haven't had any problems with any other extensions up until now... Well, I just tried again for the third time, and this time it worked, that's strange. I guess we can say this isn't an issue?
It's possible that the file was corrupted when you uploaded it via FTP (or whatever).
For the ease of users, I want to add Urdu (a language spoken in India and Pakistan) in the suggested languages list by default. How can I achieve it?
Where exactly do you want it to appear, and for whom?
If it's for yourself, simply clicking it once will make the software remember it and show it as suggested.
Thank you for your reply, I want to add it for virtual keyboard that appears in search box and for all users.
There already is a virtual keyboard for Urdu there. Click on the "..." at the bottom of the list, and search for Urdu. Once you do it once, it will appear as one of the first languages in the list.
On the Urdu Wikipedia it is already the first suggested language.
I can see that. My question is "how we can add a suggested language". For example, English is appearing their by default. So by default I want to add Urdu, Arabic, and English. It will ease users to "Click on the "..." at the bottom of the list" stuff. Thank you
English appears by default on English sites, Urdu appears by default on Urdu sites. Other languages appears on other sites. ULS also adapts itself to each user.
Recently Chrome browser starts to show me a message for mixed content (HTTP/HTTPS) when I open my private wiki. I've used the inspector and found this error message:
Mixed Content: The page at 'https://my.wiki.com/index.php/Home' was loaded over HTTPS, but requested an insecure script 'http://freegeoip.net/shutdown'. This request has been blocked; the content must be served over HTTPS.
On http://freegeoip.net/shutdown I found this message:
IMPORTANT - PLEASE UPDATE YOUR API ENDPOINT This API endpoint is deprecated and has now been shut down. To keep using the freegeoip API, please update your integration to use the new ipstack API endpoint, designed as a simple drop-in replacement. You will be required to create an account at https://ipstack.com and obtain an API access key. For more information on how to upgrade please visit our Github Tutorial at: https://github.com/apilayer/freegeoip#readme
So, according to the information placed on https://freegeoip.app/, my question is: Is it correct to set the relevant variable in the following way?
$wgULSGeoService = 'https://freegeoip.app/json/8.8.8.8?callback=?';
On line 305 of https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector/blob/master/UniversalLanguageSelector.hooks.php, it wrote:
$wgULSGeoService = 'https://freegeoip.net/json/?callback=?';
acutal loading url is like: https://freegeoip.net/json/?callback=jQuery32108xxxxxxxxxxxxxxxxx
I guess the format for freegeoip.app is correct https://freegeoip.app/json/8.8.8.8?callback=?
However, I tried to set $wgULSGeoService, but nothing changed in my wiki. Still loading from the shotdown url. Strange!
Hello everybody,
I use on multiple MediaWiki installations the MediaWiki language extension bundle. I'm very happy but I have two problems:
Many thanks for your help.
Best regards
Fabian
Hi, for 1), have you tried this snippet proposed on the MLEB ?
/**
* If set to true, when a user selects an interface language via ULS (Universal
* Language Selector), if the current page is a translatable page or a translation
* page then the user is also redirected to the corresponding translation page
* in the selected language.
*
* The language of the translation pages visited afterwards will still depend on the
* links followed (it will be the interface language only if the links use the
* Special:MyLanguage syntax).
* @since 2013-03-10
*/
$wgTranslatePageTranslationULS = true;
Hi @Tuxxic,
thanks $wgTranslatePageTranslationULS = true; works for me =)
Do you also have an answer to the second problem?
Hi @Fabdoka,
You're right, I have only the page name in home language followed by the code of the language it is translated.
I think it is not possible due to the way Translate is doing its job on title translation, but I can be wrong.
I think we can file a bug report on this, if it can be fixed !