[Plugin: Polylang] Problem with category and other listings
-
Hi.
1. Installed Polylang on a blog (http://visc.me) running the graffiti theme. I have no idea if the theme is internationalized. Its description says it is localizable (comes with default.mo and default.po). But the language_attributes() call in header.php is missing, so I replaced the line <html> with this one:
<html <?php language_attributes(); ?>>
2. Added 2 langs, en_US (def) and Greek. Assigned en_US to all posts, tags and cats
3. Mirrored the categories and posts I wanted to translate in Greek and set the language assignments via the dashbooard for the the respective categories and posts.
4. Declared the domain by adding those lines to functions.php, at the very bottom, just before the ending ?>add_action( ‘after_setup_theme’, ‘setup’ );
function setup() {
load_theme_textdomain(‘your_theme’, get_template_directory());
}5. Did not edited all files, adding the __() function to strings, because mainly I do not want to localize the settings strings and messages, just want to publish in other languages. Is this causing the errors?
6. Post switch and display work well (with the lang switcher and custom links).
7. Filtering in recent posts also works well.
8. But it’s a disaster with all listings:* Greek posts category listings is not displaying any posts (no posts found error, although there are 2 posts in that category) (http://visc.me/category/blog-el/dogs-el/)
* Monthly archives listing not displaying (404) (http://visc.me/en/2012/07/)
* Author listing not displaying (404) (http://visc.me/en/author/charis/)All these problems disappear, as soon as Polylang is deactivated.
9. Sidebar Lang switch widget.
I configured the widget to hide the current lang, so initially only the greek flag appears. It switches to the greek version of the article, if it is available, but the current lang is not set to greek. (check this here, this ia an article with greek translation: http://visc.me/from-nothing-to-something/)
Any suggestions?
I will leave Polylang activated for a couple of days, so that you can check what I mean.
Best Regards
The topic ‘[Plugin: Polylang] Problem with category and other listings’ is closed to new replies.