The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: Auraq | July 19, 2010 @ 12:07pm
PHP Code
[
Download
]
<?php /* Plugin Name:Urdu Date-Time Description:This Plugin Localize Roman Date/Time Format to Urdu Date/Time Format version:0.1 Author: Alif Nizami Author URI: http://auraq.urdutech.com/ */ function MakeUrdu($text){ $text=str_replace('January','جنوری',$text); $text=str_replace('February','فروری',$text); $text=str_replace('March','مارچ',$text); $text=str_replace('April','اپریل',$text); $text=str_replace('May','مئی',$text); $text=str_replace('June','جون',$text); $text=str_replace('July','جولائی',$text); $text=str_replace('August','اگست',$text); $text=str_replace('September','ستمبر',$text); $text=str_replace('October','اکتوبر',$text); $text=str_replace('November','نومبر',$text); $text=str_replace('December','دسمبر',$text); $text=str_replace('th',' ',$text); $text=str_replace('st',' ',$text); $text=str_replace('AM','صبح',$text); $text=str_replace('PM','شام',$text); $text=str_replace('am','صبح',$text); $text=str_replace('pm','شام',$text); $text=str_replace('Saturday', 'ہفتہ',$text); $text=str_replace('Sunday','اتوار',$text); $text=str_replace('Monday','سوموار',$text); $text=str_replace('Tuesday','منگل',$text); $text=str_replace('Wednesday','بدھ',$text); $text=str_replace('Thursday','جمعرات',$text); $text=str_replace('Friday','جمعہ',$text); $text=str_replace('0','۰',$text); $text=str_replace('1','۱',$text); $text=str_replace('2','۲',$text); $text=str_replace('3','۳',$text); $text=str_replace('4','۴',$text); $text=str_replace('5','۵',$text); $text=str_replace('6','۶',$text); $text=str_replace('7','۷',$text); $text=str_replace('8','۸',$text); $text=str_replace('9','۹',$text); return $text; } add_filter('get_comment_date','MakeUrdu'); add_filter('the_date','MakeUrdu'); add_filter('the_weekday_date','MakeUrdu'); add_filter('get_comment_time','MakeUrdu'); add_filter('get_the_time','MakeUrdu'); add_filter('the_weekday','MakeUrdu'); ?>
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.68 / 8
34 Votes
http://codebin.yi.org/746
page generated in 0.00 seconds