MediaWiki talk:Gadget-AnonymousI18N.js/Archive/2011

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Translations

This section was archived on a request by: DieBuche (talk) 17:20, 1 November 2011 (UTC)

French

{{edit request}}

Great tool, I had not noticed that it was already active.
French "seulement ce langage" should be changed to "sélectionner valider" (clearer and shorter)--Zolo (talk) 22:40, 7 January 2011 (UTC)

I'm not sure what you mean. Please provide a complete string that should replace the following
'Seulement ce langage'
Krinkletalk 15:45, 8 January 2011 (UTC)
Oh yes sorry, my correction wasn't very clear. It should be 'valider' and 'Clear memory' could be 'réinitialiser'.--Zolo (talk) 19:44, 8 January 2011 (UTC)
✓ Done It is indeed clearer. Jean-Fred 14:54, 8 February 2011 (UTC)

Portuguese ('pt' and 'pt-br')

{{editrequest}}

Please, add the 'pt' and 'pt-br' translations as follows:

msgHelp
Seleção do idioma
msgSelect
Selecionar
msgReset
Limpar a memória
msgSuggest
$1 está disponível em $2

Thanks! Helder 00:48, 8 January 2011 (UTC)

✓ AddedKrinkletalk 15:43, 8 January 2011 (UTC)

Swedish

{{edit request}}

Please add these Swedish translated strings:

  1. msgHelp
    'sv': 'Välj språk'
  2. msgSelect
    'sv': 'Välj'
  3. msgReset
    'sv': 'Rensa minnet'
  4. msgSuggest
    'sv' : 'Visa $1 på $2'

Thank you! // WikiPhoenix (Talk|Contr.) 12:51, 8 January 2011 (UTC)

✓ AddedKrinkletalk 15:51, 8 January 2011 (UTC)
Please edit these Swedish strings so it looks like this:
  1. msgSuggest
    'sv' : 'Visa $1 på $2'
  2. msgSuggestLink
    'sv' : 'svenska'
Thanks! // WikiPhoenix (Talk) 18:45, 23 October 2011 (UTC)
Was it not fully done in January? It was done - at least for the msgSuggest. Do not want to dig in the history now why it was changed then. Tired to search now. --Saibo (Δ) 03:14, 1 November 2011 (UTC)
Done --DieBuche (talk) 17:20, 1 November 2011 (UTC)

Dutch

{{edit request}}

In msgSuggest,

   'nl' : '$1 aangeboden in $2',

is bad Dutch. Suggest changing to:

   'nl' : '$1 in het $2',

McDutchie (talk) 12:37, 25 February 2011 (UTC)

German

Auswahl→ 'Auswählen',   
Wikimedia Commons in Deutsch → 'Wikimedia Commons auf Deutsch'  

Cheers --Saibo (Δ) 11:54, 2 May 2011 (UTC)

Catalan

{{Edit request}}

Please add these Catalan translations:

  • msgHelp
    'ca': 'Llengüa'
Erratum: In Catalan it is 'ca': 'Llengua'. -Aleator (talk) 10:53, 3 August 2011 (UTC)
{{Editprotected}}
  • msgSelect
    'ca': 'Selecciona'
  • msgReset
    'ca': 'Anul·la'
  • msgSuggest
    'ca' : 'Vegeu $1 en $2'
  • msgSuggestLink
    'ca' : 'català'

Thanks, it is great. --V.Riullop (talk) 16:58, 19 June 2011 (UTC)

✓ Done. --ZooFari 19:50, 3 July 2011 (UTC)
You forgot the , after each line you added here (only the last element does not need a ,) - causing syntax errrors and script failure. :-( I had asked Beria to fix it. Cheers --Saibo (Δ) 15:21, 5 July 2011 (UTC)
Oops :( --ZooFari 17:18, 5 July 2011 (UTC)

Estonian

{{Editprotected}} Please add this. Thank you!

  1. msgHelp: 'et': 'Keele valimine',
  2. msgSelect: 'et': 'Vali',
  3. msgReset: 'et': 'Puhasta mälu',
  4. msgSuggest: 'et': 'Kuva $1 $2.',
  5. msgSuggestLink: 'et': 'eesti keeles',

--88.196.241.249 12:54, 10 July 2011 (UTC)

✓ Done. --The Evil IP address (talk) 17:31, 21 August 2011 (UTC)

Wikimedia Commons in null

This section was archived on a request by: DieBuche (talk) 17:20, 1 November 2011 (UTC)

My IE8 shows "Wikimedia Commons in null" as anon. Looks nice... Der Umherirrende 21:46, 19 February 2011 (UTC)

Which browser, which page, what language ? Thanks –Krinkletalk 22:13, 19 February 2011 (UTC)
I am using IE8. I see that text on all pages, but when I visit the main page the first time I get a javascript error, but the description is confuse. My language is "de". You can try: Logout. Open a new window. Go to de.wp and than use "commons:" to go to here. A javascript error is shown. Change to a other page and the message is there, but no javascript error. Der Umherirrende 22:43, 19 February 2011 (UTC)
Works after this fix. Thanks. Der Umherirrende 08:13, 20 August 2011 (UTC)

See also Commons:Village_pump/Archive/2011/03#language_script_with_problems_IE for a bug report. I do not know if it is still broken. But as no one has responded here it probably is. Cheers --Saibo (Δ) 00:23, 2 May 2011 (UTC)

Misbehaving combo in IE9

This section was archived on a request by: DieBuche (talk) 17:20, 1 November 2011 (UTC)

The on-hover width CSS rules break the combobox in (at least) IE9. It shows fine until you expand the options and then move the mouse down the options list to choose something, i.e. not hovering above the combobox itself anymore, which causes the width to reset, after which the options list closes itself immediately. (Very annoying game to play.) Not sure whose bug this is, but it definitely needs a fix/workaround.

Maybe just playing with something along the lines of #p-AnonymousI18N select:focus { width: auto !important } might work?

--Mormegil (talk) 10:29, 1 April 2011 (UTC)

I added the abovementioned CSS and it seems to improve the situation. --Mormegil (talk) 10:03, 3 April 2011 (UTC)
The same problem was still happening on Firefox 3.6, apparently because of the overflow property change. I simplified the CSS by removing all the hover and focus rules (except for the cursor-changing one, which seems harmless), which seems to work fine on all the browsers I've tested it on — the select box stays narrow, but the drop-down menu that appears below it is still wide enough to show all the language names. —Ilmari Karonen (talk) 19:09, 23 May 2011 (UTC)

Terrible grammar in Polish and probably Russian and Czech as well

This section was archived on a request by: DieBuche (talk) 17:20, 1 November 2011 (UTC)

Hello,

Polish-speaking users get this now:

Witryna Wikimedia Commons jest dostępna w językach (Polski)

.

The link marked with ()

This should be something like this:

Serwis Wikimedia Commons można również (przeglądać po polsku)

.

I can't suggest a proper JS fix, since I don't quite follow the logic of the script, for example why do we need to substitute $2 with some other language name?

Anyway, please remove it for now for Polish at least until we can find a solution.

 « Saper // @talk »  22:52, 1 May 2011 (UTC)

Thanks for this change, but the effect now is:

View Wikimedia Commons in Polski

 « Saper // @talk »  00:50, 2 May 2011 (UTC)

For explanation: Saper's problem is that now the English sentence has a Polish word in it.
Maybe we could do it like this:
'en' : 'View $1 in $LINKSTART$English$LINKEND$',
'pl' : 'Serwis $1 można również (przeglądać po $LINKSTART$polsku$LINKEND$)',
Or even leave the $1 away and use a translated "Wikimedia Commons" since it could be different in some languages (some characters added or accents added). Cheers --Saibo (Δ) 02:13, 2 May 2011 (UTC)
The problem is that it is impossible to translate correctly, the English message is caused by an attempt to remove Polish from the list of messages.  « Saper // @talk »  02:40, 2 May 2011 (UTC)
I have taken your sentence from above it is correct. But: This would eed some modifications in the script of course as the placeholder $2 has been exchanged by two markers. Cheers --Saibo (Δ) 03:03, 2 May 2011 (UTC)
This section was archived on a request by: DieBuche (talk) 17:20, 1 November 2011 (UTC)

Hi all,

Per request on this talk page and on IRC, I've implemented a way to specify custom link text.

Syntax:

 'en' : ['View $1 in $2', 'English'],

If you'd like currently bad-grammar messages to be fixed, please provide the new message in the above syntax. Thanks! –Krinkletalk 21:48, 11 May 2011 (UTC)

Thanks! That seems to solve the problem. Here is a patch for some languages:
--- a/i18n.js	Thu May 12 00:07:52 2011 +0200
+++ b/i18n.js	Thu May 12 02:30:18 2011 +0200
@@ -95,19 +95,19 @@
 			'sv': 'Rensa minnet'
 		},
 		msgSuggest : {
-			'cs' : ['$1 je dostupný v jazyce $2', 'Česky'],
+			'cs' : ['$1 je dostupný $2', 'v češtině'],
 			'da' : ['Se $1 på $2', 'Dansk'],
-			'de' : ['$1 in $2', 'Deutsch'],
+			'de' : ['$1 auf $2', 'Deutsch'],
 			'en' : ['View $1 in $2', 'English'],
 			'es' : ['$1 disponible en $2', 'Español'],
-			'fr' : ['$1 est disponible en $2', 'Français'],
+			'fr' : ['$1 est disponible $2', 'en français'],
 			'ko' : ['$1 $2 로 보기', '한국어'],
 			'nl' : ['$1 aangeboden in het $2', 'Nederlands'],
-//			'pl' : ['Witryna $1 jest dostępna w językach $2', 'Polski'],
+			'pl' : ['$1 można przeglądać $2', 'w języku polskim'],
 			'pt' : ['$1 está disponível em $2', 'Português'],
 			'pt-br' : ['$1 está disponível em $2', 'Português do Brasil'],
-			'ru' : ['$1 доступен на $2', 'Русский'],
-			'sv' : ['Visa $1 på $2', 'Svenska']
+			'ru' : ['$1 доступен $2', 'на русском языке'],
+			'sv' : ['Visa $1 $2', 'på svenska']
 		},
 
 		// Get user language
 « Saper // @talk »  22:19, 11 May 2011 (UTC)
Thank you Krinkle! :-)
Saper, why not (for example) simply 'de' : ['$1 auf $2', 'Deutsch'],? Would be easier to read. Cheers --Saibo (Δ) 00:25, 12 May 2011 (UTC)
I think in some languages it's better to include preposition in the link. But I have updated the patch above, no problem.  « Saper // @talk » 

