Page MenuHomePhabricator

Rename special pages and namespaces in Javanese Wikis
Closed, ResolvedPublic

Description

$namespaceNames = [
    NS_MEDIA            => 'Médhia',
    NS_SPECIAL          => 'Mirunggan',
    NS_TALK             => 'Parembugan',
    NS_USER             => 'Naraguna',
    NS_USER_TALK        => 'Parembugan_Naraguna',
    NS_PROJECT_TALK     => 'Parembugan_$1',
    NS_FILE             => 'Barkas',
    NS_FILE_TALK        => 'Parembugan_Barkas',
    NS_MEDIAWIKI        => 'MédhiaWiki',
    NS_MEDIAWIKI_TALK   => 'Parembugan_MédhiaWiki',
    NS_TEMPLATE         => 'Cithakan',
    NS_TEMPLATE_TALK    => 'Parembugan_Cithakan',
    NS_HELP             => 'Pitulung',
    NS_HELP_TALK        => 'Parembugan_Pitulung',
    NS_CATEGORY         => 'Kategori',
    NS_CATEGORY_TALK    => 'Parembugan_Kategori',
];

$namespaceAliases = [ // Kept former namespaces for backwards compatibility - T155957
    'Cithakan_Dhiskusi'    => NS_TEMPLATE_TALK,
    'Dhiskusi'             => NS_TALK,
    'Dhiskusi_$1'          => NS_PROJECT_TALK,
    'Dhiskusi_Cithakan'    => NS_TEMPLATE_TALK,
    'Dhiskusi_Gambar'      => NS_FILE_TALK,
    'Dhiskusi_Kategori'    => NS_CATEGORY_TALK,
    'Dhiskusi_MediaWiki'   => NS_MEDIAWIKI_TALK,
    'Dhiskusi_Panganggo'   => NS_USER_TALK,
    'Dhiskusi_Pitulung'    => NS_HELP_TALK,
    'Kategori_Dhiskusi'    => NS_CATEGORY_TALK,
    'MediaWiki_Dhiskusi'   => NS_MEDIAWIKI_TALK,
    'Pitulung_Dhiskusi'    => NS_HELP_TALK,
    'Gambar_Dhiskusi'      => NS_FILE_TALK,
    'Astamiwa'             => NS_SPECIAL,
    'Panganggo'            => NS_USER,
    'Parembugan_Panganggo' => NS_USER_TALK,
    'Gambar'               => NS_FILE,
    'Parembugan_Gambar'    => NS_FILE_TALK,
    'MediaWiki'            => NS_MEDIAWIKI,
    'Parembugan_MediaWiki' => NS_MEDIAWIKI_TALK,
    'Media'                => NS_MEDIA,
    'Medhia'               => NS_MEDIA,
    'MedhiaWiki'           => NS_MEDIAWIKI,
    'Parembugan_MedhiaWiki' => NS_MEDIAWIKI_TALK,
];

