Some ads regions are unavailable on Ubuntu after changing system locale
See original GitHub issueFollow up to https://github.com/brave/brave-browser/issues/5655
Important: the issue does not reproduce when Clean installed Ubuntu thus majority of users will not be affected. More info https://github.com/brave/brave-browser/issues/6560#issuecomment-544678432
On Ubuntu System language determines the ads region.
Limited number of locales makes it impossible to enable ads.
This is most prominent for Spanish
locale, which will disable ads for all Spanish speaking countries.
Steps to Reproduce
- Setup system locale on Ubuntu (check below for instructions)
- Clean install Brave
- Run Brave
- Enable rewards
- Open
brave://rewards
Setting up system locale:
- Open
Language Support
in Ubuntu - Install
Spanish
language - Make
Spanish
default system locale - Click
Apply System-Wide
- Click
Regional Formats
at the top - Change the
Regional Formats
toEspanol(Argentina)
- Click
Apply System-Wide
- Restart system
Affected locales: Argentina es_AR Chile es_CL Colombia es_CO Ecuador es_EC Mexico es_MX Peru es_PE Venezuela es_VE
Actual result:
ads are unavailable in this region
The locale
command shows the following
Locale used to show ads is en_ES
Since en_ES
is not supported ads region, the ads are unavailable
Note: It is possible to manually overwrite the system locale before launching Brave (clean install) and that fixes the issue.
LANG=es_AR.UTF-8 LANGUAGE=es_AR /usr/bin/brave-browser
Note: the most obvious way to fix it is to use Regional Formats
which allows to set the right region.
Expected result:
ads are available
Locale used to show ads is es_AR
Reproduces how often:
Always
Brave version (brave://version info)
Brave | 0.70.118 Chromium: 78.0.3904.50 (Official Build) (64-bit) |
---|---|
Revision | 2accdc52c79976e264cd2694df6db31d1fccd8e8-refs/branch-heads/3904@{#658} |
OS | Ubuntu 18.04 LTS |
Miscellaneous Information:
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
@btlechowski I’m going to go ahead and close this one per your last comment.
Good news.
The issue does not reproduce when I clean installed Ubuntu.
Clean installed Ubuntu 19.10, Argentina. Locale is set properly to
es_AR
Ads are available:Clean installed Ubuntu 18.04 LTS, Argentina. Locale is set properly to
es_AR
Ads are available:This issue only reproduces when locale is changed to another locale which I think most user will not do.
cc @tmancey