I am using the Angular directive for Bootstrap datepicker: http://angular-ui.github.io/bootstrap/#/datepicker
I can not find any documentation saying i can set a default language on it. The date format is easy enough to change, but i can't set the language to norwegian so that the months, or days are displayed in norwegian instead of english. Does anyone know if this is even possible?
Thanks in advance.
-L
Hm, I'm not sure if it helps. But somewhere is pointed out, that you can use the standard localization of angular.
Please refer to this documentation.
Thanks to Edminsson. I looked at that link earlier, but for some reason i didn't find it relevant to me. (Must have been before i had my morning coffee)
Here's the solution: AngularJS/Angular-ui-bootstrap Changing language used by the datePicker
Related
I use i18n (react-i18next) in my react js application. Translation with language chooser etc works absolutly fine.
But now I want to change some texts programmatically on demand.
I tried this:
i18n.t('clinical:sde.export.studyTitle', {lng: "en"})
and
i18n.t('clinical:sde.export.studyTitle', {"en"})
It always returns the german string from current setting and not the "on demand" english text. Is there a solution to solve this?
Thanks in advance.
Your code should work, you need to check that the dynamic language is loaded (this what i18n.changeLanguage does).
I've made a simple test, and it works.
https://codesandbox.io/s/react-i18next-example-forked-ueng1?file=/src/app.js
This is my first post here, so I'm sorry if I'm not in the good section.
My "simple" question is, can we add a gage/gauge (I don't now the exact english spelling), in a Ionic project ?
A thing like that:
https://www.youtube.com/watch?v=w2qrYL0Le24
Or an other exemple:
http://crisbeto.github.io/angular-svg-round-progressbar/
I already tried to insert gauge like that in my project but the gauge never appears, so please, can you help me ?
(The goal is to show to an user a speed for exemple or the batterie life of his smartphone, any importance, juste a jauge who can be incremented or decremented)
Can you explain me please how it works, for example via a Codepen or anything else. I had already tried to search response but I solve anything on that.
I'm french and I am sorry for my language, but thanks in advance for you'r help !
Thanks.
I was able to get this to work:
https://github.com/frapontillo/angular-gage
You must also have the JustGage library and Raphael. Take a look at the example to see it in action. I was able to even make it work in the http://creator.ionic.io app by adding the scripts of angular-gage, JustGage and Raphael (just add a js and paste in the scripts).
I'm using a plugin which calls http://gmaps-samples-v3.googlecode.com/svn/trunk/geolocate/geometa.js for displaying map with pins on the homepage. However, this link is not found (404). I've searched for the solution too see what to do, but with no luck.
Is there a new version of this javascript available that I could replace this link with the new one? Not sure how else to put it and hope it makes sense.
Not Certain but I think this is the file.
http://pastebin.com/D22BSvb8
EDIT: Think this is the most upto date version: http://pastebin.com/GHpyPTQE
I am using angular ui-grid's i18nService. And it displays some messy code like
"è¡Œæ¯é¡µ" when I set current language to some language with non english character such as Chinese, Korean and something else.
But for the headers and cells which I use angular translate, everything display very well. I guess it maybe some setting problem, but I just have no clue.
Any advice would be appreciated. Thank you!
if you want to set current language to Chinese.
code:
// set pagenation current language
i18nService.setCurrentLang('zh-cn');
you can also visit this page:
http://ui-grid.info/docs/#/tutorial/104_i18n
I got the anwser. It's the encoding problem of the browser. The encoding should be set to Unicode(UTF-8), if it not working, clear cache first and try again.
I currently have a problem with Dojo's calendar. It doesn't seem to be showing the name of the month when the locale is switched to zh-tw.
Instead of getting:
一月
二月
三月
。。。
we get
1
2
3
...
We don't have this problem when Dojo the locale is set to en. This is somewhat related to https://bugs.dojotoolkit.org/ticket/10490.
Anyone have a clue as to how to fix this? :)
Thanks!
That's because they implemented it that way. You can look at the source code and see that the months are numbered. You can even compare it to the English version.
As far as I know there is no way to extend or override this, so you will have to extend the dijit.Calendar._MonthDropDown yourself and hardcode it (not that this is a best practice).