Temporary Disabled. :) please Go back ⚓ T70077 [Compact links] Prioritise interwiki to language "X" if a lang="X" attribute is present in the page's HTML www.fgks.org » Address: [go: up one dir, main page] Include Form Remove Scripts Accept Cookies Show Images Show Referer Rotate13 Base64 Strip Meta Strip Title Session Cookies Page MenuHomePhabricatorSearchConfigure Global SearchLog InCreate Task Maniphest T70077 [Compact links] Prioritise interwiki to language "X" if a lang="X" attribute is present in the page's HTMLClosed, ResolvedPublicActionsEdit TaskEdit Related Tasks...Create SubtaskEdit Parent TasksEdit SubtasksMerge Duplicates InClose As DuplicateEdit Related Objects...Edit CommitsEdit MocksSubscribeMute NotificationsProtect as security issueAward TokenFlag For LaterAssigned TosanthoshAuthored ByNemo_bisJul 15 2014, 10:55 PM2014-07-15 22:55:00 (UTC+0)TagsUniversalLanguageSelector (Compact Language Links)ULS-CompactLinks (Prioritised languages)Language-Engineering July-September 2016 (ULS)Language-Q1-2016-17 Sprint 2 (Done)MW-1.28-release (WMF-deploy-2016-08-02_(1.28.0-wmf.13))User-notice-archive (Backlog)Referenced FilesNoneSubscribersAklapperAmire80Arrbeedchan• ElitregerritbotHe7d3rView All 15 SubscribersTokens"Piece of Eight" token, awarded by RandomDSdevel."Like" token, awarded by Elitre."Mountain of Wealth" token, awarded by jayvdb.DescriptionCopied from Pau's specifications: *'''Surface languages used in content.''' Articles contain content in different languages (e.g., an article about a Russian city will have the name in Russian even on the english wikipedia). Those languages indicate a special connection between the topic and the language. This may not be a language the user understands (so this criteria should not be a priority) but it may be a good option if there are remaining slots in the initial list of languages. Example: I visit https://en.wikipedia.org/wiki/Leo_Tolstoy with compact interlanguage linbks enabled The page contains <b>Lev Nikolayevich Tolstoy</b> (<a href="/wiki/Russian_language" title="Russian language">Russian</a>: <span lang="ru">Лев Никола́евич Толсто́й</span> Whatever interface language and other conditions apply to me, the interwiki to "ru" is displayed. As long as we limit it to 1-2 languages per page this should be a rather effective trick in the lucky (but important) cases where it applies, but it depends how efficient it is to scan the whole page like that.DetailsReference bz68077 SubjectRepoBranchLines +/-Show languages that appear in the page's textmediawiki/extensions/UniversalLanguageSelectormaster+26 -0Show languages that appear in the page's textmediawiki/extensions/UniversalLanguageSelectormaster+25 -0Customize query in gerritRelated ObjectsMentionsMentioned In T138524: Disable Compact Language Links on Russian WikivoyageT136677: Deployment of Compact Language LinksT135366: Create a list of extra common languages for ULS Mentioned Here T135366: Create a list of extra common languages for ULS Event Timeline• bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:35 AM2014-11-22 03:35:20 (UTC+0)• bzimport added a project: UniversalLanguageSelector.• bzimport set Reference to bz68077.• bzimport added a subscriber: Unknown Object (MLST).Nemo_bis created this task.Jul 15 2014, 10:55 PM2014-07-15 22:55:00 (UTC+0)Arrbee added a project: Language-Team.Dec 4 2014, 8:42 AM2014-12-04 08:42:34 (UTC+0)Arrbee set Security to None.Amire80 triaged this task as Medium priority.Dec 4 2014, 8:42 AM2014-12-04 08:42:43 (UTC+0)Amire80 removed a project: Language-Team.Aklapper added a project: ULS-CompactLinks.Mar 10 2015, 2:53 PM2015-03-10 14:53:57 (UTC+0)jayvdb awarded a token.Jun 20 2015, 3:17 AM2015-06-20 03:17:47 (UTC+0)jayvdb subscribed.Jun 20 2015, 8:10 AM2015-06-20 08:10:16 (UTC+0)Liuxinyu970226 subscribed.Sep 5 2015, 9:04 AM2015-09-05 09:04:44 (UTC+0)Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 5 2015, 9:04 AM2015-09-05 09:04:44 (UTC+0)Amire80 removed a parent task: T66793: Make compact interlanguage links default.Mar 14 2016, 6:00 AM2016-03-14 06:00:58 (UTC+0)Amire80 moved this task from Backlog to Other on the ULS-CompactLinks board.Mar 26 2016, 4:05 PM2016-03-26 16:05:55 (UTC+0)Amire80 moved this task from Other to Prioritised languages on the ULS-CompactLinks board.Mar 26 2016, 4:54 PM2016-03-26 16:54:53 (UTC+0)Amire80 added a project: Language-Engineering April-June 2016.Mar 30 2016, 8:51 AM2016-03-30 08:51:23 (UTC+0)Amire80 removed a subscriber: • wikibugs-l-list.• Nikerabbit moved this task from Backlog to ULS on the Language-Engineering April-June 2016 board.Mar 30 2016, 8:52 AM2016-03-30 08:52:16 (UTC+0)Amire80 mentioned this in T135366: Create a list of extra common languages for ULS.May 16 2016, 9:42 AM2016-05-16 09:42:50 (UTC+0)• Elitre subscribed.May 16 2016, 7:09 PM2016-05-16 19:09:08 (UTC+0)Arrbee edited projects, added Language-Engineering July-September 2016; removed Language-Engineering April-June 2016.Jun 15 2016, 8:47 AM2016-06-15 08:47:15 (UTC+0)Comment ActionsMoving out of current releasegerritbot subscribed.Jun 29 2016, 6:39 PM2016-06-29 18:39:05 (UTC+0)Comment ActionsChange 296615 had a related patch set uploaded (by Amire80): Show languages that appear in the page's text https://gerrit.wikimedia.org/r/296615gerritbot added a project: Patch-For-Review.Jun 29 2016, 6:39 PM2016-06-29 18:39:06 (UTC+0)Amire80 added a comment.Jun 29 2016, 8:00 PM2016-06-29 20:00:10 (UTC+0)Comment ActionsThis issue has been mentioned several times in recent community feedback, so I committed a very simple patch. It needs review not just for correctness and functionality, but also for performance and browser compatibility: is the $( '#mw-content-text [lang]' ) query reasonably fast and won't it break on some browsers? It's very simplistic, so if anybody believes that there are problems with this patch or that now is not a good time to change functionality, feel free to delay or abandon it.Pginer-WMF added a comment.Edited · Jun 30 2016, 7:56 AM2016-06-30 07:56:22 (UTC+0)Comment ActionsSome aspects ar enot clear for me from the description or the patchset info: Will this override the user previous choices? browser settings? geo-ip-based guesses? (i.e., where it sits in terms of priority among the different criteria) Will add more languages to the list of suggested languages? Will this act as a fallback when there are not previous choices by the user? Will there be any performance impact in longer articles for which a big amount of content needs to be processed? Amire80 added a comment.Jun 30 2016, 7:59 AM2016-06-30 07:59:57 (UTC+0)Comment Actions In T70077#2416994, @Pginer-WMF wrote: Some aspects ar enot clear for me from the description or the patchset info: Will this override the user previous choices? browser settings? geo-ip-based guesses? (i.e., where it sits in terms of priority among the different criteria) Will add more languages to the list of suggested languages? Will this act as a fallback when there are not previous choices by the user? The answer to the first three questions is that it comes after previous languages and ULS common languages (which includes geo-IP), and before the extra fallback (T135366). Will there be any performance impact in longer articles for which a big amount of content needs to be processed? Not sure. That's what I asked in my previous comment. Maybe Niklas or Santhosh will have a definitive answer.Pginer-WMF mentioned this in T136677: Deployment of Compact Language Links.Jun 30 2016, 3:34 PM2016-06-30 15:34:33 (UTC+0)Arrbee added a project: Language-Q1-2016-17 Sprint 1.Jul 11 2016, 7:11 AM2016-07-11 07:11:53 (UTC+0)santhosh added a comment.Jul 11 2016, 8:49 AM2016-07-11 08:49:16 (UTC+0)Comment ActionsWill there be any performance impact in longer articles for which a big amount of content needs to be processed? Yes there is performance cost. To avoid/minimize that I rewrote how the compacting strategies are executed at https://gerrit.wikimedia.org/r/296710Amire80 mentioned this in T138524: Disable Compact Language Links on Russian Wikivoyage.Jul 11 2016, 9:01 AM2016-07-11 09:01:55 (UTC+0)gerritbot added a comment.Jul 11 2016, 9:07 AM2016-07-11 09:07:36 (UTC+0)Comment ActionsChange 298255 had a related patch set uploaded (by Santhosh): Show languages that appear in the page's text https://gerrit.wikimedia.org/r/298255gerritbot added a comment.Jul 11 2016, 9:14 AM2016-07-11 09:14:54 (UTC+0)Comment ActionsChange 296615 abandoned by Santhosh: Show languages that appear in the page's text Reason: Abandoned because of new patch https://gerrit.wikimedia.org/r/298255 https://gerrit.wikimedia.org/r/296615santhosh claimed this task.Jul 11 2016, 9:20 AM2016-07-11 09:20:23 (UTC+0)santhosh moved this task from Backlog to In Review on the Language-Q1-2016-17 Sprint 1 board.Arrbee added a project: Language-Q1-2016-17 Sprint 2.Jul 20 2016, 6:34 AM2016-07-20 06:34:39 (UTC+0)Arrbee removed a project: Language-Q1-2016-17 Sprint 1.Arrbee moved this task from Backlog to In Review on the Language-Q1-2016-17 Sprint 2 board.Jul 20 2016, 6:43 AM2016-07-20 06:43:05 (UTC+0)Amire80 moved this task from Backlog to ULS on the Language-Engineering July-September 2016 board.Jul 31 2016, 11:30 AM2016-07-31 11:30:46 (UTC+0)santhosh moved this task from In Review to QA on the Language-Q1-2016-17 Sprint 2 board.Aug 1 2016, 6:28 AM2016-08-01 06:28:30 (UTC+0)gerritbot added a comment.Aug 1 2016, 6:31 AM2016-08-01 06:31:24 (UTC+0)Comment ActionsChange 298255 merged by jenkins-bot: Show languages that appear in the page's text https://gerrit.wikimedia.org/r/298255ReleaseTaggerBot added a project: MW-1.28-release (WMF-deploy-2016-08-02_(1.28.0-wmf.13)).Aug 1 2016, 7:00 AM2016-08-01 07:00:30 (UTC+0)• Nikerabbit removed a project: Patch-For-Review.Aug 2 2016, 6:31 AM2016-08-02 06:31:09 (UTC+0)Amire80 closed this task as Resolved.Aug 4 2016, 9:19 AM2016-08-04 09:19:25 (UTC+0)Comment ActionsVerified in production in the Hebrew Wikipedia.Amire80 moved this task from QA to Done on the Language-Q1-2016-17 Sprint 2 board.Aug 4 2016, 9:19 AM2016-08-04 09:19:46 (UTC+0)• Elitre awarded a token.Aug 4 2016, 2:42 PM2016-08-04 14:42:38 (UTC+0)Liuxinyu970226 unsubscribed.Aug 4 2016, 11:05 PM2016-08-04 23:05:48 (UTC+0)Liuxinyu970226 added a project: User-notice.Aug 10 2016, 11:43 PM2016-08-10 23:43:51 (UTC+0)Liuxinyu970226 moved this task from To Triage to In current Tech/News draft on the User-notice board.matej_suchanek updated the task description. (Show Details)Aug 12 2016, 3:31 PM2016-08-12 15:31:41 (UTC+0)RandomDSdevel awarded a token.Aug 17 2016, 10:22 PM2016-08-17 22:22:13 (UTC+0)Johan moved this task from In current Tech/News draft to Recently announced in Tech/News on the User-notice board.Aug 18 2016, 4:23 AM2016-08-18 04:23:04 (UTC+0)Johan moved this task from Recently announced in Tech/News to Already announced/Archive on the User-notice board.Aug 24 2016, 10:03 PM2016-08-24 22:03:49 (UTC+0)Amire80 moved this task from Backlog to Compact Language Links on the UniversalLanguageSelector board.Nov 3 2017, 8:54 AM2017-11-03 08:54:37 (UTC+0)Ladsgroup edited projects, added User-notice-archive; removed User-notice.Aug 13 2022, 1:54 PM2022-08-13 13:54:44 (UTC+0) · Log In to Comment
Copied from Pau's specifications: *'''Surface languages used in content.''' Articles contain content in different languages (e.g., an article about a Russian city will have the name in Russian even on the english wikipedia). Those languages indicate a special connection between the topic and the language. This may not be a language the user understands (so this criteria should not be a priority) but it may be a good option if there are remaining slots in the initial list of languages.
Example:
As long as we limit it to 1-2 languages per page this should be a rather effective trick in the lucky (but important) cases where it applies, but it depends how efficient it is to scan the whole page like that.
Moving out of current release
Change 296615 had a related patch set uploaded (by Amire80): Show languages that appear in the page's text
https://gerrit.wikimedia.org/r/296615
This issue has been mentioned several times in recent community feedback, so I committed a very simple patch.
It needs review not just for correctness and functionality, but also for performance and browser compatibility: is the $( '#mw-content-text [lang]' ) query reasonably fast and won't it break on some browsers?
It's very simplistic, so if anybody believes that there are problems with this patch or that now is not a good time to change functionality, feel free to delay or abandon it.
Some aspects ar enot clear for me from the description or the patchset info:
In T70077#2416994, @Pginer-WMF wrote: Some aspects ar enot clear for me from the description or the patchset info: Will this override the user previous choices? browser settings? geo-ip-based guesses? (i.e., where it sits in terms of priority among the different criteria) Will add more languages to the list of suggested languages? Will this act as a fallback when there are not previous choices by the user?
The answer to the first three questions is that it comes after previous languages and ULS common languages (which includes geo-IP), and before the extra fallback (T135366).
Will there be any performance impact in longer articles for which a big amount of content needs to be processed?
Not sure. That's what I asked in my previous comment. Maybe Niklas or Santhosh will have a definitive answer.
Yes there is performance cost. To avoid/minimize that I rewrote how the compacting strategies are executed at https://gerrit.wikimedia.org/r/296710
Change 298255 had a related patch set uploaded (by Santhosh): Show languages that appear in the page's text
https://gerrit.wikimedia.org/r/298255
Change 296615 abandoned by Santhosh: Show languages that appear in the page's text
Reason: Abandoned because of new patch https://gerrit.wikimedia.org/r/298255
Change 298255 merged by jenkins-bot: Show languages that appear in the page's text
Verified in production in the Hebrew Wikipedia.