This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Content localization in Drupal : localizer module

I've developed a new module for Drupal for content localization : localizer.

This module offers the following features :
- translates the user's menus
- provides a language switch block
- translates the node's content

This module has been inspired from internationalization module (i18n).
It uses very large portions of code fron i18n module.
Differently from i18n module, localizer doesn't change the url path adding the locale prefix and in this
manner it prevents some problems that this tecnique can generate (for example non activation of the
current link in the menu or in the primay or secondary links groups).
Localizer doesn't need that every node has an url alias.
If you want, it is sufficient that you assign an url alias only to one of the nodes of the translation.
Then the module will display the correct translated node without changing the displayed url.
Localizer doesn't need any patch to the Drupal core.

Localizer offers a block to language switch, but you can
change the language from every link simply adding the
parameter locale to the url, like : locale=en

Two Drupal function have been reimplemented for internal use only :
localizer_locale and localizer_t (corresponding to functions locale and t).
The two new functions make almost the same work, except that they accept a new
parameter : locale. So it is possible to get a translation for a particolar locale through the localizer_t function.

blogapi data examples? Please?

I'm trying to use metaweblog's api to programmatically post data to blogapi.module. When i try calling the function blogger.getUserInfo('1','username','password') i am getting and XMLRPC fault returned. When i look at the api and then at the code i see some discrepancies . I'm using version 1.82 in drupal 4.7.3. Is this api functional? The blogid hack, does it still apply? are there any examples for developers anywhere? Can i get an example from someone as to what i should be posting?

for example the drupal function:

Pager weirdness since upgrade to 4.7

I've decided to try to upgrade the trip_search module (or at least parts of it) to 4.7, for various reasons (notably the fact that I want much more control over the user interface than I get with the standard search). It's turning out much more difficult than I thought :-(

Notably, I'm currently stuck on using "pager", which trip_search calls without using pager_query. I think I've worked out how to initialise the various variables needed by pager (actually I just copied this from Robert Douglass) and the code to get the paged string seems very simple, it is:

      if ($pager = theme('pager', array(), $max, 0, )) {
        $str .= $pager; // $str contains all the search results on the page, plus the pager links
      }

However, for a reason which is completely mysterious to me, when I get the (correct) list back, with the correct number of page number links at the bottom, the links all point to the same place which is:

http://localhost/drupal-4.7.2/trip_search?page=1&edit[keys]=lorem+ipsum&edit[content_type]=&edit[form_id]=trip_search_form

Why does it look like this and not like this:

http://localhost/drupal-4.7.2/trip_search?page=1&keys=lorem+ipsum

which is what I would expect? And what do I need to do to get this to come out right?

I'm especially confused because this app

Multiple banner in Banner Module

The Banner module only allow one banner to show each moment randomly.
I need the module to show all my banners at the same time, the hole time (without randomness).

As you can see at my site Whiplashinfo.se I have all ads (banners) at right position in the window.

Is this possible to modify or..?

Tomas

flatforum for slurpee

Does Flatforum work for template slurpee on 4.7? I cant seem to get it working but it seems to work ok with the bluemarine template. I do however want to use slurpee.

The problem is forum topics appear like articles with one main chunk with comment at the end and then just comments appearing underneath. They dont appear anything like forums, there is no reply, edit or delete options, and the comments appear in a flat list.

Thanks

Wes

Tags?

Hello there! I apologize if this post is overly newbie-like. I'm no drupal maintainer, just a user from a drupal site working on improving itself; I was wondering if there are any modules that allow for "tagging" files?

I say tags, but they are more like keywords that are added and compiled together as more are made. A great example is the tagging system of YouTube or Google Videos, but also Last.FM and many other sites.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions