Extension talk:UniversalLanguageSelector

Jump to: navigation, search

About this board

I get a 404 when i try downloading this Extension.

Still? Works for me now, gerrit often has occasional problems but trying in a couple minutes is usually enough. --Nemo 18:12, 18 November 2012 (UTC)

Jepp, still 404, that is the link i get: http://upload.wikimedia.org/ext-dist/UniversalLanguageSelector-master-a17df39.tar.gz --92.225.91.115 19:56, 18 November 2012 (UTC)

Ah, extension distributor is almost always broken and there's no use in it when there are no versioned releases, try --Nemo 20:31, 18 November 2012 (UTC)
Sokote zaman (talkcontribs)

how to setup font new for skin vector?

please help me

Reply to "how to setup font new for skin vector"

Newly registered languages are not searchable

6
Sophivorus (talkcontribs)

If I add a language from my LocalSettings.php using:

$wgExtraLanguageNames['wy'] = 'Wayuunaiki';

Then the language is properly registered in MediaWiki (it can be selected from my preferences) but it's not searchable through the ULS (for example in the dropdown list of the Translate extension, when selecting the language I want to translate to). I tried running the script:

php extensions/UniversalLanguageSelector/data/LanguageNameIndexer.php

but still nothing. Is this normal behavior? Is it a bug? What do I need to do to make my newly registered language searchable? Thanks!!

Nikerabbit (talkcontribs)

Ugh I forgot this part. You would need to add the language name to the language database in ULS too. "wy" is not a valid language code by the way. You should follow the standards when creating codes that don't exist instead of choosing unused codes randomly: https://en.wikipedia.org/wiki/IETF_language_tag

Sophivorus (talkcontribs)

Thanks! ULS seems to create no table in the database, so when you speak of the "language database in ULS" I assume you mean the file extensions/UniversalLanguageSelector/data/LanguageNameSearchData.php correct? If so, then I'm afraid I'm a bit lost as to how to add a language there (it's quite a scary file) but it seems to be generated by a script, so maybe there's a script designed to add a new language? Me and any future inquirers would be very grateful if you could give me/us just a little more help. Thanks again!

Nikerabbit (talkcontribs)
Sophivorus (talkcontribs)

Thanks again! I checked my file extensions/UniversalLanguageSelector/lib/jquery.uls/src/jquery.uls.data.js and indeed it seems to have the language data I was looking for. However, the language I wanted to add, "Wayuunaiki" (aka "Wayuu") was already there, and not searchable! I did some tweaks to other languages to verify that the file is actually connected to the Translate search engine, and it is, but for some reason "Wayuu" can't be found. Could this actually be a bug? Are you able to find "Wayuu", or happen to notice what the issue may be?

I also tried adding a totally new language to the file with:

"gua": [
    "Latn",
    [
        "AM",
    ],
    "Guambiano"
],

(yes, I made up the language code) but no luck. What could be missing?

Nikerabbit (talkcontribs)

This combo should do it (yes it is horribly complicated and should be made simpler):

Add this to LocalSettings.php

$wgExtraLanguageNames['qqk'] = 'Quack';

Comment out the following line in UniversalLanguageSelector/data/LanguageNameIndexer.php

// $wgExtraLanguageNames = [];

Run the script (make sure you have cldr extension installed).

Add this to MediaWiki:Common.js:

mw.loader.using( [ 'ext.uls.mediawiki' ] ).done( function () {
	// These three lines are needed if languages/i18n/qqk.json doesn't exist
	var x = $.extend( {}, mw.config.get( 'wgULSLanguages' ), { qqk: 'Quack' } ); 
	mw.config.set( 'wgULSLanguages', x );
	$.fn.uls.defaults.languages = x;
	// This is needed if langauge isn't yet in the ULS language database
	$.uls.data.addLanguage( 'qqk', { script: 'Latn', regions: [ 'EU' ], autonym: 'Quack' } );
} );
Reply to "Newly registered languages are not searchable"
C933103 (talkcontribs)

Why when I type "English" in the search box, results does not include "Canadian English"?

Amire80 (talkcontribs)

Thanks. It's a known bug that we'll resolve soon.

Reply to "Searching problem."
Belze (talkcontribs)

When I use a webfont, the page is first loaded with the system font, and after a little time, the text is redisplayed in the web font. This happens for every clicked page and not just on the first time the font is cached. It makes for a bad browsing experience. There is always a moment where the text is not styled with the webfont Do you have any suggestion to solve this problem?

Amire80 (talkcontribs)

Sorry, not really. This is one of the reasons why webfonts are not enabled by default.

We may fix this in the far future, but we don't plan to work on it in the coming months.

Reply to "Fonts"
ArgonSim (talkcontribs)

Why is portuguese divided in two different languages? This makes maintenance and translations an ordeal, especially considering how close to each other they actually are.

He7d3r (talkcontribs)

Not really. If a message is translated the same way in the two variants, there is no need to translate it twice because MediaWiki uses language fallback to show the existing translation to users who choose the variant.

He7d3r (talkcontribs)
Amire80 (talkcontribs)

Where do you see it?

ArgonSim (talkcontribs)

I'm sorry for not being so specific; I was actually referring to the language selector right next to the user page link and the alerts icon, not to the one normally located on the sidebar. As you can see, Portuguese is currently divided in "português do Brasil" and "português", which cannot be justifiable when taking into account how similar to each other they actually are.

Amire80 (talkcontribs)

OK, so you are referring to the selector of the site's user interface language. This is expected behavior. In MediaWiki there are localizations for Portuguese and Brazilian Portuguese. This only refers to the user interface language of the site—the menus. Something like this is also available for English and British English and for some other pairs of language variants.

So this is not a Universal Language Selector issue.

If you think that MediaWiki's user interface should only be translated to one variant of Portuguese, that is an issue to discuss among Portuguese-speaking MediaWiki users and translators.

Reply to "pt and pt-br"

UniversalLanguageSelector conflicts with User Account Preferences

1
Strykes1 (talkcontribs)

I'm not sure why, but if this extension is enabled, I will not get access to the "Preferences" page under the User's homepage (as in where you can change your password and email address).

What I get is a "Database Error" on the page title, with the contents only displaying: "[4e71f2d9992b54b355af4b8e] 2016-12-26 15:12:39: Fatal exception of type "DBQueryError"". Is there something I need to with the database? The page returns to normal once I disable the extension.

Mediawiki: 1.28 UniversalLanguageSelector for 1.28.

phpMyAdmin: 4.0.10.14 Database server: MariaDB 10.0.27-MariaDB-cll-lve - MariaDB Server Web server: cpsrvd 11.60.0.28 / Database client version: libmysql - 5.1.73

Reply to "UniversalLanguageSelector conflicts with User Account Preferences"

Special:MyLanguage and Search Translation headers

4
Fabdoka (talkcontribs)

Hello everybody,

I use on multiple MediaWiki installations the MediaWiki language extension bundle. I'm very happy but I have two problems:

  1. The Extension: UniversalLanguageSelector passes, when selecting a language, the open article not on Special:MyLanguage so the article remains in the source language. How can I change it, or is there a possibility to send all URLs on Special:MyLanguage?
  2. Although it is possible to translate a heading, but the search for the translated title is not possible. How can I search for the translated headings?

Many thanks for your help.

Best regards

Fabian

Tuxxic (talkcontribs)

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;

Fabdoka (talkcontribs)

Hi @Tuxxic,

thanks $wgTranslatePageTranslationULS = true; works for me =)

