telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.05k stars 5.17k forks source link

Support alternative calendars in telegram #4182

Open afarsi opened 6 years ago

afarsi commented 6 years ago

In many countres, official calendar isn't Geoiregian calendar. For exmple, Arabic countries are using Hijri calendar as official celndar. And in many Asian countiries, people are using chinese or korean calendar. It will be a large project named alternative calendar and implement all of important alternative calenders in telegram. For example, a user in arabic countries should be able to select Hijri calndar as preferd calndar(In telegram settings and it can be detected via system settings). And if he selcted it, he sould be able to see all of dates in Hjri date system, not georgian. For example 1407 Ramadn 05 not 2017 Jan 08. In addition, he should be able to search between two Hijri calendar dates not two georegian calendar dates.

Pay attention: It would be a huge and important benefit for telgram, because currently there is no messenger that supporting aletrnative calendars. Pay attention: Meaning of this bug isn't supporting diffrent date formats. Meaning of it is supporting diffrent calndar systems. In every calendar system, you can write dates in any format. Currently, telegram supporting Georegian calendar system only.

You should support all of these calendars at least: 1-Persian Calendar =Iranian Calendar = Solar Hijri Calendar = Jalali Calendar = Fix bug #1155 2-Arabic Calendar = Lunar Hijri Calendar = Hijri Calendar = Islamic Calendar 3-Chinese Calendar 4-Hebrew Calendar 5-Korean Calendar Note1: You can read about all of these calendars in wikoedia and find covertation algorithms between these georgian dates and dates in these calendars. Note2: Currently, google calendar, windows 10, Mac OS and gmail are supporting alternative calendars(For example, persian calendar) Note3: Maybe icu can help you: http://userguide.icu-project.org/datetime/calendar

neesti commented 5 years ago

What's up from this?

stale[bot] commented 3 years ago

Hey there!

This issue will be automatically closed in 7 days if there would be no activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

Aokromes commented 3 years ago

imho still needed

DearRude commented 3 years ago

No updates on this?

ilya-fedin commented 3 years ago

No updates on this?

Someone should design and create widgets for this

neesti commented 3 years ago

@afarsi

‏ چنانچه می‌دانید، نسخهٔ دسکتاپِ آی‌گرام تقویم جلالی هم دارد و سورس این برنامه هم در گیت‌هاب هست. آیا نمی‌شود که از آن برای افزودن تقویم جلالی به تگرامِ دسکتاپ یاری جست؟ ‎

ilius commented 3 years ago

Here is a Golang library I wrote, in case it helps someone https://github.com/ilius/libgostarcal/tree/master/cal_types

neesti commented 3 years ago

Iranian calendar codes were added to the latest version of the Qt library:

https://codereview.qt-project.org/c/qt/qtbase/+/182341

ilya-fedin commented 3 years ago

Iranian calendar codes were added to the latest version of the Qt library:

tdesktop doesn't use QCalendar for its calendar widget: https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/SourceFiles/ui/boxes/calendar_box.cpp