Last modified: 2011-07-09 23:07:36 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 T31563, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29563 - Please install GoogleNewsSitemap extension on fawikinews
Please install GoogleNewsSitemap extension on fawikinews
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://fa.wikinews.org/wiki/ویکی‌خبر:...
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-24 12:47 UTC by Mjbmr
Modified: 2011-07-09 23:07 UTC (History)
6 users (show)

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


Attachments

Description Mjbmr 2011-06-24 12:47:39 UTC
Hello,

Please install GNSM ext. on fawikinews with following configuration :

$wgGNSMfallbackCategory = 'منتشرشده';
$wgGNSMcommentNamespace = 102;

Please first check that localizations are committed , also note that the special page of this extension should be "خوراک_اخبار" which means "NewsFeed" cuz this is using for wikinews.


Thanks
	Mjbmr
Comment 1 Bawolff (Brian Wolff) 2011-06-24 17:41:06 UTC
>Please first check that localizations are committed , also note that the
>special page of this extension should be "خوراک_اخبار" which means "NewsFeed"
>cuz this is using for wikinews.

As a note, it appears they are not committed yet. Currently in svn the fa translation for the special page name is "نقشه_وبگاه_گوگل_نیوز"
Comment 2 Casey Brown 2011-06-24 18:13:23 UTC
(In reply to comment #1)
> As a note, it appears they are not committed yet. Currently in svn the fa
> translation for the special page name is "نقشه_وبگاه_گوگل_نیوز"

It's "خوراک_اخبار" in translatewiki, though, so someone just needs to sync the two.
Comment 3 Chad H. 2011-07-07 18:07:59 UTC
I sync'd the special page alias, enabled the extension, set the comment NS and fallback category per comment 0.

However, http://fa.wikinews.org/wiki/Special:GoogleNewsSitemap (canonical name for brevity, same situation on aliased name) is failing to show any news items yet.
Comment 4 Bawolff (Brian Wolff) 2011-07-07 23:56:59 UTC
Hmm. http://fa.wikinews.org/wiki/Special:GoogleNewsSitemap?categories=%D9%85%D9%86%D8%AA%D8%B4%D8%B1%D8%B4%D8%AF%D9%87&feed=atom is working fine, which probably means $wgGNSMfallbackCategory isn't being set some how. Is it possible the value for $wgGNSMfallbackCategory is being reset to the default when the extension file gets included?
Comment 5 Sam Reed (reedy) 2011-07-08 00:01:35 UTC
(In reply to comment #4)
> Hmm.
> http://fa.wikinews.org/wiki/Special:GoogleNewsSitemap?categories=%D9%85%D9%86%D8%AA%D8%B4%D8%B1%D8%B4%D8%AF%D9%87&feed=atom
> is working fine, which probably means $wgGNSMfallbackCategory isn't being set
> some how. Is it possible the value for $wgGNSMfallbackCategory is being reset
> to the default when the extension file gets included?

reedy@fenari:/home/wikipedia/common/php-1.17/maintenance$ php eval.php --wiki=fawikinews
> echo $wgSitename;
ویکی‌خبر
> var_dump( $wgGNSMfallbackCategory );
string(9) "Published"
Comment 6 Sam Reed (reedy) 2011-07-08 00:25:02 UTC
<logmsgbot> !log reedy synchronized php-1.17/wmf-config/InitialiseSettings.php  'fixing sitemap for fawikinews'
<morebots> Logged the message, Master
<logmsgbot> !log reedy synchronized php-1.17/wmf-config/CommonSettings.php  'fixing sitemap for fawikinews'
<morebots> Logged the message, Master


The extension was loaded after the variables were set, meaning they were overridden

Set as $wmg in InitialiseSettings.php, push them into $wg in CommonSettings.php if we're loading the extension
Comment 7 Chad H. 2011-07-08 13:35:06 UTC
Ah, that's right. Now was there one last step of submitting it to Google Webmaster Tools? Mark H. should know what to do there. Mark?
Comment 8 Bawolff (Brian Wolff) 2011-07-08 15:16:34 UTC
(In reply to comment #7)
> Ah, that's right. Now was there one last step of submitting it to Google
> Webmaster Tools? Mark H. should know what to do there. Mark?

From what I understand, fawikinews isn't accepted into google news currently, and they want the extension for its rss generating capability. (Someone from fa please correct me if I am wrong). So no other step needed.
Comment 9 Mark A. Hershberger 2011-07-08 15:45:47 UTC
> From what I understand, fawikinews isn't accepted into google news currently,
> and they want the extension for its rss generating capability. (Someone from fa
> please correct me if I am wrong). So no other step needed.

I'd like confirmation of this.  Perhaps fawikinews isn't currently in
google news, but I don't know why it shouldn't be.  It is pretty easy
to add it if you have the webmaster login (which CT and Robla also
do).
Comment 10 Bawolff (Brian Wolff) 2011-07-08 15:53:00 UTC
My understanding is you need to be approved (outside of the webmaster tools), and its not all that easy to get approved. (Although I could be wrong on that but if I recall it took a significant amount of doing to get enwikinews approved several years ago).
Comment 11 Mjbmr 2011-07-09 20:09:34 UTC
Hello,

Thanks for installation, and thanks in advance for adding fawn to google news, after all currently the namespace of special page should be خوراک_اخبار which redirects to نقشه_وب‌گاه_گوگل_نیوز and the title of "RSS" and "ATOM" should have localization for this extension which can found here :

http://translatewiki.net/w/i.php?title=Special:Translations&message=feed-atom&namespace=8

and here :

http://translatewiki.net/w/i.php?title=Special:Translations&message=Feed-rss&namespace=8


Thank you.
Comment 12 Bawolff (Brian Wolff) 2011-07-09 23:07:36 UTC
Done in r91812. That revision would need to be deployed in order to take affect.

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


Navigation
Links