ব্যবহারকারী:Jayantanth/chatwithcirwin

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
  • [12:23] == joy__ [~7375ee06@gateway/web/freenode/x-ybciwxhrvyzserty] has joined #mediawiki
  • [12:24] <joy__> dear all I am from bengali wiki we have some issue regarding #time persor fun
  • [12:24] <cirwin> what issues?
  • [12:25] <joy__> {{#time:xND|{{{year|{{CURRENTYEAR}}}}}0301}}= out put is error
  • [12:26] <cirwin> what is the output of {{CURRENTYEAR}} ?
  • [12:27] <joy__> that is basic issue {{CURRENTYEAR}} out put is ২০১০(in bengali) not ASCII number
  • [12:27] <cirwin> that is the problem then
  • [12:28] <cirwin> I don't know if there is a way to force it to ascii output
  • [12:28] <joy__> all our #time related templates not work properly
  • [12:28] <cirwin> well, #time expects ascii input, that should maybe be fixed instead
  • [12:29] <Dashiva> Use {{#time:Y}} instead of {{CURRENTYEAR}}?
  • [12:30] <cirwin> time also outputs in localised time :)
  • [12:30] <joy__> that page only copy of http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions of #time
  • [12:31] <cirwin> you can use {{#time: xnY}} instead of {{CURRENTYEAR}}
  • [12:33] <cirwin> I wonder how hard it'd be to provide localised input for #time, it seems to use inbuilt php support for parsin
  • [12:33] <cirwin> *parsing
  • [12:36] <joy__> and another issue is at {{#if:{{{date|}}}|{{#time:l, j F Y|{{#iferror:{{#time:Y-m-d|{{{date|einval}}}}}|{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}}}+ 7 days}} out put is error
  • [12:37] <Dashiva> Reading that kind of stuff without formatting is :(
  • [12:38] <cirwin> joy__: again, REVISIONYEAR outputs localised time, #time can only input ascii time
  • [12:46] <joy__> sorry cirwin for again disturb actually we want to create a same template as in English wiki where this code has come... Please see http://bn.wikipedia.org/wiki/Template:Deletable_image. And sujject me what to do ..
  • [12:48] <cirwin> I don't think this is possible, sorry. you could make a template that expands to {{deletable image/box}}
  • [12:53] <joy__> I already tried that way but month func output always as Bengali unicoded current month March
  • [12:54] <cirwin> can you live with having 2010-03-03 intead?
  • [12:59] <joy__> yes.. Is there any way to output to ASCII number or ASCII charrecter?
  • [13:00] <cirwin> joy__: {{#time: xN m }}
  • [13:00] <cirwin> svip: log files :)
  • [13:00] <cirwin> what's crashing?
  • [13:07] <joy__> Very very thanks Cirwin ....I am just try your second option {{deletable image/box}}.....again thnx..
  • [13:09] <cirwin> joy__: it would be nice to make #time understand bengali numbers and months, do you know if there is some documentation (in english)
  • [13:13] <joy__> As you know that bengali unicode chart Bengali 1 is not a numeric 1.... I am trying to search some documentation regarding that.....
  • [13:17] <joy__> Bengali 0 is in unicode 09E6 and 9 is 09EF. You can find http://unicode.org/charts/PDF/U0980.pdf
  • [13:18] <cirwin> ok, and the month names are already in mediawki
  • [13:18] <cirwin> when you write the date out, what format do you use?
  • [13:23] <joy__> Basically I dont know about that clearly how english March hardcoded to Bengali (মার্চ)March im Mediawiki
  • [13:24] <cirwin> joy__: well, what i was thinking was, if I just replaced benagli numbers by english numbers, and bengali months with english months (in the code), would that make #time work?
  • [13:27] <joy__> I dont know how other Indic unicode wikipedia works.... I have to sure before going to any changes... let me check ...
  • [13:48] <cirwin> http://www.mediawiki.org/wiki/Help:Magic_words
  • [13:56] <joy__> dear cirwin We have to find out other 2nd way. I have seen the same issue in most of the indic language wikipedia. but still please think ...2nd option... I dont know what will be the effect in our wiki if you change replaced benagli numbers by english numbers, and bengali months with english months (in the code)?
  • [13:57] <cirwin> joy__: neither do I, my plan was to fix #time only by adding one step before it reads the date (to "translate" into English), I don't know whether that would work
  • [13:57] <cirwin> how do you write 1st January 2010, for example?
  • [13:58] <joy__> ১ জানুয়ারি ২০১০
  • [13:59] <cirwin> ok, so I can "translate" that by just converting ০১২ to 012 and জানুয়ারি to January
  • [13:59] <joy__> yes
  • [13:59] <cirwin> will that always work, or are there some different ways to write the date?
  • [14:02] <joy__> that is well known format d-m-y , some times 1st January 2010 --> ১লা জানুয়ারি ২০১০
  • [14:03] <cirwin> লা is just like "st"? do you have something different like 2nd/ 3rd/4th ?
  • [14:06] <joy__> 2nd/ 3rd/4th-->য় or like complexity... leave it at present .... we have template in Bengali wiki for that.....
  • [14:07] <cirwin> ok
  • [14:08] <cirwin> I will try to fix this for you
  • [14:08] <cirwin> but changes to mediawiki take a few months to get to wikipedia
  • [14:09] <joy__> after one month it will it back again?
  • [14:16] <joy__> woo... french wiki facing the same issue.. thanx cirwin I added my email id with this bug