Last modified: 2014-07-22 14:33: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 T69291, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67291 - Creating a link to TitleCase page changes text to titlecase
Creating a link to TitleCase page changes text to titlecase
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ContentTranslation (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Santhosh Thottingal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-30 09:47 UTC by Niklas Laxström
Modified: 2014-07-22 14:33 UTC (History)
9 users (show)

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


Attachments

Description Niklas Laxström 2014-06-30 09:47:22 UTC
1) Go to any Special:CX page with article
2) In translation column, type in Finland
3) Select the word
4) Add link

Observed: The text now says "finland"
Expected: The text remains "Finland" with link added

This is because the string is lowercased (without explanation) at modules/source/ext.cx.source.js
141-                    var selection = window.getSelection().toString();
142-                    if ( selection ) {
143:                            mw.hook( 'mw.cx.select.word' ).fire( selection.toLowerCase() );
144-                    }
145-            } );
Comment 1 Gerrit Notification Bot 2014-07-17 10:31:57 UTC
Change 147078 had a related patch set uploaded by Santhosh:
Do not make the selection lowercase while passing to hook

https://gerrit.wikimedia.org/r/147078
Comment 2 Gerrit Notification Bot 2014-07-17 11:37:27 UTC
Change 147078 merged by jenkins-bot:
Do not make the selection lowercase while passing to hook

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

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


Navigation
Links