returns the language of the currently logged on user, but returns nothing when the user is 'anonymous'.
I'm trying to find some straightforward, simple way of determining what the default site language is (ie the language for 'anonymous'), whether or not the localisation module is switched on. For example, I rather hoped there might be a "$site-language" but there isn't.
This seemed the best forum to ask this. Basically I want to add content to our site but I don't want the tracker to pick up the pages as new/changed. We use the tracker to provide a way for users to quickly see what's received comments and been posted that isn't obvious on the front page.
However, this means that whenever I adjust any content, that page appears in the list. Really I want the facility to bring some pages out of the tracker's clutches, or 'spoof' them with incredibly ancient edit times so they go to the bottom of the list.
I'm trying to create a very simple type, just to see how things work. I looked at the node_example in the documentation and (almost) understand everything what is going on. I have just a simple question:
node_example stores it's data in a new table (color & quantity). Is it really needed to create a new table to store only one additional field (next to body etc)? Not that it is a big problem to do so, but I'm wondering if it is not a bit of overhead if you only want to store one small text-string. Is there no other table this can be stored in? Eg in {node} table itself?
I try to build a multilanguage site with drupal and i18n module. All nodes seem ok but the translation function on the categories doesn't work. So, I cann't translate the menu for each language.
Has anybody have the same problem? Could anybody help me to resolve this problem?