Hello!
I've successfully completed a script that will help me update my website, but it does have one flaw! In the document I will need the current
month, hence I use the $asctime(mmmm) function. This works great! It's just that my website is in Swedish, not English. This is why I tried to create a custom identifier that would return the current month in Swedish, based on the $asctime(mmmm) function. Here's my code:
manad {
if ( $asctime(mmmm) == January ) return januari
else if ( $asctime(mmmm) == February ) return februari
else if ( $asctime(mmmm) == March ) return mars
else if ( $asctime(mmmm) == April ) return april
else if ( $asctime(mmmm) == May ) return maj
else if ( $asctime(mmmm) == June ) return juni
else if ( $asctime(mmmm) == July ) return juli
else if ( $asctime(mmmm) == August ) return augusti
else if ( $asctime(mmmm) == September ) return september
else if ( $asctime(mmmm) == October ) return oktober
else if ( $asctime(mmmm) == November ) return november
else if ( $asctime(mmmm) == December ) return december
}
However, this doesn't seem to work! Whenever I try to do //echo -a $manad I get "* /echo: insufficient parameters", and I can't refer to it in scripts either.
I'll gladly take any comments/help on this! (Yes, I did leave the {}-brackets on purpose, since it would mess up the code completely imo.
)
Regards,
Wishie