Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic AppointmentForm change Language (Read 4206 times)
nico_Spingo
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Nov 1st, 2021
AppointmentForm change Language
Nov 1st, 2021 at 10:56am
Print Post  
Hi, I’m making a scheduler for a small company, I wanted to ask if it would be possible to use the Appointmentform in a language other than English.
Thank you and have a good day  [font=Georgia][/font]
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: AppointmentForm change Language
Reply #1 - Nov 1st, 2021 at 11:03am
Print Post  
Hi,

It should be possible by setting localized strings in LocalizationInfo object and passing it to AppointmentForm constructor.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: AppointmentForm change Language
Reply #2 - Nov 1st, 2021 at 1:21pm
Print Post  
You could also load the strings from an XML file, with format shown in attached localization-de.xml:

Code
Select All
LocalizationInfo local = new LocalizationInfo();
local.loadFromXml("Localization-DE.xml");
DateTimeInfo info = new DateTimeInfo(
    calendar, java.util.Locale.GERMANY);
AppointmentForm form = new AppointmentForm(
    calendar.getSchedule(),  info, local);
 



Regards,
Slavcho
  

appform.png (Attachment deleted)
Localization-DE.xml (Attachment deleted)
Back to top
 
IP Logged
 
nico_Spingo
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Nov 1st, 2021
Re: AppointmentForm change Language
Reply #3 - Nov 3rd, 2021 at 9:07am
Print Post  
Tnx Slavcho ,That’s just it.
I was just trying where I could find the xml file with the disiderate language , like in Italian, sorry for the dumb question
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: AppointmentForm change Language
Reply #4 - Nov 3rd, 2021 at 9:19am
Print Post  
Hi,

Unfortunately we don't provide out-of-the-box translation files at this time. I've found only the DE.xml one in "Localization" sample project we have for our .NET scheduler. Here you can also find XML with original English strings attached, maybe you could use it for easier translation to the languages you need.

Regards,
Slavcho
  

Localization.xml (Attachment deleted)
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint