Kayıtlar

Mart, 2021 tarihine ait yayınlar gösteriliyor

Google Apps Script Custom Catch Function

 function catch(arguments,exception){     console.log(arguments.callee.name+":", "Error report",       "\r\nMessage: " + exception.message       + "\r\nFile: " + exception.fileName       + "\r\nLine: " + exception.lineNumber); }

Changing months language in PHP

In the php we are able to automatically print months with strftime function. In these cases, it is necessary to edit the locale to be able to print the months in Turkish or any language. This is not just for months, but for a lot of functions. It will be sufficient to put the following code at the beginning of your project to translate the predetermined functions. setlocale (LC_ALL, 'tr_TR.UTF-8'); You may encounter this with a lot of ready-to-go scriptions. You change 'tr_TR' section on the above line. This one-line solution will bring you to the conclusion.