Page MenuHomePhabricator

Remove span tags from untranslated messages
Closed, ResolvedPublic

Description

Remove span from untranslated messages since they are not necessary and double quotes in their attributes break the JSON.

Details

TitleReferenceAuthorSource BranchDest Branch
Remove HTML from untranslated messagesrepos/commtech/autosuggest-sitelink!25samwilsonmessage-html-removemain
Customize query in GitLab

Event Timeline

@Samwilson @HMonroy I tested the following languages (Korean, Italian, and Spanish). One thing that I noticed when I created the Korean article and Korean Wikidata right away, you see that Korea matched. If I started an Italian article and an Italian Wikidata, the description of the Wikidata shows the language I made, which in this example is Italian. When I get an existing American Wikidata and configure the Italian language into it, like Wikidata Q25, Autosuggest shows the American description. It does not show the Italian Wikidata, even though the test site language is Italian as seen in the screenshots. The same thing happened with Spanish but once I checked it again later, the descriptions went to Spanish. Not sure of the exact time it switched but it was more than 10 minutes. It definitely doesn't do it right away though. Is there a time on how long it would take effect? Also, the No descriptions were in their respective language except for Italian. It comes out in English, which is as designed according to the gadget translation page.

Translations: https://meta.wikimedia.org/wiki/MediaWiki:Gadget-AutosuggestSitelink-messages

Korean
Test link: https://test.wikipedia.org/wiki/%EB%8C%80%ED%95%9C%EB%AF%BC%EA%B5%AD_%EC%B6%95%EA%B5%AC_%EA%B5%AD%EA%B0%80%EB%8C%80%ED%91%9C%ED%8C%80
Test Wikidata link: https://test.wikidata.org/wiki/Q229354

Italian
Test link: https://test.wikipedia.org/wiki/Birra
Test Wikidata link:
https://test.wikidata.org/wiki/Q229355
https://test.wikidata.org/wiki/Q25

Spanish
Test link: https://test.wikipedia.org/wiki/Mandrill
Test Wikidata link:
https://test.wikidata.org/wiki/Q227307
https://test.wikidata.org/wiki/Q229232

LanguageTranslationsWikidataTest Wiki
Spanish
T329814_Autosuggest_SpanishTranslation.png (821×1 px, 182 KB)
T329814_Autosuggest_SpanishWikiData.png (866×2 px, 200 KB)
T329814_Autosuggest_SpanishWikiData2.png (759×2 px, 189 KB)
T329814_Autosuggest_SpanishWiki2.png (945×1 px, 354 KB)
T329814_Autosuggest_SpanishWiki.png (908×1 px, 349 KB)
Korea
T329814_Autosuggest_KoreaTranslation.png (854×1 px, 181 KB)
T329814_Autosuggest_KoreaWikiData.png (866×2 px, 224 KB)
T329814_Autosuggest_KoreaWiki.png (1×1 px, 307 KB)
Italiano
T329814_Autosuggest_ItalianTranslation.png (835×1 px, 176 KB)
T329814_Autosuggest_ItalianWikiData.png (1×2 px, 249 KB)
T329814_Autosuggest_ItalianWikiData2.png (1×2 px, 270 KB)
T329814_Autosuggest_ItalianWiki.png (1×1 px, 604 KB)

@Samwilson @HMonroy This would probably be a separate ticket if you wanted me to create one for it. When I go to Add language and switch to another language, in this example Italian, it cuts off the beginning of a category from the right side of the menu as seen in the screenshot.

OS: macOS 13.0
Browser: Chrome 109
Environment: Beta
Test Link: https://test.wikipedia.org/wiki/Birra

T329814_Autosuggest_ItalianWiki_MenuCutoff.png (936×1 px, 554 KB)

@HMonroy and @Samwilson I created T330221: Test.Wiki: Part of category (Add interlanguage links) on the right side is getting cut off when you switch to a different language. for the above issue. Otherwise, I did not come across anything else during my testing. I will move this to Product sign-off, thanks!