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)
Invalid
Low
Unassigned
ubiquity (Ubuntu)
Fix Released
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

Tags: patch

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 (last edit ):

This one also affects me. As you can see in the attached picture during installation internet connection establish and `apt` connected 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
Revision history for this message
esmaeelE (esmaeele) wrote :
Revision history for this message
esmaeelE (esmaeele) wrote (last edit ):

I check this bug on Ubuntu 20.04, 21.10, 22.04 and Xubuntu 22.10
In first page of installer that we choose language if I select Persian language final locale `fa_IR` will set and after install complete.

Revision history for this message
esmaeelE (esmaeele) wrote :

I add default language for IRAN to ubiquity.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "ubiquity_22.10.2.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
esmaeelE (esmaeele) wrote :

Here is the changed file

Revision history for this message
esmaeelE (esmaeele) wrote :

New patch for `ubiquity-22.10.2/scripts/localechooser-apply` file.

Revision history for this message
esmaeelE (esmaeele) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

Queued for 23.10 in

https://git.launchpad.net/ubiquity/commit/?id=6ad715e6ae9dda99a9349924cc464528a759af17

For a stable release update to 22.04, feel free to follow the procedure at

https://wiki.ubuntu.com/StableReleaseUpdates

to add the metadata to the bug such that it can be reproduced and resubscribe ubuntu-sponsors when that's done, I think the patch is trivial to adapt from the commit that it doesn't need a new debdiff.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 23.10.3

---------------
ubiquity (23.10.3) mantic; urgency=medium

  [ Michael Hudson-Doyle ]
  * Cherry pick the fix for Debian bug #1040048 to fix build with new
    ncurses-bin.

  [ David Mohammed ]
  * Don't display a panel for budgie-wm

  [ Benjamin Drung ]
  * Update legacy timezones in tzsetup (LP: #2031838)

 -- Benjamin Drung <email address hidden> Tue, 12 Sep 2023 14:40:23 +0200

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.