low prio bug for secure server: Error thrown at line 475, column 39 in <anonymous function: getReferrerLang>()

This section was archived on a request by: DieBuche (talk) 17:26, 1 November 2011 (UTC)

on a https://secure.wikimedia.org/wikipedia/commons/wiki/File:Braunsdorf_Denkmal_GstNr_619.jpg using Opera 11.00

after switching to "Deutsch" (also tried with "Esperanto") (tried with the suggestion banner on top and with the menu on the left bar). Also if I click "clear memory" after having selected (pages display in this lang. then) a language.

JavaScript - https://secure.wikimedia.org/wikipedia/commons/wiki/File:Braunsdorf_Denkmal_GstNr_619.jpg?uselang=de
Inline script thread
Uncaught exception: TypeError: Cannot convert 'matches' to object
Error thrown at line 475, column 39 in <anonymous function: getReferrerLang>() in https://secure.wikimedia.org/wikipedia/commons/wiki/File:Braunsdorf_Denkmal_GstNr_619.jpg?uselang=de:
    if ( typeof this.alternateSites[ matches[0] ] !== 'undefined'  )
called from line 491, column 4 in <anonymous function>() in https://secure.wikimedia.org/wikipedia/commons/wiki/File:Braunsdorf_Denkmal_GstNr_619.jpg?uselang=de:
    window.AnonymousI18N_suggestlang = referrerWikiUselang.getReferrerLang();
called via Function.prototype.call() from line 3, column 1581 in <anonymous function: ready>(fn) in https://secure.wikimedia.org/wikipedia/commons/w/load.php?debug=false&lang=de&modules=jquery%7Cmediawiki&only=scripts&skin=vector&version=20110705T233640Z:
    fn.call(document,jQuery);
called from line 486, column 1 in https://secure.wikimedia.org/wikipedia/commons/wiki/File:Braunsdorf_Denkmal_GstNr_619.jpg?uselang=de:
    $( document ).ready( function() {

Same in Firefox 3.6

matches is null
https://secure.wikimedia.org/wikipedia/commons/wiki/File:Braunsdorf_Denkmal_GstNr_619.jpg
Line 474

The Gadget does not work anymore then: selection box on the left is not displayed.

Works on non-secure server. So this error is not a big problem as most anons will be using the non-secure server. Anyway: something is wrong.

Maybe it is because of the Regexp some lines above which searches for "/^http\:" ?.

Cheers --Saibo (Δ) 14:38, 30 July 2011 (UTC)

Was done by someone --DieBuche (talk) 17:26, 1 November 2011 (UTC)
This section was archived on a request by: DieBuche (talk) 08:10, 2 November 2011 (UTC)

Go on https://commons.wikimedia.org/wiki/File%3ANew_Editors_Not_Welcome%3F_When_Wikipedia_articles_trend.pdf with a German Opera 11.51, German IP(?), not logged in: You see the banner "Wikimedia Commons auf Deutsch" on top. "Deutsch" is linked to some JS. Clicking it should reload this page with a German UI. Instead it loads: https://commons.wikimedia.org/wiki/File:New_Editors_Not_Welcome?uselang=de

The same happens if I select Deutsch from the dropdown on the left side. --Saibo (Δ) 19:15, 19 October 2011 (UTC)

Not reproducible in FF--DieBuche (talk) 08:10, 2 November 2011 (UTC)
Confirm - works in FF 7.0.1 (WXP), IE8 (WXP), SRWare Iron 14 (WXP). Works not in Opera 9.64 (WXP). If it is just a Opera problem (apparently) we can ignore it - just if something is not correctly escaped we should be careful since it could cause (security) problems. --Saibo (Δ) 21:43, 1 November 2011 (UTC)
It seems to be actually fixed in 11.52 . Anyway, there would be nothing we could actually do if Opera was mangling location.href on assignment. --DieBuche (talk) 08:10, 2 November 2011 (UTC)
Sure - I initially thought that there may be a missing escape in our code here. If you tried it in Opera 11.52 and it works - even better. Thanks. --Saibo (Δ) 12:09, 2 November 2011 (UTC)

Reset button

in German this would be

Clear Memory → 'Auswahl zurücksetzen',

but: I suggest to not translate this button at all - for any language (i.e. remove all translations). Reason is: if someone accidentally selects the wrong language or is on a PC with a different language browser maybe he could not read it otherwise. I suggest therefore:

Reset language

for the "Clear memory" button. This is understandable by most people and descriptive to the function of the button (it should not clear my memory ;-) ). Cheers --Saibo (Δ) 11:54, 2 May 2011 (UTC)

✓ Done -- RE rillke questions? 18:24, 14 April 2012 (UTC)
This section was archived on a request by: Rillke(q?) 17:52, 16 July 2013 (UTC)

Anon i18n in general

Why you don't do it the way translatewiki: does? It seems way more convenient as it gives me the right language without selecting anything. Also it doesn't forget the language as soon as I've started navigating from a page without "?uselang=" in it's address. Instead the "?setlang=" option remembers the language even after restarting the browser. 88.196.241.249 12:54, 10 July 2011 (UTC)

they use the Kieli extension. Looks good to me. -- RE rillke questions? 18:26, 14 April 2012 (UTC)
Now we have ULS and hopefully browser language detection by the servers sooen. -- Rillke(q?) 17:52, 16 July 2013 (UTC)
This section was archived on a request by: Rillke(q?) 17:52, 16 July 2013 (UTC)