About this board

This is a MediaWiki.org user page.

If you find this page on any site other than MediaWiki.org, you are viewing a mirror site. Be aware that the page may be outdated, and that the user this page belongs to may have no personal affiliation with any site other than MediaWiki.org itself. The original page is located at https://www.mediawiki.org/wiki/User_talk:Shirayuki.

The MediaWiki logo
Previous page history was archived for backup purposes at User talk:Shirayuki/LQT Archive 1 on 2015-07-10.
Whatamidoing (WMF) (talkcontribs)
Shirayuki (talkcontribs)

Yes Done. Fixed.

Whatamidoing (WMF) (talkcontribs)

Thank you so much!

Reply to "Tvar question"
GpieroMW (talkcontribs)

Hi @Shirayuki


could you help me to understand which potential translation issue did you find?

Thanks

Shirayuki (talkcontribs)

It does not contain "$agroup" variable.

GpieroMW (talkcontribs)
Reply to "Translations:How to contribute/40/it"
Tacsipacsi (talkcontribs)

Hi! After restoring the main template, could you please restore its documentation page as well? Thanks in advance!

Shirayuki (talkcontribs)

Yes Done

Reply to "Template:Pagelang2/doc"

Contributor Extension Bug

7
Summary by Shirayuki
Vscheideck (talkcontribs)

Hello, I looking for the extension author(s).

When launching the upgrade script (php extensions/Contributors/maintenance/PopulateContributorsTable.php, I get :

Error: Class 'Revision' not found

In the script, this is the line causing the error :

$dbr->bitAnd( 'rev_deleted', Revision::DELETED_USER ) . ' = 0'

➡ How to correct this script please?? 😀😅

Shirayuki (talkcontribs)
Shirayuki (talkcontribs)
  1. Add use MediaWiki\Revision\RevisionRecord; in PopulateContributorsTable.php
  2. Replace Revision::DELETED_USER with RevisionRecord::DELETED_USER
80.215.80.81 (talkcontribs)

Thanks a lot. I'll report a bug on Phabricator.

the replacement did not fix the script.

Error 1054: Unknown column 'rev_user' in 'field list' (localhost)

Vscheideck (talkcontribs)
Shirayuki (talkcontribs)

Do you fix at your own risk?

Reply to "Contributor Extension Bug"
Xxmarijnw (talkcontribs)

Hi Shirayuki! I saw you reverted by edit on Manual:Schema changes with the summary "boolean unused". I am not sure what you mean by this, as using "boolean" as the type in an abstract schema does work and results in the equivalents detailed in my edit. Could you explain what you mean?

Shirayuki (talkcontribs)
Shirayuki (talkcontribs)

"generateSchemaSql.php" does not support "boolean"!

It shows the following error message:

Does not have a value in the enumeration ["bigint","binary","blob","datetimetz","float","integer","mwenum","mwtimestamp","mwtinyint","smallint","string","text"]
Xxmarijnw (talkcontribs)

Thank you, I will update my schema to use an mwtinyint of length 1.

Xxmarijnw (talkcontribs)

Hi Shirayuki, I tried to use the type mwtinyint in my abstract schema, but that gave me the following exception:

Doctrine\DBAL\Exception from line 125 of /Users/xxmarijnwwerk/Documents/Wikis/mediawiki-1.35.6-permissions/vendor/doctrine/dbal/src/Exception.php: Unknown column type "mwtinyint" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). If this error occurs during database introspection then you might have forgotten to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have your custom types implement Type#getMappedDatabaseTypes(). If the type name is empty you might have a problem with the cache or forgot some mapping information.
#0 /Users/xxmarijnwwerk/Documents/Wikis/mediawiki-1.35.6-permissions/vendor/doctrine/dbal/src/Types/TypeRegistry.php(37): Doctrine\DBAL\Exception::unknownColumnType('mwtinyint')
#1 /Users/xxmarijnwwerk/Documents/Wikis/mediawiki-1.35.6-permissions/vendor/doctrine/dbal/src/Types/Type.php(143): Doctrine\DBAL\Types\TypeRegistry->get('mwtinyint')
#2 /Users/xxmarijnwwerk/Documents/Wikis/mediawiki-1.35.6-permissions/vendor/doctrine/dbal/src/Schema/Table.php(353): Doctrine\DBAL\Types\Type::getType('mwtinyint')
#3 /Users/xxmarijnwwerk/Documents/Wikis/mediawiki-1.35.6-permissions/includes/libs/rdbms/database/DoctrineSchemaBuilder.php(34): Doctrine\DBAL\Schema\Table->addColumn('rule_consequent', 'mwtinyint', Array)
#4 /Users/xxmarijnwwerk/Documents/Wikis/mediawiki-1.35.6-permissions/maintenance/generateSchemaSql.php(71): Wikimedia\Rdbms\DoctrineSchemaBuilder->addTable(Array)
#5 /Users/xxmarijnwwerk/Documents/Wikis/mediawiki-1.35.6-permissions/maintenance/doMaintenance.php(107): GenerateSchemaSql->execute()
#6 /Users/xxmarijnwwerk/Documents/Wikis/mediawiki-1.35.6-permissions/maintenance/generateSchemaSql.php(117): require_once('/Users/xxmarijn...')
#7 {main}

I am using MediaWiki 1.35.6 with the maintenance/generateSchemaSql.php script. Do you know why this might be going wrong?

Shirayuki (talkcontribs)
Reply to "Boolean unused"

Manual:$wgCookieExpiration

2
Keyacom (talkcontribs)

I edited the page Manual:$wgCookieExpiration because it used outdated Translate syntax. Specifically, it used <tvar|1></> instead of <tvar name=1></tvar>. Why did you think this was undo-worthy?

Shirayuki (talkcontribs)

The page contained wrong markup.

Reply to "Manual:$wgCookieExpiration"
Pols12 (talkcontribs)

Dear Shirayuki,

I am surprised to see you still segment list outside of bullet points. As you know, this syntax is deprecated since 2020. Plus, this edit made outdated the 14 already done translations. 😠

Shirayuki (talkcontribs)

It was to make updating translations easier.

Shirayuki (talkcontribs)

Because of your trivial edit, many translation units have been invalidated. Update all translations by yourself!

Pols12 (talkcontribs)

I always update translations doing this kind of edit.

Plus, the translations were already invalidated by your edit.

Shirayuki (talkcontribs)

I have updated translations related to my edit, but you invalidated other translation units.

Pols12 (talkcontribs)

Thank you for the fix! 🙂 I am handling other invalidation caused by me.

Reply to "List segmentation"
Ciencia Al Poder (talkcontribs)

Hello! As an active Japanese translator, I'd like you to review translations from User:Marimonomori.

See Topic:Wq08keqe2of4ablz for background and examples. Let me know if we need to take action to prevent this user from translating contents.

Marimonomori (talkcontribs)

Thankyou.I take a rest to make better translation.

Reply to "User:Marimonomori"
SGrabarczuk (WMF) (talkcontribs)

Hello, would you be able to finish translating this instruction? This will be the last prototype of the Desktop Improvements. Thank you!

SGrabarczuk (WMF) (talkcontribs)

Hi, thank you for your edits. We've added one question. Could you translate it as well? Also, if you like, you can answer the questions at any time, before we set up the banners.

Reply to "Request for translation"
Summary by Shirayuki

Yes Done

2601:601:9D81:BB00:11F:336D:BAA6:6DD8 (talkcontribs)

What do you make of this:

phabricator.wikimedia.org/diffusion/MWDU/history/master/