Page 1 of 1

Question: Change Language of Admin page

Posted: Mon Dec 26, 2005 12:03 am
by SentryRaven
Hello!

After installation of CMSmadesimple, I have had German language as admin page language... Can I change it to english somehow and if yes.... how?


Thanks you in advance, Sentry

Re: Question: Change Language of Admin page

Posted: Mon Dec 26, 2005 12:22 am
by westis
Hi Sentry,

If you automatically had German as the admin language you're probably hosting your site on a German server, right? You can change language in Meine Einstellungen -> User-Einstellungen.

Re: Question: Change Language of Admin page

Posted: Mon Dec 26, 2005 1:22 am
by Sentry
:)

thank you very  much... sometimes I really doubt about my intelligence...

Re: Question: Change Language of Admin page

Posted: Mon Dec 26, 2005 1:33 am
by Sentry
But another question I do have....


Can I create user-defined tags, which take a parameter and use it?

like
{char_logo 1442394875}

where char_logo is the tag and 144....75 the parameter I am giving to it?

And If I can make such thing... how can I get the paramater in the tag code?

Sentry

(Seems I need to register finally.. :P )

Re: Question: Change Language of Admin page

Posted: Mon Dec 26, 2005 1:52 am
by Ted
Parameters in user defined tags are key/value pairs.  So, you would need to do:

Code: Select all

{char_logo bignumber=14423994875}
Then to get at it in the user defined tag's code, just use the magic params variable that exists.

Code: Select all

$somevar = $params['bignumber'];

Re: Question: Change Language of Admin page

Posted: Mon Dec 26, 2005 2:44 am
by SentryRaven
I am sorry if my questions are getting on your nerves, but I am trying to understand some principles of php....

If I want to do something like:

Code: Select all

{sale id=16227 price=27.000.000 location=Maspah V - Caldari Navy Assembly Plant}
Do I

a) need to put Maspah V - Cal.... into ' ... ' ?
b) Can I readout every parameter by its keyword? like:

Code: Select all

$itemID = $params['id'];
$itemPrice = $params['price'];
etc...
Sentry




Already found out..... thx

Re: Question: Change Language of Admin page

Posted: Tue Dec 27, 2005 6:03 pm
by Ted
Well, just in case anyone else is wondering.

a. You should put as many parameters in '' or "" as you can.  It's easier to read, if anything.  And it also removes guesswork.
b. Yup