Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Project:Village Pump

Add topic
From mediawiki.org
Latest comment:just now by Winston Sung in topicChange to translatewiki.net/Miraheze-Meta page translation target languages
This page isonly for discussing issues related to MediaWiki.orgsite.
Archives

To get help with MediaWikisoftware, ask onProject:Support desk.

Change to translatewiki.net/Miraheze-Meta page translation target languages

[edit]

Currently, the page translation target language configuration on mediawiki.org wereinherited from the "language converter page translation model".

However, this actually created several problems including the broken page transclutions with malfunctioned language converter tags exposed and using the workaround ofTemplate:Conversion-zh,Template:LC zh. More breakages could be found onphab:T328838.

I would like to propose to use the"translatewiki.net page translation model"/"Miraheze Meta page translation model" instead on mediawiki.org after the relatedproposal had been discussed, supported and approved andchanges had been done on Wikifunctions.

Below are examples of the proposed translation model.

More briefly for thezh part: The old configuration can only translate intozh while the new configuration can translate intozh-hans (forzh-Hans-CN,zh-Hans-MY,zh-Hans-SG),zh-hant (forzh-Hant-TW) andzh-hk (forzh-Hant-HK,zh-Hant-MO).

Note: "translatewiki.net page translation model"/"Miraheze Meta page translation model" refer to the same translation model.

--Winston Sung (talk)08:02, 30 July 2025 (UTC)Reply

Pinging @Aaron Liu @Anterdc99 @AromaTake @Cookai1205 @Diskdance @Lakejason0 @LowensteinYang @MilkyDefer @SolidBlock @Stang @Xiplus @魔琴 --Winston Sung (talk)15:02, 2 August 2025 (UTC)Reply
Future timestamp to prevent automatic archive to unresolved discusstion topic. --Winston Sung (talk)00:00, 1 February 2026 (UTC)Reply
I've added my comments on the associated Phabricator task you linked, which is basically about doing the same thing on every multilingual wiki. TL;DR: I'm opposed because as it currently stands, this proposal would quadruple the work of translators.Aaron Liu (talk)16:18, 2 August 2025 (UTC)Reply
I'd say rather than doing this, we sort of finding a way to actually implement the NoteTA (manual conversion RULES, so not quadrupling the work but actively using the LC model) for content page. --Lakejason0 (talk)17:03, 2 August 2025 (UTC)(edited at 17:05, 2 August 2025 (UTC))Reply
Without using /zh-hans, /zh-hant, /zh-hk, we have to pass the language tag every time using message bundle messages.
-- Wrapping all of them under /zh using {{LC zh|, without using /zh-hans, /zh-hant, /zh-hktmb.new(mb_page_title,lang_tag):t(message_key):params(lang_tag):plain()
-- Using separated /zh-hans, /zh-hant, /zh-hk, we no longer need to pass the language tag :params( lang_tag ) every timetmb.new(mb_page_title,lang_tag):t(message_key):plain()
With this change, every Lua module using translation bundles can be simplified:
- :t( message_key ):params( lang_tag ):plain()+ :t( message_key ):plain()
Without this change, every Lua module using translation bundles need to:
- :t( message_key ):plain()+ :t( message_key ):params( lang_tag ):plain()
--Winston Sung (talk)04:44, 5 August 2025 (UTC)Reply
This is a problem, but more one for something likeT196501 or something else that allows for fetching the current page variant under Lua.Aaron Liu (talk)22:33, 6 August 2025 (UTC)Reply
Even ifT196501 is solved, you still have no way to either get the requested language tag or pass the lang_tag parameter because we are currently using$1 instead of{{{lang|}}}, which make the message bundle messages to be something different like{{{lang|$1}}}. --Winston Sung (talk)08:41, 8 August 2025 (UTC)Reply
I don't think I understand. As long as lang is set to the needed value somewhere, it should work if we can get all the parent frames, even if it is input by the parser.Aaron Liu (talk)21:42, 9 August 2025 (UTC)Reply
There might be some misunderstandings.
You can only get "template arguments" like{{{1|}}} afterT196501 being solved so we no longer need to write{{LC zh|lang={{{lang|}}}|
However, "system message arguments"/"interface message arguments" like$1 are never something can be get fromframe:getParent().args without either creating new methods to theframe object or still writing{{LC zh|lang= $1| in Wikitext.
:t(message_key):params(lang_tag) use the "system message argument API" instead of "template argument API".
--Winston Sung (talk)13:06, 11 August 2025 (UTC)Reply
I think the solution to that should be to expose the page variant to Scribunto Lua.Aaron Liu (talk)17:37, 14 December 2025 (UTC)Reply
The current problem is there are no way to pass template parameter (and only can pass system messsage parameter) when calling system messages. We currently have the way to get the current user interface language but there is no way to properly pass it without extra work on every template calls. --Winston Sung (talk)16:08, 15 December 2025 (UTC)Reply

Semi-protectMediaWiki 1.45 andMediaWiki 1.46

[edit]

The two pages I link in this section's heading have been repeatedly vandalized by anons. We block one, only for it to return under a new temporary account. The likelihood of constructive edits to those pages by anons is vanishingly small IMO, so I suggest we protect them against anon editing.Mr. Starfleet Command (talk)14:35, 4 December 2025 (UTC)Reply

Yes, agree:YesDone. --Clump (talk)14:39, 4 December 2025 (UTC)Reply

Request translation admin to moveManual:Hooks toManual:PHP hooks

[edit]

Howdy. Today I boldly created the articleManual:JavaScript hooks. I think it should have equal weight to the current articleManual:Hooks, which is about the PHP hooks. They're both pretty developed hook systems.

Anyway, if no one objects, I'd like to request that a translation administrator moveManual:Hooks toManual:PHP hooks. It is a translated page, so requires a translation administrator. Thanks. –Novem Linguae(talk)14:38, 14 December 2025 (UTC)Reply

Actually it requires a sysadmin since the page consists of more than 500 translations. But I think this is premature -Manual:Hooks, as a page dating back to 2006 with hundreds of subpages and lots of template infrastructure linking to those subpages, is clearly not on an equal footing with a singular page you created today.* Pppery *it has begun04:39, 15 December 2025 (UTC)Reply
Oh, good catch. I didn't notice that all the individual PHP hook pages such asManual:Hooks/EditFormPreloadText are prefixed with Manual:Hooks. If it involves renaming all those too, then perhaps it's not worth it. –Novem Linguae(talk)05:08, 15 December 2025 (UTC)Reply
(Sidenote: as an administrator you could grant yourself the translationadmin group).* Pppery *it has begun04:40, 15 December 2025 (UTC)Reply
Retrieved from "https://www.mediawiki.org/w/index.php?title=Project:Village_Pump&oldid=8081574"
Category:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp