Last modified: 2014-03-12 12:05:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63251, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61251 - Spanish magic word for "raw" should have a trailing colon (sinFormato:, sinPuntos:)
Spanish magic word for "raw" should have a trailing colon (sinFormato:, sinPu...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: This, that and the other (TTO)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-12 05:15 UTC by gnosygnu
Modified: 2014-03-12 12:05 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
List of "raw" definitions in other languages (5.09 KB, text/plain)
2014-02-12 05:15 UTC, gnosygnu
Details

Description gnosygnu 2014-02-12 05:15:41 UTC
Created attachment 14570 [details]
List of "raw" definitions in other languages

--------------
RECOMMENDATION
--------------
The following is defined in /IP/languages/messages/MessagesEs.php:
	'raw' => array( '0', 'SINFORMATO', 'SINPUNTOS', 'RAW:' ),

The first two aliases are missing trailing colons. The line should read: 
	'raw' => array( '0', 'SINFORMATO:', 'SINPUNTOS:', 'RAW:' ),


--------
DRAWBACK
--------
There may be pages that are using SINFORMATO or SINPUTOS without the colon. I would think that these pages are few and far inbetween because {{sinformatoTemplateName}} is not legible. There do not seem to be any main namespace pages in any es wiki that use this construct.[1]
	

----------
BACKGROUND
----------
The construct "{{raw..." can have two different behaviors:
- "raw magic word": {{raw:A}} will transclude the contents of Template:A
- "template named raw": {{raw}} will evaluate a template called Template:Raw

However, in MessagesEs.php, SINFORMATO and SINPUNTOS are defined without a colon.

This would mean that the "raw magic word" behavior would have to be invoked by the following {{sinFormatoTemplateName}}. Compare this to {{raw:TemplateName}}. The absence of a colon would make the former hard to read.

This absence of a trailing colon is unique to MessagesEs.php alone. None of the other 40 languages that override the default "raw" omits a trailing colon. See the attachment: Messages_and_raw.txt

In addition, es.wikisource.org happens to have a template called sinformato: https://es.wikisource.org/wiki/Plantilla:SinFormato.[2] Several pages actually have {{sinFormato}} as the first line in the wikitext, which MediaWiki is currently outputting as the literal {{sinFormato}}.[3] Although these appear to be the only 10 pages that use {{sinFormato}} and each of the 10 can be edited individually to use {{sin formato}}, the problem still remains that {{sinformatoTemplateName}} is a construct that is illegible and prone to error.


-----
NOTES
-----
[1]: The Main (0) and Project (4) namespaces of the following dumps were parsed with XOWA:

2014-01-28	eswiki
2014-01-30	eswiktionary
2014-02-03	eswikisource
2014-02-01	eswikivoyage
2014-02-08	eswikiquote
2014-02-07	eswikibooks
2014-02-09	eswikiversity
2014-01-24	eswikinews

No occurrence of {{SINFORMATO}} or {{SINPUTOS}} (without a colon) were found, except for those pages listed in [3]. This makes sense as {{sinFormatoTemplateName}} would probably not be intuitive to many editors.

Note the following reservations:
- The XOWA parser is not the same as the MediaWiki parser, so it's possible it may miss instances (I doubt it, but then again I am the XOWA developer.)
- Only pages in the Main and Project namespaces were scanned. Other namespaces may be using the non-trailing-colon syntax
- Only pages in the listed dumps were scanned. Recent edits or history versions may be using the non-trailing-colon syntax
- None of the pages in derived Spanish wikis were scanned ($fallback = 'es'). This includes the wikis in the following language codes: 'an'; 'arn'; 'ay'; 'gn'; 'lad'; 'nah'; 'qu' 

[2]: Specifically, Plantilla:SinFormato redirects to https://es.wikisource.org/wiki/Plantilla:Sin_formato

[3]: The following are the only known pages in namespace 0 of the 2014-02-03 es.wikisource.org dump:

https://es.wikisource.org/wiki/El_Monitor_Araucano_Tomo_I,_N°1
https://es.wikisource.org/wiki/El_cajón_oblongo
https://es.wikisource.org/wiki/Segunda_bula_Inter_Caetera_de_Alejandro_VI_del_4_de_mayo_de_1493
https://es.wikisource.org/wiki/Arenga_de_Santa_Rosa
https://es.wikisource.org/wiki/Socialismo_de_Estado_y_anarquismo
https://es.wikisource.org/wiki/Fuero_de_Llanes
https://es.wikisource.org/wiki/Conversación_con_una_momia
https://es.wikisource.org/wiki/Título_de_tierras_de_Los_Llanos_de_Santa_Rosa
https://es.wikisource.org/wiki/Carta_a_Silvia
https://es.wikisource.org/wiki/El_hundimiento_de_la_Escuadra_Peruana
Comment 1 Gerrit Notification Bot 2014-02-12 06:37:35 UTC
Change 112852 had a related patch set uploaded by TTO:
Fix some omitted colons in Spanish magic word l10n

https://gerrit.wikimedia.org/r/112852
Comment 2 gnosygnu 2014-02-12 13:33:10 UTC
Thanks for reviewing MessagesEs.php and changing the other colon-implied magic words as well.
Comment 3 db [inactive,noenotif] 2014-02-15 13:18:23 UTC
You can fix this by yourself on translatewiki.net, will than be exported from there to git master (Needs translator rights, use the First steps on the main page https://translatewiki.net).

https://translatewiki.net/w/i.php?language=es&module=words&title=Special%3AAdvancedTranslate

Looks like someone already changed it.
Comment 4 Gerrit Notification Bot 2014-03-12 12:01:55 UTC
Change 112852 merged by jenkins-bot:
Fix some omitted colons in Spanish magic word l10n

https://gerrit.wikimedia.org/r/112852

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links