Iranian calendar shows in Azerbaijani language

Bug #1891270 reported by Amirhosein Rahmati
48
This bug affects 11 people
Affects Status Importance Assigned to Milestone
gnome-calendar (Ubuntu)
Low
Unassigned
ubiquity (Ubuntu)
Low
esmaeelE

Bug Description

I already installed Ubuntu 20.04.1 LTS and set location on Iran during installation.
After finishing installation successfully, I open the calendar by clicking at the top of the screen (where the clock is shown), I see the calendar with Azerbaijani names for month and weekdays.

Such as "آقوست" for August and "جومعه آخشامی" for Thursday.

But it should show in Iranian names such as "اوت" for August and "پنجشنبه" for Thursday.

Description: Ubuntu 20.04.1 LTS
Release: 20.04

Related branches

Revision history for this message
Amirhosein Rahmati (amirhoseinrahmati) wrote :
affects: apport → gnome-calendar (Ubuntu)
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1891270

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in gnome-calendar (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Danial Behzadi (dani.behzi) wrote :

`fa_IR.UTF-8` local is not installed by default. That's a bug!

Changed in gnome-calendar (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Danial Behzadi (dani.behzi) wrote :

I think ubiquity should generate the locale when Iran is selected.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Does it work once the locale is installed? what language did you select during the installation?

Changed in gnome-calendar (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

Which language did you select during the installation? Were you connected to internet from ubiquity?

Changed in ubiquity (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Amirhosein Rahmati (amirhoseinrahmati) wrote :

I decided to English during the installation.

I think I was connected to the Internet but I'm not sure.

Yes. It worked when I installed the locale.

Revision history for this message
esmaeelE (esmaeele) wrote :

This one also affects me. As you can see in the attached picture during installation internet connection stablished and `apt` connetcted to the `http://ir.archive.ubuntu.com/ focal main amd64`.

I select English for setup language but after that choose Tehran/IRAN as location.

I think locale not correctly set when select Tehran/IRAN in ubiquity.

This is what return from locale command.

$ locale

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=az_IR
LC_TIME=az_IR
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=az_IR
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=az_IR
LC_NAME=az_IR
LC_ADDRESS=az_IR
LC_TELEPHONE=az_IR
LC_MEASUREMENT=az_IR
LC_IDENTIFICATION=az_IR
LC_ALL=

As @Danial Behzadi said, It should be `fa_IR UTF-8` as IRAN official language is Farsi/Persian not Azeri.

Revision history for this message
esmaeelE (esmaeele) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

the environment is at fault there, it's not a calendar bug, could be one in ubiquity though

Changed in ubiquity (Ubuntu):
status: Incomplete → New
Changed in gnome-calendar (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Revision history for this message
esmaeelE (esmaeele) wrote :

This bug also persisted in Ubuntu 20.10 with ubiquity 20.10.13

Revision history for this message
Alireza Ahmadi (lordarma) wrote :

I also have this bug in the last daily build on all flavors.

Revision history for this message
Alireza Ahmadi (lordarma) wrote :

The screen shot of the Language Support's problem in the last daily build of Xubuntu about this bug.

As you can see Azerbaijani is the default. Also Persian isn't exist.

Revision history for this message
Mohammad (mrostd) wrote :

I have this problem too!

Revision history for this message
mm79 (mm1379) wrote :

Same here

esmaeelE (esmaeele)
Changed in ubiquity (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → esmaeelE (esmaeele)
Revision history for this message
esmaeelE (esmaeele) wrote :

We have two option for IRAN in `/usr/share/i18n/SUPPORTED` file.
As `az_IR` comes first, installer use it instead of correct one fa_IR.

$ grep IR /usr/share/i18n/SUPPORTED
az_IR UTF-8
fa_IR UTF-8

IRAN default language is Farsi/Persian .
I add a default option for IRAN, i.e `IR -> fa_IR` to correct this issue.

Changed file: d-i/patches/localechooser-post-base-installer.patch

Similar bugs for `German` and `Belgian`

Wrong language (German) after fresh install: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1295627

default locale when selecting english(US) and belgian timezone is incorrect: (https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1907914)

Revision history for this message
esmaeelE (esmaeele) wrote :

Prove this change will fix bug.

1. Boot system with live installer for example `xubuntu-21.04-desktop-amd64.iso`.
2. Fix file : `/usr/lib/ubiquity/localechooser/post-base-installer`
and add `IR) deflang=fa ;;`.
3. Run ubiquity

Run:
$ ubiquity -d gtk_ui --debug

Logs:
$ tail -f /var/log/syslog

See screenshot taken after install with this change to ubiquity installer.

esmaeelE (esmaeele)
Changed in ubiquity (Ubuntu):
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers