Page MenuHomePhabricator

Creating a link to TitleCase page changes text to titlecase
Closed, ResolvedPublic

Description

  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- } );


Version: master
Severity: normal

Details

Reference
bz67291

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 3:36 AM
bzimport added a project: ContentTranslation.
bzimport set Reference to bz67291.

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

Change 147078 merged by jenkins-bot:
Do not make the selection lowercase while passing to hook

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