Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Datum na hrvatski u cutenews?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
ivan.tk



Joined: 31 Dec 2004
Posts: 47

PostPosted: 11.04.2007 18:30    Post subject: Datum na hrvatski u cutenews? Add user to your forum ignore list Reply with quote

Zna li iko kako da napravin da mi cutenews-i izbacuju datum na 'naški'.
Sad je '11 Apr 2007' a ja bi tia '11 Travnja 2007'.
Hvala
Laughing
Back to top
View user's profile Send private message
boby-s



Joined: 10 Apr 2004
Posts: 222
Location: Samobor< >Zagreb

PostPosted: 14.04.2007 01:12    Post subject: Add user to your forum ignore list Reply with quote

bojim se da ces po kodu morat kopat Very Happy
Back to top
View user's profile Send private message
nameless



Joined: 17 Oct 2006
Posts: 15
Location: Osijek

PostPosted: 14.04.2007 01:34    Post subject: Add user to your forum ignore list Reply with quote

Evo kako ja to radim...

Code:

$mjesec = array (   "January" => "Siječnj",
      "February" => "Veljača",
      "March" => "Ožujak",
      "April" => "Travanj",
      "May" => "Svibanj",
      "June" => "Lipanj",
      "July" => "Srpanj",
      "August" => "Kolovoz",
      "September" => "Rujan",
      "October" => "Listopad",
      "November" => "Studeni",
      "December" => "Prosinac");
echo date("d") . "  " .  $mjesec[date("F")] . "  " .  date("Y");



e sad nadi funkciju koja vraca trenutni formatirani datum i promjeni da izgleda ovako.
Back to top
View user's profile Send private message Send e-mail
Tristan



Joined: 01 Aug 2006
Posts: 614
Location: Under the sky

PostPosted: 14.04.2007 08:43    Post subject: Add user to your forum ignore list Reply with quote

jesi probao sa preg_replace?

_________________
Carpe diem...
Back to top
View user's profile Send private message Visit poster's website
sonam



Joined: 06 Dec 2006
Posts: 92
Location: <?php between ?>

PostPosted: 14.04.2007 16:51    Post subject: Add user to your forum ignore list Reply with quote

A ja koristim switch.

Code:
$n = (date("n"));
$d = (date("d."));
$y = (date("Y."));
switch($n) {
      case "1": $m = " Sijećanj "; break;
      case "2": $m = " Veljača "; break;
      case "3": $m = " Oľujak "; break;
      case "4": $m = " Travanj "; break;
      case "5": $m = " Svibanj "; break;
      case "6": $m = " Lipanj "; break;
      case "7": $m = " Srpanj "; break;
      case "8": $m = " Kolovoz "; break;
      case "9": $m = " Rujan "; break;
      case "10": $m = " Listopad "; break;
      case "11": $m = " Studeni "; break;
      case "12": $m = " Prosinac "; break;
        default: "";
    }
$date = $d . $m . $y;
echo $date;


Sonam

_________________
Q: Should I stay, should I go?
A: Yes!
Back to top
View user's profile Send private message Visit poster's website
ivan.tk



Joined: 31 Dec 2004
Posts: 47

PostPosted: 15.04.2007 14:23    Post subject: Add user to your forum ignore list Reply with quote

jesi proba ovo sa cutenewsima i u koji file triban ubacit?
Back to top
View user's profile Send private message
Zeus



Joined: 09 Sep 2003
Posts: 775
Location: Čakovec

PostPosted: 15.04.2007 19:01    Post subject: Add user to your forum ignore list Reply with quote

Sonam, moram: piše se siječanj Smile
Back to top
View user's profile Send private message Twitter profile
mamica



Joined: 15 May 2006
Posts: 35

PostPosted: 15.04.2007 21:35    Post subject: Add user to your forum ignore list Reply with quote

Strogo gledano, datum u formi "15.04.2007" je ustvari skraceni oblik zapisivanja recenice "petnaesti dan mjeseca travnja dvije...sedme godine". Jezicno je ispravno, prema tome, pisati mjesece u genitivu "15. Travnja 2007." umjesto u nominativu "15. Travanj 2007."
Back to top
View user's profile Send private message
Belpunke



Joined: 02 Nov 2003
Posts: 21

PostPosted: 16.04.2007 00:57    Post subject: Add user to your forum ignore list Reply with quote

I travanj tj. travnja piše se malim slovom... Very Happy
Back to top
View user's profile Send private message
mamica



Joined: 15 May 2006
Posts: 35

PostPosted: 16.04.2007 10:23    Post subject: Add user to your forum ignore list Reply with quote

http://hr.wikipedia.org/wiki/Predlo%C5%BEak:Mjeseci_u_godini
Back to top
View user's profile Send private message
F4usT



Joined: 23 Sep 2004
Posts: 252
Location: Croatia / Čakovec

PostPosted: 17.04.2007 13:34    Post subject: Add user to your forum ignore list Reply with quote

(ASP) Imam aplikaciju na dva (tri) servera, jedan je njemački drugi engleski a kod mene je sve na hrvatskome, pa kad ispišem datum kod svakog mi drugačije piše pa koristim:
SetLocale("en-gb")
i uvijek je na engleskome...

_________________
sig.jpg
Back to top
View user's profile Send private message MSN Messenger
sonam



Joined: 06 Dec 2006
Posts: 92
Location: <?php between ?>

PostPosted: 17.04.2007 19:58    Post subject: Add user to your forum ignore list Reply with quote

Zeus wrote:
Sonam, moram: piše se siječanj Smile


siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj, siječanj,
Embarassed

travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj, travanj,
Shocked

Sonam

_________________
Q: Should I stay, should I go?
A: Yes!
Back to top
View user's profile Send private message Visit poster's website
Tristan



Joined: 01 Aug 2006
Posts: 614
Location: Under the sky

PostPosted: 17.04.2007 21:01    Post subject: Add user to your forum ignore list Reply with quote

Da, opet si fulao. Na kraju niza treba ići točka, ne zarez. Ajde ponovno! Wink

_________________
Carpe diem...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group