wordpress-mobile / wordpress-mobile/WordPress-Android
Issue: App only shows posts in default language (multilingual site)
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Hello! I have a self-hosted multilingual site using Polylang. My posts are in two languages, Portuguese and English with the former set as the default language in the plugin. But the WP app only shows posts in the default language (Portuguese); it doesn't show posts in the other language (English). Therefore, I cannot open/edit many of my posts using the app.
Expected behavior
Show all posts without filtering by language.
Actual behavior
As a test, I created two posts, one in Portuguese and one in English as seen in the web regular admin:
When I open the app and Menu > Posts > Drafts, I can only see the post in Portuguese (default language):
If I change the default language in the plugin to English, then only posts in English are shown:
Curiously, the Drafts card in the app Home shows posts in both languages:
Clicking on the card, however, leads to the default-language-only list of draft posts.
I guess the app is filtering out posts in languages other than the default, but it doesn't do it for listing the posts in the Drafts card.
Steps to reproduce the behavior
- Self-hosted WP with Polylang.
- Posts in multiple languages.
- Connect to site to WP app.
- Open
Menu > PostsorPages.
Polylang needs to be installed. If deactivated, then all posts show up in the app. I don't know whether the same happens with other similar multilingual plugins. It could simply be a Polylang-specific issue or perhaps a more general issue on how the app handles posts in different languages.
Any help figuring this out is greatly appreciated! Thanks!
Cheers,
Bruno
Tested on Samsung SM-G930F, Android 8.0.0, WPAndroid 21.4-rc-2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with an Android app connected to a self-hosted WordPress site using Polylang, with posts in Portuguese and English. Compare the Menu > Posts or Pages list with the Drafts card, then trace the relevant listing flow; done means posts in all languages appear in the list without filtering to the default language.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- localization, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100