Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Category Internacionalization.

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


mauricioet at gmail

Jul 24, 2012, 10:45 AM

Post #1 of 3 (71 views)
Permalink
Category Internacionalization.

Hi !

I'm working on a extension for Media Wiki. And I need to detect when a
categorization is made on an article.

So I search for the annotation with the keyword "category" but, then I need
to detect categorizations in other languages.How can I get the translation
of the keyword "category" ?

Wich is the best way to add/remove an article from a Category ?


Thanks!
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Platonides at gmail

Jul 24, 2012, 11:23 AM

Post #2 of 3 (72 views)
Permalink
Re: Category Internacionalization. [In reply to]

El 24/07/12 19:45, Mauricio Etchevest escribió:
> Hi !
>
> I'm working on a extension for Media Wiki. And I need to detect when a
> categorization is made on an article.
>
> So I search for the annotation with the keyword "category" but, then I need
> to detect categorizations in other languages.How can I get the translation
> of the keyword "category" ?
>
> Wich is the best way to add/remove an article from a Category ?
>
>
> Thanks!

You're doing it the wrong way. You want to call getCategoryLinks() on
the parser output. Take a look at LinksUpdate.php



_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


mauricioet at gmail

Jul 25, 2012, 11:55 AM

Post #3 of 3 (64 views)
Permalink
Re: Category Internacionalization. [In reply to]

I can get all the categories with the Parser Output, but I can´t add or
delete a category.
I'm using updateCategoryCounts() in LinksUpdate but it doesn't work.


On Tue, Jul 24, 2012 at 3:23 PM, Platonides <Platonides [at] gmail> wrote:

> El 24/07/12 19:45, Mauricio Etchevest escribió:
> > Hi !
> >
> > I'm working on a extension for Media Wiki. And I need to detect when a
> > categorization is made on an article.
> >
> > So I search for the annotation with the keyword "category" but, then I
> need
> > to detect categorizations in other languages.How can I get the
> translation
> > of the keyword "category" ?
> >
> > Wich is the best way to add/remove an article from a Category ?
> >
> >
> > Thanks!
>
> You're doing it the wrong way. You want to call getCategoryLinks() on
> the parser output. Take a look at LinksUpdate.php
>
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.