Change language for bootstrap DateTimePicker

i think you have to set it in the options: $(“.form_datetime”).datetimepicker({ isRTL: false, format: ‘dd.mm.yyyy hh:ii’, autoclose:true, language: ‘ru’ }); if its not working, be sure that: $.fn.datetimepicker.dates[‘en’] = { days: [“Sunday”, “Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”, “Sunday”], daysShort: [“Sun”, “Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, “Sun”], daysMin: [“Su”, “Mo”, “Tu”, “We”, “Th”, “Fr”, … Read more

Translate X and Y percentage values based on elements height and width?

When using percentage in a transform translate on a non-SVG element, it refers to the width or height of itself. Take a look at https://davidwalsh.name/css-vertical-center (demo): One interesting thing about CSS transforms is that, when applying them with percentage values, they base that value on the dimensions of the element which they are being implemented … Read more

Translating OS X Bash Script for Windows

As with any translation between programming languages, there’s (a) an as-literal-as-possible approach, which contrasts with (b), an not-immediately-obvious-but-in-the-spirit-of-the-target-language approach. (b) is always preferable in the long run. Use PowerShell, because it is the – far superior – successor to the “Command Prompt” (cmd.exe) and its batch files. The code below is an attempt at (b), … Read more

Android ImageView Scaling and translating issue

this is a working example of two fingers move/scale/rotate (note: the code is quite short due to smart detector used – see MatrixGestureDetector): class ViewPort extends View { List<Layer> layers = new LinkedList<Layer>(); int[] ids = {R.drawable.layer0, R.drawable.layer1, R.drawable.layer2}; public ViewPort(Context context) { super(context); Resources res = getResources(); for (int i = 0; i < … Read more