Do you also have an answer to the second problem?

Tuxxic (talkcontribs)

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 !

Reply to "Special:MyLanguage and Search Translation headers"
Wikimanz (talkcontribs)

I've been using ULS on my website for quite some time. However, I recently installed mobilefrontend extension and would like to enable ULS to work on mobile website. I currently do not see ULS when mobilefrontend is enabled and browsing mobile website. How can I enable ULS on mobilefrontend?

Reply to "How to enable ULS on MobileFrotnend"

How-to reduce the number of, or reorder, languages

1
Hypergrove (talkcontribs)

in the language bar (ie the dropdown dialog)? setting wgULSLanguages or wgULSAcceptLanguageList  don't work for me. I have the 2015-03-30 version of ULS.

Reply to "How-to reduce the number of, or reorder, languages"
Gleki.arxokuna (talkcontribs)

What would be the code to move the button to the under the logo position? Currently i can copy

<a href="#" class="uls-trigger autonym" tabindex="0" role="button" aria-haspopup="true" original-title="">English</a>

and it works in any positions however, the name of the language is hardcoded and there is no magic word for changing it to the name of the currently dispalyed language. Any suggestions?

Nemo bis (talkcontribs)

Under the logo? Why, what skin are you using? To have it as it is on this wiki, just set $wgULSPosition = 'personal';.

Gleki.arxokuna (talkcontribs)

I'm using Vector. No, "personal" puts it to the personal bar. I want it directly under the logo banner.

Santhosh.thottingal (talkcontribs)
mw.config.get( 'wgULSCurrentAutonym' )

will give you the current language autonym. There is no easy way to have this in the ULS trigger. You need to have some javascript to show this text there.

Reply to "Under the logo?"