Nothing Special   »   [go: up one dir, main page]

Jump to content

Tech/News/2024/42: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
rewrite entry about bdi changes
m Adding section mark to the link to the interface policy
Line 20: Line 20:
* <translate>[[<tvar name="1">m:Special:MyLanguage/Phabricator</tvar>|Phabricator]] users can create tickets and add comments on existing tickets via Email again. [[<tvar name="2">mw:Special:MyLanguage/Phabricator/Help#Using email</tvar>|Sending email to Phabricator]] has been fixed.</translate> [https://phabricator.wikimedia.org/T356077]
* <translate>[[<tvar name="1">m:Special:MyLanguage/Phabricator</tvar>|Phabricator]] users can create tickets and add comments on existing tickets via Email again. [[<tvar name="2">mw:Special:MyLanguage/Phabricator/Help#Using email</tvar>|Sending email to Phabricator]] has been fixed.</translate> [https://phabricator.wikimedia.org/T356077]
* [[File:Octicons-tools.svg|12px|link=|class=skin-invert|{{safesubst:Tech news text/{{TRANSLATIONLANGUAGE}}|advanced item}}]] <translate>The <tvar name="1"><code><nowiki>{{#time:…}}</nowiki></code></tvar> parser function lets you show a date or time, but it expects a date format, while different languages use different formats, so a given format works only for a given language (or a few languages). There is now a new function, <tvar name="2"><code><nowiki>{{#timef:…}}</nowiki></code></tvar>, to support different languages' date formats. For example, <tvar name="3"><bdi lang="zxx" dir="ltr"><code><nowiki>{{#timef:now|date|en}}</nowiki></code></bdi></tvar> will show as "<tvar name="4"><bdi lang="en" dir="ltr">{{#timef:now|date|en}}</bdi></tvar>", and <tvar name="5"><bdi lang="zxx" dir="ltr"><code><nowiki>{{#timef:now|date|ja}}</nowiki></code></bdi></tvar> will show as "<tvar name="6"><bdi lang="ja" dir="ltr">{{#timef:now|date|ja}}</bdi></tvar>". Before, multi-lingual wikis like Commons needed special templates to translate dates, but now they can use this function which is much faster for the servers and easier for communities.</translate> [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Extension:ParserFunctions##time][https://phabricator.wikimedia.org/T223772]
* [[File:Octicons-tools.svg|12px|link=|class=skin-invert|{{safesubst:Tech news text/{{TRANSLATIONLANGUAGE}}|advanced item}}]] <translate>The <tvar name="1"><code><nowiki>{{#time:…}}</nowiki></code></tvar> parser function lets you show a date or time, but it expects a date format, while different languages use different formats, so a given format works only for a given language (or a few languages). There is now a new function, <tvar name="2"><code><nowiki>{{#timef:…}}</nowiki></code></tvar>, to support different languages' date formats. For example, <tvar name="3"><bdi lang="zxx" dir="ltr"><code><nowiki>{{#timef:now|date|en}}</nowiki></code></bdi></tvar> will show as "<tvar name="4"><bdi lang="en" dir="ltr">{{#timef:now|date|en}}</bdi></tvar>", and <tvar name="5"><bdi lang="zxx" dir="ltr"><code><nowiki>{{#timef:now|date|ja}}</nowiki></code></bdi></tvar> will show as "<tvar name="6"><bdi lang="ja" dir="ltr">{{#timef:now|date|ja}}</bdi></tvar>". Before, multi-lingual wikis like Commons needed special templates to translate dates, but now they can use this function which is much faster for the servers and easier for communities.</translate> [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Extension:ParserFunctions##time][https://phabricator.wikimedia.org/T223772]
* [[File:Octicons-tools.svg|12px|link=|class=skin-invert|{{safesubst:Tech news text/{{TRANSLATIONLANGUAGE}}|advanced item}}]] <translate>Some HTML elements in the interface are now wrapped with a <tvar name="1"><code><nowiki><bdi></nowiki></code></tvar> element, to make our HTML output more aligned with web-standards. More changes like this will be coming in future weeks. This change might break some tools that rely on the previous HTML structure of the interface. Note that relying on the HTML structure of the interface is [[<tvar name="2">mw:Special:MyLanguage/Stable interface policy/Frontend</tvar>|not recommended]] and might break at any time.</translate> [https://phabricator.wikimedia.org/T375975]
* [[File:Octicons-tools.svg|12px|link=|class=skin-invert|{{safesubst:Tech news text/{{TRANSLATIONLANGUAGE}}|advanced item}}]] <translate>Some HTML elements in the interface are now wrapped with a <tvar name="1"><code><nowiki><bdi></nowiki></code></tvar> element, to make our HTML output more aligned with web-standards. More changes like this will be coming in future weeks. This change might break some tools that rely on the previous HTML structure of the interface. Note that relying on the HTML structure of the interface is [[<tvar name="2">mw:Special:MyLanguage/Stable interface policy/Frontend#What_is_not_stable?</tvar>|not recommended]] and might break at any time.</translate> [https://phabricator.wikimedia.org/T375975]
* …
* …



Revision as of 23:48, 9 October 2024

This document has a planned publication deadline (link leads to zonestamp.toolforge.org).

previous 2024, week 42 (Monday 14 October 2024) next

Tech News: 2024-42