Author Topic: Some patch for CalLite component  (Read 1342 times)

zoltanleo

  • Hero Member
  • *****
  • Posts: 524
Some patch for CalLite component
« on: June 02, 2020, 01:47:07 am »
Hi guys.

I made russian locale for Callite component. Please make corrections if my work is not worthless

Update: I didn't see in the demo how the lines 'Holidays in %d' and 'There are no holidays set for %d' are displayed when the argument %d has a real value. Can anyone show me this?

I need this so that the localization into Russian is as correct as possible.
« Last Edit: June 02, 2020, 12:22:53 pm by zoltanleo »
Win10 LTSC x64/LMDE7-x11-x86_64(gtk2/gtk3)/Fedora-44-wayland-x86_64(gtk2/gtk3)/ Kubuntu-24-x11-x86_64(qt5/qt6)/KDE Neon-wayland-x86_64(qt5/qt6)/Darwin Cocoa x86_64 (15.7.7):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 5.0.3 x86_64; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

wp

  • Hero Member
  • *****
  • Posts: 13707
Re: Some patch for CalLite component
« Reply #1 on: June 16, 2020, 11:02:09 pm »
Sorry, I had seen this post, but after it had slipped out of the "Recent" list I forgot about it...

I added your Russian translation to the current trunk version.

The '%d' in the mentioned display texts will be replaced by the year number internally and thus requires an integer, not a real. The strings are used in the context menu of the calendar in demo2. The case 'There are no holidays set for %d' is not covered in the demo; you can force its usage for test purposes by adding an "exit" instruction after the "ClearHolidays()" in "TForm1.GetHolidays()" so that no holidays are defined.

 

TinyPortal © 2005-2018