Gengo 2.5.3 and Category Feed Links

The latest version of the Gengo WordPress plugin (2.5.3 to the time I am writing) produces a problem with the category feed links, i.e. with the links to the per-category feeds provided by WordPress.

With a vanilla WordPress instalation, such links are usually of the form

http://your.web.site/category/[category-name]/feed/

If you install Gengo 2.5.3 you got something like this (which does not yield a feed)

http://your.web.site/category/[category-name]/[language-code]/feed/

whereas the correct form would be

http://your.web.site/category/[category-name]/feed/[language-code]/

That is, the language code is supposed to be at the end of the URL. Always.

I corrected this issue and made a patch. I am also going to notify the issue (and the patch too) to the authors/mantainers of the Gengo plugin. I trust that it will be included soon in the Gengo mainstream.

Meanwhile, here you can download the patch or the patched gengo.php file.

Download and Install the patched file

Download the archive, uncompress it, and replace the original gengo.php file of your installation.

  Gengo 2.5.3 - gengo.php patched (25.3 KiB, 843 hits)

Download and install the patch

  Gengo 2.5.3 Patch (1.5 KiB, 847 hits)

$ cp gengo-2.5.3.php.patch /path/to/gengo/
$ cd /path/to/gengo/
$ patch -p0 < gengo-2.5.3.php.patch
$ rm gengo-2.5.3.php.patch

{ 6 comments… read them below or add one }

Nemo September 13, 2008 at 3:29 pm

I am not able to contact any of the authors or mantainers so far. I’ll try again in the next days.

Detro September 14, 2008 at 3:20 am

I think you left a comment in Italian at the end of the Patch, even tough it doesn’t look like a modification from you.
It’s the line first before the last:

if (is_admin() || $gengo_use_default_language) {
+ require_once(ABSPATH . ‘wp-includes/pluggable.php’);
get_currentuserinfo();
$this->add_language_preference($this->get_default_language_id());
}
@@ -2782,4 +2798,4 @@
exit;
}

-$gengo = new Gengo();
\ Nessuna a capo alla fine del file
+$gengo = new Gengo();

Nemo September 14, 2008 at 8:37 am

@Detro: Well, I think that diff command (which is of course localized on my system) has done that. Anyway, it’s not so important, that string should not be inserted in the final patched file.
By the way, I’ll edit the patch ASAP.

Graciela December 2, 2008 at 1:40 pm

Thank you for this patch, Nemo!
It is a shame that neither the author nor the maintainers can be contacted.
Many people like me need a multilanguage solution, and Gengo was (is?) the best choice.

Nemo December 3, 2008 at 10:29 am

You are welcome. If I had more time, I’ll start to maintain and develop Gengo, but…now I can’t :)

Interlock Roofing September 7, 2009 at 5:15 am

Wanted to say hello
Thanks!
Interlock Roofing
Interlock Industries

Leave a Comment

Previous post:

Next post: