Meta:Babel: Difference between revisions
Content deleted Content added
→Meta:Bots: Reply |
MathXplore (talk | contribs) m Reverted changes by 74.50.160.240 (talk) to last version by MathXplore: unexplained content removal Tags: Rollback SWViewer [1.6] |
||
Line 1:
{{Babel header|uselang= {{uselang}}}}
{{Autoarchive resolved section | age = 1 | archive = '((FULLPAGENAME))/Archives/((year))-((month:##))' | timeout = 30}}
{{Communication}}
__TOC__
== Change to translatewiki.net/Miraheze-Meta page translation target languages ==
Currently, the page translation target language configuration on Wikimedia Meta-Wiki were [[gerrit:plugins/gitiles/operations/mediawiki-config/+/3630b918def79de3da490799b2dac77442ff140a/wmf-config/InitialiseSettings.php#7561|inherited 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 of [[Template:Conversion-zh]], [[Template:LC zh]]. More breakages could be found on [[phab:T328838]].
I would like to propose to use the [[gerrit:plugins/gitiles/translatewiki/+/a86463dad55cd8dc4697399537619643d23eee2d/mw-config/TranslateSettings.php#172|"translatewiki.net page translation model"]]/[https://github.com/miraheze/mw-config/blob/cca495152a9e4a2eac3ee911faa2501c8b652a74/LocalSettings.php#L6011 "Miraheze Meta page translation model"] instead on Meta-Wiki after the related [[wikifunctions:Wikifunctions:Project_chat/Archive/2025/05#Change_to_translatewiki.net-like/Miraheze-Meta-like_page_translation_target_languages|proposal had been discussed, supported and approved]] and [[gerrit:1143697|changes had been done]] on Wikifunctions.
Below are examples of the proposed translation model.
* https://translatewiki.net/wiki/Special:Translate?group=page-Project%3AAbout&action=page&language=zh-hans&filter=
* https://translatewiki.net/wiki/Special:Translate?group=page-Project%3AAbout&action=page&language=zh-hant&filter=
* https://meta.miraheze.org/wiki/Special:Translate?group=page-Miraheze+Meta&action=page&language=zh-hans&filter=
* https://meta.miraheze.org/wiki/Special:Translate?group=page-Miraheze+Meta&action=page&language=zh-hant&filter=
More briefly for the <code>zh</code> part: The old configuration can only translate into <code>zh</code> while the new configuration can translate into <code>zh-hans</code> (for <code>zh-Hans-CN</code>, <code>zh-Hans-MY</code>, <code>zh-Hans-SG</code>), <code>zh-hant</code> (for <code>zh-Hant-TW</code>) and <code>zh-hk</code> (for <code>zh-Hant-HK</code>, <code>zh-Hant-MO</code>).
Without using /zh-hans, /zh-hant, /zh-hk, we have to pass the language tag every time using message bundle messages.
<syntaxhighlight lang="lua">
-- Wrapping all of them under /zh using {{LC zh|, without using /zh-hans, /zh-hant, /zh-hk
tmb.new( mb_page_title, lang_tag ):t( message_key ):params( lang_tag ):plain()
</syntaxhighlight>
<syntaxhighlight lang="lua">
-- Using separated /zh-hans, /zh-hant, /zh-hk, we no longer need to pass the language tag :params( lang_tag ) every time
tmb.new( mb_page_title, lang_tag ):t( message_key ):plain()
</syntaxhighlight>
With this change, every Lua module using translation bundles can be simplified:
<syntaxhighlight lang="diff">
- :t( message_key ):params( lang_tag ):plain()
+ :t( message_key ):plain()
</syntaxhighlight>
Without this change, every Lua module using translation bundles need to:
<syntaxhighlight lang="diff">
- :t( message_key ):plain()
+ :t( message_key ):params( lang_tag ):plain()
</syntaxhighlight>
Note: "translatewiki.net page translation model"/"Miraheze Meta page translation model" refer to the same translation model.
-- [[User:Winston Sung|Winston Sung]] ([[User talk:Winston Sung|talk]]) 07:57, 30 July 2025 (UTC)
: Pinging @[[User:94rain|94rain]] @[[User:乌拉跨氪|乌拉跨氪]] @[[User:梦夕琳|梦夕琳]] @[[User:Allenwang6212a|Allenwang6212a]]、 @[[User:ASid|ASid]] @[[User:Cookai1205|Cookai1205]] @[[User:Cwek|Cwek]] @[[User:Ericliu1912|Ericliu1912]] @[[User:Hamish|Hamish]] @[[User:Heihaheihaha|Heihaheihaha]] @[[User:Joycewikiwiki|Joycewikiwiki]] @[[User:Kaganer|Kaganer]] @[[User:KOKUYO|KOKUYO]] @[[User:Kuailong|Kuailong]] @[[User:Lakejason0|Lakejason0]] @[[User:LowensteinYang|LowensteinYang]] @[[User:Minorax|Minorax]] @[[User:Reke|Reke]] @[[User:SCP-2000|SCP-2000]] @[[User:Shangkuanlc|Shangkuanlc]] @[[User:Shizhao|Shizhao]] @[[User:SolidBlock|SolidBlock]] @[[User:Stang|Stang]] @[[User:SunAfterRain|SunAfterRain]] @[[User:Supaplex|Supaplex]] @[[User:Taiwania Justo|Taiwania Justo]] @[[User:Tigerzeng|Tigerzeng]] @[[User:Venuslui|Venuslui]] @[[User:WhitePhosphorus|WhitePhosphorus]] @[[User:Wong128hk|Wong128hk]] @[[User:Xiplus|Xiplus]] @[[User:YFdyh000|YFdyh000]] @[[User:人间百态|人间百态]] @[[User:魔琴|魔琴]] @[[User:だ*ぜ|だ*ぜ]] -- [[User:Winston Sung|Winston Sung]] ([[User talk:Winston Sung|talk]]) 04:24, 5 August 2025 (UTC)
: As I didn't look into two models, is there any major difference? If yes, would you briefly describe the difference please? [[User:Hamish|<span style="background:White;border:1px #FFDAB9 solid;color:Pink;border-radius:999px">Hamish</span>]] 16:02, 5 August 2025 (UTC)
: More briefly for the <code>zh</code> part: The old configuration can only translate into <code>zh</code> while the new configuration can translate into <code>zh-hans</code> (for <code>zh-Hans-CN</code>, <code>zh-Hans-MY</code>, <code>zh-Hans-SG</code>), <code>zh-hant</code> (for <code>zh-Hant-TW</code>) and <code>zh-hk</code> (for <code>zh-Hant-HK</code>, <code>zh-Hant-MO</code>). -- [[User:Winston Sung|Winston Sung]] ([[User talk:Winston Sung|talk]]) 08:27, 8 August 2025 (UTC)
== Ready for translation: Education Newsletter July 2025 ==
July 2025 education newsletter released for translation. Please help our readers to read education newsletter in their native language. The latest education newsletter is ready for translation: [[Education/Newsletter/July 2025|here]] Newsletter headlines link for translation: [[Education/Newsletter/July 2025/Headlines|here]], to read individual articles check out: [[:Category:Education/Newsletter/July 2025]]. Regards, [[User:ZI Jony|<span style="color:#8B0000">'''ZI Jony'''</span>]] [[User talk:ZI Jony|<sup><span style="color:Green"><i>(Talk)</i></span></sup>]] 02:56, 1 August 2025 (UTC)
: @[[User:ZI Jony|ZI Jony]], please also include link to [[Template:Education Navigation]] into your invitations. [[User:Kaganer|Kaganer]] ([[User talk:Kaganer|talk]]) 09:57, 6 August 2025 (UTC)
::Noted. Regards, [[User:ZI Jony|<span style="color:#8B0000">'''ZI Jony'''</span>]] [[User talk:ZI Jony|<sup><span style="color:Green"><i>(Talk)</i></span></sup>]] 16:34, 7 August 2025 (UTC)
:::☁ [[User:Ray Butcher|Ray Butcher]] ([[User talk:Ray Butcher|talk]]) 09:22, 12 August 2025 (UTC)
:hridoy.khan57327@ [[Special:Contributions/103.242.8.180|103.242.8.180]] 09:49, 12 August 2025 (UTC)
== Need help from bot ==
Hi!
I need the help from a bot to apply the following algorithm:
<source lang="js">
const listOfPages = mw.getListOfPagesStartingWith( "Wiki Loves Living Heritage/" );
const replaceRegex = new RegExp(`<!--BEGINREPLACE.+<!--ENDREPLACE-->`, "s");
const backupRegex = new RegExp(`{{Wikidata list.+{{Wikidata list end}}`, "s");
for( page in listOfPages ) {
let matchingContent = page.wikitext.match( replaceRegex );
if( ! matchingContent ) matchingContent = page.wikitext.match( backupRegex );
if( ! matchingContent ) continue;
let contentToMove = matchingContent[0];
let newSubPageName = page.pageName + '/list';
page.wikitext.replace( contentToMove, '{{:' + newSubPageName + '}}' ); //must be absolute path (for translation pages)
page.save();
mw.createPage(
pageName: newSubPageName,
pageWikitext: contentToMove
);
}
</source>
'''Aim''': moving Wikidata List to their own subpage, then transcluding the subpage, so what you see do not change.
'''Point''': many of those pages are translatable. Each time the bot update the Wikidata list, a translation admin must mark the page for translation, which is uselessly time-consuming.
Unfortunately, I have never set a bot up, and I have not enough time to learn. Can someone help?
Pinging [[user:Susannaanas|Susannaanas]] for information.
-- [[User:Pols12|Pols12]] ([[User talk:Pols12|talk]]) 14:49, 12 August 2025 (UTC)
:@[[User:Pols12|Pols12]]: What wanna you? As human, simple? What is problem? You write (in Aim) how wanna you implement, but i dont know what is the problem (example, if i would be a user, a none-technical user). [[User:Dušan Kreheľ|Dušan Kreheľ]] ([[User talk:Dušan Kreheľ|talk]]) 10:46, 13 August 2025 (UTC)
::I explained it in the “point” item: each time a translatable page is updated, a translation admin has to “mark the page for translation” to validate the changes so they are applied to translation pages. Since those are [[d:template:Wikidata list|Wikidata lists]], [[User:ListeriaBot|the bot]] update the pages every day. This is really time-consuming for translation admins to review [[Special:Contributions/ListeriaBot|all of those bot changes]]!
::Benefits:
::* As a translation admin, this change would reduce my workload.
::* As a final user, I see the page up-to-date in my language as soon as ListeriaBot updates the page, I don’t need to wait for translation admin work.
::-- [[User:Pols12|Pols12]] ([[User talk:Pols12|talk]]) 12:14, 13 August 2025 (UTC)
:::@[[User:Pols12|Pols12]]:
:::'''Solution No. 1.:'''
:::How about getting pagetranslation rights for a bot?
:::'''Solution No. 2.:'''
:::I see that the page is a bunch of mini-pages. So I would put the translation into Lua modules (the module would load the translation according to the wikis and have some constant UI for the languages).
:::The page would be for example: <nowiki>{{Page widget box|en|dog;cat;rabbit}}</nowiki>
:::The modules would be:
:::* Page widget box
:::* Page widget box – item (description pulls according to wikidata and language)
:::* Page widget box – UI translate
:::[[User:Dušan Kreheľ|Dušan Kreheľ]] ([[User talk:Dušan Kreheľ|talk]]) 13:15, 15 August 2025 (UTC)
::::Your solution 1 is not conceivable. That action needs a special right because it needs a human review given the risks of making something wrong and for performance reasons. Besides, my solution only needs 1 bot passage ever for each page; whereas your solution 1 would need a daily passage (each time ListeriaBot edits the page) which would be uselessly resource-consuming.
::::I don’t understand your solution 2. I agree several unit would benefit to be included through a template since they are common to many pages. They are already some templates for that purpose, including [[Template:Wiki Loves Living Heritage/Placeholders]]. In any case, we want the page to be localizable, and the best way is to use Translate extension features, mainly for Meta-Wiki consistency. In most cases, only the page title will be manually translatable (no unit on the page), but that would enable Languages bar to change the page language.
::::Also, I don’t understand why you seem to want to avoid the solution I proposed.
::::Unfortunately, I will probably not find any more time to work more on this in the coming weeks, sorry if I can’t follow your next answers here.
::::--[[User:Pols12|Pols12]] ([[User talk:Pols12|talk]]) 23:47, 16 August 2025 (UTC)
== Display problem ==
When I successfully mark pages for translation, the check icon on the left side of the notice squeezed. Probably not the only instance. I don't know where to post it, so I'll leave it here. —— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|Talk]]''')</sub> 15:47, 14 August 2025 (UTC)
:@[[User:Ericliu1912|Ericliu1912]] does it appear similar to [[:phab:T398529#11048062]]? [[User:Johannnes89|Johannnes89]] ([[User talk:Johannnes89|talk]]) 13:52, 15 August 2025 (UTC)
:: Yes! Glad to see there was already a Phab task filed. —— '''[[User:Ericliu1912|Eric Liu]]'''<sub>('''[[User talk:Ericliu1912|Talk]]''')</sub> 14:22, 15 August 2025 (UTC)
== Missing {{int:communitywishlist-support}} ==
Missing message in {{int:⧼communitywishlist-support⧽}}. Go to [[Community Wishlist/Focus areas/Media formats, editing, and display]] for example, scroll to blue button and push "Support focus area", the popup's main blue button that appears has this <code>{<nowiki/>{int:}}</code> in it. [[User:Waddie96|Waddie96]] ([[User talk:Waddie96|talk]]) 06:49, 17 August 2025 (UTC)
*Ping to {{ping|User:MusikAnimal (WMF)}} who I think is the staffer coordinating that. MA, looks like there are 2 problems:
#Missing label at [[MediaWiki:communitywishlist-support]] as reported above.
#This button loads a custom pop-out editor, which is missing licensing agreement verbiage (which should be, or be functionally similar to [[MediaWiki:wikimedia-copyrightwarning]])
*Would you look in to both of these? Thank you, — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 12:34, 17 August 2025 (UTC)
*:The missing message is now fixed. Adding the copyright warning is a bit more involved, I'm afraid. We have a new MediaWiki extension that is going to replace the gadget version relatively soon, and we'll get the copyright warning added there.
*:Thanks for letting us know about these issues! :) [[User:MusikAnimal (WMF)|MusikAnimal (WMF)]] ([[User talk:MusikAnimal (WMF)|talk]]) 19:22, 20 August 2025 (UTC)
*::@[[User:MusikAnimal (WMF)|MusikAnimal (WMF)]] Thanks! [[User:Waddie96|Waddie96]] ([[User talk:Waddie96|talk]]) 23:28, 21 August 2025 (UTC)
== site name changed from Meta to Meta-Wiki ==
Per the prior discussion and [[phab:T399843]], our sitename has been changed. The database name has not been changed. If you see any problems, please let us know. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 13:34, 18 August 2025 (UTC)
|