Last modified: 2014-05-09 13:31:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52335, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50335 - Create an en_rtl wiki in beta labs
Create an en_rtl wiki in beta labs
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: High enhancement
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks: hackathon2014
  Show dependency treegraph
 
Reported: 2013-06-28 00:03 UTC by Chris McMahon
Modified: 2014-05-09 13:31 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chris McMahon 2013-06-28 00:03:13 UTC
At the request of Amir Ladsgroup and Amir Aharoni, a RTL wiki with both ULS and VE in place for beta would be useful.  VE is working now in beta labs as of very recently https://bugzilla.wikimedia.org/show_bug.cgi?id=49963 

dkwiki was suggested. 

See email from Amir Ladsgroup for more details.
Comment 1 Amir Ladsgroup 2013-06-28 00:33:22 UTC
first of all thank you for filing this bug but I think we don't need a dv wiki (because it has to be a global but English wiki) I described more how to make it possible in E-mail.
My request is please make a wiki in "others" section in site matrix
http://deployment.wikimedia.beta.wmflabs.org/wiki/Special:SiteMatrix#mw-sitematrix-others. I think "test-rtl" is a good name but If you have other suggestions I would be happy to hear 

make default language dv, change l10n settings of dv (MessagesDv.php) and change essential parts to English equals or give me the access and I'll do it.

If we can move database of wikitest-rtl to the new wiki, that would be great
http://tools.wmflabs.org/wikitest-rtl/w/index.php
I think it's possible via mysql dumps (but correct me if I'm wrong) in order to avoid wasting people edits.

Thanks
Comment 2 Antoine "hashar" Musso (WMF) 2013-06-28 09:12:15 UTC
So we can get a 'rtllabswiki' configured that would be available at rtllabs.wikimedia.beta.wmflabs.org.  The 'labs' prefix would be to make it obvious this is only for the beta cluster and not for production.

Then we need all the MediaWiki config to be made in operations/mediawiki-config.git (adding an entry in all-labs.dblist , editing the wmf-config/*-labs.php files).  And finally the Jenkins jobs that update the database need to be updated.
Comment 3 Amir Ladsgroup 2013-06-28 20:45:46 UTC
That's very great but can you add file MessagesDv.php to the gerrit, too? beside the LocalSettings.php
Comment 4 Chris McMahon 2013-07-12 17:41:18 UTC
Antoine, what's the next step here?
Comment 5 Antoine "hashar" Musso (WMF) 2013-08-01 12:27:37 UTC
I have no real idea about what is needed. I guess the idea is to create a new wiki and tweak its configuration setting to match whatever it is expected to handle.

There is doc to create a new wiki at https://wikitech.wikimedia.org/wiki/Nova_Resource:Deployment-prep/Add_a_wiki

Then one will have to fill in configuration parameters in operations/mediawiki-config.git.
Comment 6 Amir Ladsgroup 2013-08-01 13:23:58 UTC
I found something that might helps you:
http://hexmode.com/2011/04/mediawiki-needs-rtl-developers/
What do you think? can you set the language en-rtl? 

I really doesn't understand what this page is telling
https://wikitech.wikimedia.org/wiki/Nova_Resource:Deployment-prep/Add_a_wiki

I know how to make it if it's a simple wiki (I did it in wikitest-rtl) but in the server...
Comment 7 Antoine "hashar" Musso (WMF) 2014-05-09 12:02:43 UTC
Finally giving a poke at it :-)
Comment 8 Gerrit Notification Bot 2014-05-09 12:03:31 UTC
Change 132396 had a related patch set uploaded by Hashar:
beta: create a RTL english wiki

https://gerrit.wikimedia.org/r/132396
Comment 9 Gerrit Notification Bot 2014-05-09 12:04:55 UTC
Change 132396 merged by jenkins-bot:
beta: create a RTL english wiki

https://gerrit.wikimedia.org/r/132396
Comment 10 Antoine "hashar" Musso (WMF) 2014-05-09 12:11:43 UTC
mwdeploy@deployment-bastion:~$ mwscript extensions/WikimediaMaintenance/addWiki.php --wiki=aawiki en wikipedia en_rtlwiki en-rtl.wikipedia.beta.wmflabs.org
Creating database en_rtlwiki for en.wikipedia (English)
Initialising tables
Writing main page to Main_Page
Writing sidebar donate link to MediaWiki:Sitesupport-url
Adding to dblists
PHP Notice:  Undefined variable: wmfRealm in /mnt/srv/scap-stage-dir/wmf-config/db-labs.php on line 5
PHP Notice:  Undefined variable: wgLBFactoryConf in /mnt/srv/scap-stage-dir/refresh-dblist on line 105
content index...
	Fetching Elasticsearch version...1.1.0...ok
	Scanning available plugins...
		elasticsearch-analysis-hebrew, analysis-icu, experimental highlighter, swift-repository, head
		whatson
	Infering index identifier...en_rtlwiki_content_first
 	Picking analyzer...default
	Creating index...ok
	Validating analyzers...ok
	Validating mappings...
		Validating mapping for page type...different...corrected
	Validating aliases...
		Validating content alias...alias is free...corrected
		Validating all alias...alias not already assigned to this index...corrected
	Updating tracking indexes...done
general index...
	Fetching Elasticsearch version...1.1.0...ok
	Scanning available plugins...
		elasticsearch-analysis-hebrew, analysis-icu, experimental highlighter, swift-repository, head
		whatson
	Infering index identifier...en_rtlwiki_general_first
 	Picking analyzer...default
	Creating index...ok
	Validating analyzers...ok
	Validating mappings...
		Validating mapping for page type...different...corrected
	Validating aliases...
		Validating general alias...alias is free...corrected
		Validating all alias...alias not already assigned to this index...corrected
	Updating tracking indexes...done
warning: commands will be executed using /bin/sh
job 7 at Fri May  9 12:24:00 2014
Script ended. You still have to:
	* Add any required settings in InitialiseSettings.php
	* Run sync-common-all
mwdeploy@deployment-bastion:~$
Comment 11 Gerrit Notification Bot 2014-05-09 12:18:26 UTC
Change 132400 had a related patch set uploaded by Hashar:
beta: automatically update en_rtlwiki database

https://gerrit.wikimedia.org/r/132400
Comment 12 Gerrit Notification Bot 2014-05-09 12:19:53 UTC
Change 132400 merged by jenkins-bot:
beta: automatically update en_rtlwiki database

https://gerrit.wikimedia.org/r/132400
Comment 13 Antoine "hashar" Musso (WMF) 2014-05-09 13:31:07 UTC
So the localization cache for en-rtl was not being generated because that language is not listed in Names.php

Sam figured out we can inject new language names with $wgExtraLanguageNames : https://gerrit.wikimedia.org/r/#/c/132415/

That made MediaWiki to generate the language code.


The new wiki is http://en-rtl.wikipedia.beta.wmflabs.org/  \O/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links