https://bugzilla.wikimedia.org/show_bug.cgi?id=67291

            Bug ID: 67291
           Summary: Creating a link to TitleCase page changes text to
                    titlecase
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ContentTranslation
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: niklas.laxst...@gmail.com
                CC: amir.ahar...@mail.huji.ac.il, asha...@wikimedia.org,
                    da...@sheetmusic.org.uk, kartik.mis...@gmail.com,
                    niklas.laxst...@gmail.com, pgi...@wikimedia.org,
                    run...@gmail.com, santhosh.thottin...@gmail.com,
                    sucheta.ghos...@gmail.com
       Web browser: ---
   Mobile Platform: ---

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to