Is there any predefined way to do localization in trongate framework?
How can I get the Date-Picker in other language and date format?
Localization (i18n) how?
4 years ago
4 years ago
#1
4 years ago
#2
At this time you have to create you own module for it. Get something from GitHub and modify it to work in Trongate. Keep everything in one module assets, controller, and view files. Also look at modules and super modules.
4 years ago
#3
Dan is right. Please give up a thumbs up (or whatever). It's the best possible answer.
Just to elaborate:
I had previously started work on a feature that lets you declare the formats for dates and times - with the date/time pickers. However, it very quickly got out of control and I never quite got a chance to finish it. Those little pop-up calendars are quite a lot of work.
Making Trongate multi-lingual is something that I think has enormous value. However, if I'm going to do it then I want to do it right. So, I'm currently using whatever spare time I have to figure out how those kinds of problems get solved in things like Android Studio and the Swift community. I'd love to some day built something into Trongate that made it entirely language neutral. However, it's a question of time and right now I don't have any.
So, for the moment, Dan's advice must stand.
For what it's worth, if there's a demand then I'll be glad to put out a YouTube tutorial demonstrating how to handle this kind of thing for yourself.
Just to elaborate:
I had previously started work on a feature that lets you declare the formats for dates and times - with the date/time pickers. However, it very quickly got out of control and I never quite got a chance to finish it. Those little pop-up calendars are quite a lot of work.
Making Trongate multi-lingual is something that I think has enormous value. However, if I'm going to do it then I want to do it right. So, I'm currently using whatever spare time I have to figure out how those kinds of problems get solved in things like Android Studio and the Swift community. I'd love to some day built something into Trongate that made it entirely language neutral. However, it's a question of time and right now I don't have any.
So, for the moment, Dan's advice must stand.
For what it's worth, if there's a demand then I'll be glad to put out a YouTube tutorial demonstrating how to handle this kind of thing for yourself.
4 years ago
#4
I have send you a pull-request on github for using a locale in trongate-datetime.js. This is not the final solution for internationalization of trongate, but know we can use other date formats than the 'en-US'.
Hope you accept my contribution.
Hope you accept my contribution.
4 years ago
#5
Hi horseman, could you please close this thread off and award to Dan as DC suggested? Or if you think your question wasn't answered, please elaborate?