$specialPageAliases = [
    'Activeusers'               => [ 'Naraguna_giyat' ],
    'Allmessages'               => [ 'Layang_sistem' ],
    'AllMyUploads'              => [ 'Pratélan_barkas', 'Pratelan_barkas' ],
    'Allpages'                  => [ 'Pratélan_kaca', 'Pratelan_kaca' ],
    'ApiHelp'                   => [ 'Pitulung_API' ],
    'ApiSandbox'                => [ 'Bak_wedhi_API' ],
    'Ancientpages'              => [ 'Kaca_lawas' ],
    'AutoblockList'             => [ 'Pratélan_swapenggak', 'Pratelan_swapenggak' ],
    'Badtitle'                  => [ 'Sesirah_ala' ],
    'Blankpage'                 => [ 'Kaca_kosong' ],
    'Block'                     => [ 'Penggak', 'Blokir' ],
    'BlockList'                 => [ 'Pratélan_penggak', 'Pratelan_penggak' ],
    'Booksources'               => [ 'Sumber_buku' ],
    'BotPasswords'              => [ 'Tembung_sandi_bot' ],
    'BrokenRedirects'           => [ 'Alihan_rusak' ],
    'Categories'                => [ 'Kategori' ],
    'ChangeCredentials'         => [ 'Ganti_krédhénsiyal', 'Ganti_kredhensiyal' ],
    'ChangeEmail'               => [ 'Ganti_layèl', 'Ganti_layel' ],
    'ChangePassword'            => [ 'Ganti_sandi' ],
    'ComparePages'              => [ 'Bandhingaké_kaca', 'Bandhingake_kaca' ],
    'Confirmemail'              => [ 'Konfirmasi_layèl', 'Konfirmasi_layel' ],
    'Contributions'             => [ 'Pasumbanging_naraguna' ],
    'CreateAccount'             => [ 'Gawé_akun', 'Gawe_akun' ],
    'Deadendpages'              => [ 'Kaca_buntu' ],
    'DeletedContributions'      => [ 'Pasumbang_kang_dibusak' ],
    'Diff'                      => [ 'Béda', 'Beda' ],
    'DoubleRedirects'           => [ 'Alihan_dhobel' ],
    'EditPage'                  => [ 'Besut_kaca' ],
    'EditTags'                  => [ 'Besut_tenger' ],
    'EditWatchlist'             => [ 'Besut_pawawangan' ],
    'Emailuser'                 => [ 'Layèl_naraguna', 'Layel_naraguna' ],
    'ExpandTemplates'           => [ 'Jembaraké_cithakan', 'Jembarake_cithakan' ],
    'Export'                    => [ 'Èspor_kaca', 'Espor_kaca' ],
    'Fewestrevisions'           => [ 'Owahan_sathithik_dhéwé', 'Owahan_sathithik_dhewe' ],
    'FileDuplicateSearch'       => [ 'Golèk_barkas_dhobel', 'Golek_barkas_dhobel' ],
    'Filepath'                  => [ 'Pernahing_barkas' ],
    'GoToInterwiki'             => [ 'Menyang_interwiki' ],
    'Import'                    => [ 'Impor_kaca' ],
    'Invalidateemail'           => [ 'Wurung_validhasi_layèl', 'Wurung_validhasi_layel' ],
    'JavaScriptTest'            => [ 'Jajal_JavaScript' ],
    'LinkSearch'                => [ 'Golèk_pranala', 'Golek_pranala' ],
    'Listadmins'                => [ 'Pratélan_panata', 'Pratelan_panata' ],
    'Listbots'                  => [ 'Pratélan_bot', 'Pratelan_bot' ],
    'Listfiles'                 => [ 'Pratélan_barkas', 'Pratelan_barkas' ],
    'Listgrouprights'           => [ 'Pratélan_hak_golongan', 'Pratelan_hak_golongan' ],
    'Listgrants'                => [ 'Pratélan_idin', 'Pratelan_idin' ],
    'Listredirects'             => [ 'Pratélan_alihan', 'Pratelan_alihan' ],
    'ListDuplicatedFiles'       => [ 'Pratélan_barkas_dhobel', 'Pratelan_barkas_dhobel' ],
    'Listusers'                 => [ 'Pratélan_naraguna', 'Pratelan_naraguna' ],
    'Lockdb'                    => [ 'Gembok_basis_dhata' ],
    'Log'                       => [ 'Cathetan' ],
    'Lonelypages'               => [ 'Kaca_lola' ],
    'Longpages'                 => [ 'Kaca_dawa' ],
    'MediaStatistics'           => [ 'Setatistik_médhia', 'Setatistik_medhia' ],
    'MergeHistory'              => [ 'Sajarahing_panggabung' ],
    'MIMEsearch'                => [ 'Golèk_MIME', 'Golek_MIME' ],
    'Mostcategories'            => [ 'Kategori_akèh_dhéwé', 'Kategori_akeh_dhewe' ],
    'Mostimages'                => [ 'Gambar_akèh_dhéwé', 'Gambar_akeh_dhewe' ],
    'Mostinterwikis'            => [ 'Interwiki_akèh_dhéwé', 'Interwiki_akeh_dhewe' ],
    'Mostlinked'                => [ 'Kaca_akèh_dhéwé_kagayut', 'Kaca_akeh_dhewe_kagayut' ],
    'Mostlinkedcategories'      => [ 'Kategori_akèh_dhéwé_kagayut', 'Kategori_akeh_dhewe_kagayut' ],
    'Mostlinkedtemplates'       => [ 'Cithakan_akèh_dhéwé_kagayut', 'Cithakan_akeh_dhewe_kagayut' ],
    'Mostrevisions'             => [ 'Owahan_akèh_dhéwé', 'Owahan_akeh_dhewe' ],
    'Movepage'                  => [ 'Lih_kaca' ],
    'Mute'                      => [ 'Bisu' ],
    'Mycontributions'           => [ 'Pasumbangku' ],
    'MyLanguage'                => [ 'Basaku' ],
    'Mypage'                    => [ 'Kacaku' ],
    'Mytalk'                    => [ 'Parembuganku' ],
    'Myuploads'                 => [ 'Unggahanku' ],
    'Newimages'                 => [ 'Gambar_anyar' ],
    'NewSection'                => [ 'Pérangan_anyar', 'Perangan_anyar' ],
    'Newpages'                  => [ 'Kaca_anyar' ],
    'PageData'                  => [ 'Dhata_kaca' ],
    'PageHistory'               => [ 'Sajarahing_kaca', 'Sajarah' ],
    'PageInfo'                  => [ 'Katerangan_kaca', 'Katerangan' ],
    'PageLanguage'              => [ 'Basaning_kaca' ],
    'PasswordPolicies'          => [ 'Niti_tembung_sandi' ],
    'PasswordReset'             => [ 'Balèni_setèl_sandi', 'Baleni_setel_sandi' ],
    'PermanentLink'             => [ 'Pranala_permanèn', 'Pranala_permanen' ],
    'Preferences'               => [ 'Pilalan' ],
    'Prefixindex'               => [ 'Indhèk_ater-ater', 'Indhek_ater-ater' ],
    'Protectedpages'            => [ 'Kaca_direksa' ],
    'Protectedtitles'           => [ 'Sesirah_direksa' ],
    'Purge'                     => [ 'Resiki' ],
    'Randompage'                => [ 'Kaca_sembarang' ],
    'RandomInCategory'          => [ 'Sembarang_ing_kategori' ],
    'Randomredirect'            => [ 'Alihan_sembarang' ],
    'Randomrootpage'            => [ 'Kaca_oyod_sembarang' ],
    'Recentchanges'             => [ 'Owahan_anyar' ],
    'Recentchangeslinked'       => [ 'Owahan_magepokan' ],
    'Redirect'                  => [ 'Alihan' ],
    'RemoveCredentials'         => [ 'Busak_krédhénsiyal', 'Busak_kredhensiyal' ],
    'ResetTokens'               => [ 'Balèni_setèl_token', 'Baleni_setel_token' ],
    'Revisiondelete'            => [ 'Busak_révisi', 'Busak_revisi' ],
    'Search'                    => [ 'Golèk', 'Golek' ],
    'Shortpages'                => [ 'Kaca_cendhak' ],
    'Specialpages'              => [ 'Kaca_mirunggan' ],
    'Statistics'                => [ 'Setatistik' ],
    'Tags'                      => [ 'Tenger' ],
    'TrackingCategories'        => [ 'Kategori_panglacak' ],
    'Unblock'                   => [ 'Copot_penggakan' ],
    'Uncategorizedcategories'   => [ 'Kategori_kang_tanpa_kategori' ],
    'Uncategorizedimages'       => [ 'Gambar_kang_tanpa_kategori' ],
    'Uncategorizedpages'        => [ 'Kaca_kang_tanpa_kategori' ],
    'Uncategorizedtemplates'    => [ 'Cithakan_kang_tanpa_kategori' ],
    'Undelete'                  => [ 'Wurung_mbusak' ],
    'Unlockdb'                  => [ 'Bukak_gemboking_basis_dhata' ],
    'Unusedcategories'          => [ 'Kategori_kang_ora_kaanggo' ],
    'Unusedimages'              => [ 'Gambar_kang_ora_kaanggo' ],
    'Unusedtemplates'           => [ 'Cithakan_kang_ora_kaanggo' ],
    'Unwatchedpages'            => [ 'Kaca_kang_ora_ingawasan' ],
    'Upload'                    => [ 'Unggah' ],
    'Userlogin'                 => [ 'Mlebu_log', 'Login' ],
    'Userlogout'                => [ 'Metu_log', 'Logout' ],
    'Userrights'                => [ 'Hak_naraguna' ],
    'Version'                   => [ 'Gagrag' ],
    'Wantedcategories'          => [ 'Kategori_kang_dipéngini', 'Kategori_kang_dipengini' ],
    'Wantedfiles'               => [ 'Barkas_kang_dipéngini', 'Barkas_kang_dipengini' ],
    'Wantedpages'               => [ 'Kaca_kang_dipéngini', 'Kaca_kang_dipengini' ],
    'Wantedtemplates'           => [ 'Cithakan_kang_dipéngini', 'Cithakan_kang_dipengini' ],
    'Watchlist'                 => [ 'Pawawangan' ],
    'Whatlinkshere'             => [ 'Pranala_mréné', 'Pranala_mrene' ],
    'Withoutinterwiki'          => [ 'Tanpa_interwiki' ],
];

VP: here

Event Timeline

@N219 Just a hint: If you (or anybody else) would like to create a software patch to resolve this request, please see Developer access and the Gerrit tutorial.
The file to change for this request is languages/messages/MessagesJv.php
Please note that providing help with Git/Gerrit is out of scope for Phabricator tasks. Thanks!

If you still are stuck though and would like

I don't think this is correct anyway. namespaceNames doesn't take arrays as keys.

That is what namespaceAliases is for

Hi, @Reedy, I'm the person who made the proposal on jv.wiki. You're right, I'm missed the backwards compatibility feature for $namespaceNames. I have made changes and here's the permanent link for the new code.

Hi, all. I have updated the description to valid syntax as Reddy said. Is there any update on this? Since I'm not familiar with this technical issue and there has been already consensus from Javanese Wikipedia community, and one of the admin has voted for it. Regards. Thank you.

@Labdajiwa: Anyone is free to work on this; if you are interested in fixing this yourself, please follow the links in T255747#6234101 - thanks! :)

@Aklapper I'm using the web-interface of Gerrit to make a change. Can you check it if it's okay? https://gerrit.wikimedia.org/r/c/mediawiki/core/+/634101. Because I'm new on here and Gerrit. Thanks.

Change 634101 had a related patch set uploaded (by Aklapper; owner: Labdajiwa):
[mediawiki/core@master] MessagesJv.php: Update specialpages and namespaces in Javanese

https://gerrit.wikimedia.org/r/634101

I'm requesting some change for the correct translation on jvwiki and the admin has agreed about the changes. Link: https://jv.wikipedia.org/wiki/Wikipedia:Angkringan_Tèhnis#Komèntar

'Log'                       => [ 'Log' ],
'PageInfo'                  => [ 'Info_kaca', 'Info' ],
'Version'                   => [ 'Vèrsi', 'Versi' ],

...to

'Log'                       => [ 'Cathetan' ],
'PageInfo'                  => [ 'Katerangan_kaca', 'Katerangan' ],
'Version'                   => [ 'Gagrag' ],

Change 634101 merged by jenkins-bot:
[mediawiki/core@master] MessagesJv.php: Update specialpages and namespaces in Javanese

https://gerrit.wikimedia.org/r/634101

The new version has been deployed

Change 636731 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/core@master] Fix conflicting special page aliases in Javanese (jv)

https://gerrit.wikimedia.org/r/636731

thiemowmde added a subscriber: thiemowmde.

@Labdajiwa, for your information, we temporarily disabled the aliases for 2 of the special pages because they conflict. I disabled both because I could not figure out which one is correct. The two spots are marked with FIXME comments. Can you upload a follow-up patch that fixes this properly?

Change 636731 merged by jenkins-bot:
[mediawiki/core@master] Fix conflicting special page aliases in Javanese (jv)

https://gerrit.wikimedia.org/r/636731

@thiemowmde Thank you for reminding me about the conflict. The correct one is Listfiles, I will change the value of AllMyUploads to Pratélan_unggahanku.

Change 638452 had a related patch set uploaded (by Labdajiwa; owner: Labdajiwa):
[mediawiki/core@master] Fix duplicate special page aliases in Javanese

https://gerrit.wikimedia.org/r/638452

Change 638452 merged by jenkins-bot:
[mediawiki/core@master] Fix duplicate special page aliases in Javanese

https://gerrit.wikimedia.org/r/638452

The new version has been deployed