drupal

Internationalization (i18n) functions

1.

echo _i18n_get_original_path();

Gets the path of the current page. For this one it is: en/internationalization-i18n-functions

2.

echo i18n_get_normal_path(_i18n_get_original_path());

This function outputs the most basic path, meaning: node/, user/. For this page it is: node/9.

i18n_get_normal_path takes a path alias as an argument.

3.

echo i18n_path( i18n_get_normal_path(_i18n_get_original_path()),'de')

Code Coloring (Highlighting) for Drupal Modules

Two days ago I started doing some programming on Drupal. Although it went good, I soon realized how confusing and hard it is to work without code coloring, which is missing for .module extentions. So, what do you think I did? Yes, I made my way to my favorite search engine -- Google -- and found a page at drupal.org about the subject. It basically said that there are two ways for me to go:

a) installing an extension that will do the coloring plus will suggest function names and stuff. Cool... I didn't even check the other option because I was sure that one was the best.

Drupal Error 1

I had this error at my site (5.10 Drupal)  today: