bdRightToLeft takes care of getting the order right. Then Javascript outputs the Unicode values.
#Delphi xe10 problem arabic right to left languages code#
The browser interprets those numbers as UTF-8, and internally converts them into Unicode code points. Should be the same for both TRUE and FALSE. PHP embeds the 6 numbers mentioned above into an HTML page: 72, 208, 175, 226, 190, 128. "s:= FOwner.FMonthNames + ' ' + IntToStr(FThisYear) " This would be a great addition to Lazarus. I hope you plan to submit this to the development team. For RightToLeft languages the Month should be on the Right and the Year on the Left. That certainly wasnt my intent, but rather to modernize Delphi, in a way that helps me. That post turned out to be somewhat controversial, I received some rather hostile emails about how I was trying to turn Delphi into C.
![delphi xe10 problem arabic right to left languages delphi xe10 problem arabic right to left languages](https://a.storyblok.com/f/42908/2580x740/93560432a1/rtl-academy.png)
The only problem with RightToLeft that I found is with the "Month, Year" at the top. Back in December 2016, I posted some ideas for some Delphi language enhancements. What a great feature! It changed to the Prev./Next month! I wouldn't have thought of that. and Next months could be HighLighted and clicked on one. I wanted to see if the grayed out days of Prev. Anyone can very simply add whatever languages they need. Howardpc! That is beautiful! I've added the Hebrew month names below and I'm sure that someone could provide Arabic/Farsi and other languages as well, but the way you've written it, I doubt that it's needed. It is offered so that others can adapt and improve the code.
![delphi xe10 problem arabic right to left languages delphi xe10 problem arabic right to left languages](https://i1.wp.com/tech-story.net/wp-content/uploads/2020/10/HTML-Component-Library.png)
It defaults to display of day and month names in the language of the locale, but this can be overridden by supplying text in other languages, as you can see in the attached screenshot. A BiDi property is provided, but since I don't read Arabic or Hebrew I have not been able to test this (so it may not work correctly). Arrow icons allow change of the current month or year forwards or backwards, and the current date is selected by left-clicking the desired day. You can set various colours and display parameters (and it would be fairly easy to add further display customisation), and also set which day of the week the first column of days should refer to. Unlike most calendar components this is resizeable, and designed so it can be client-aligned inside a frame or panel or other container, as well as simply dropped onto a form and manually resized. The attached project is my positive answer to that question, which is consequently independent of any widgetset, and has a smaller memory footprint than most other calendars. I asked myself if it were possible to design a calendar using only a TGraphicControl as the ancestor, and do all the drawing without use of further components (arrays of labels/panels or use of a grid).