diff -au old/brilliant_gallery.module brilliant_gallery/brilliant_gallery.module
--- old/brilliant_gallery.module	2008-12-01 22:30:37.000000000 -0200
+++ brilliant_gallery/brilliant_gallery.module	2008-12-01 22:20:43.000000000 -0200
@@ -233,8 +233,11 @@
                 cleantmpdir();
               }
         # Patching a possible problem with i18n
-          $langcode = '';
-          if ( function_exists('i18n_get_lang') ) { $langcode = i18n_get_lang(); }
+        if ( function_exists('i18n_get_lang') ) { 
+              $langprefix = i18n_language_property(i18n_get_lang(), 'prefix');
+        } else {
+	      $langprefix = '';
+        }
         #$result = '</p>';
         $result = '';
         $galleryfolder = variable_get('brilliant_gallery_folder', '');
@@ -278,8 +281,8 @@
         $fullresolutionmaxwidth = variable_get('brilliant_gallery_maxwidth', '1000'); # Totally full resolution display would be impractical, so this is the maximum width of "full" resolution.
         $path = url(file_directory_path() . '/' . $galleryfolder, $options = array(NULL, NULL, TRUE));
         # url() ads i18n codes to the URL ... we need to remove them here...
-          if ( $langcode <> '' ) {
-               $path = str_replace( '/' . $langcode . '/', '/', $path );
+          if ( $langprefix <> '' ) {
+               $path = str_replace( '/' . $langprefix . '/', '/', $path );
              }
         # Non-clean URLs need removing ?q=
           $path = str_replace( "?q=", "",  $path );
@@ -381,8 +384,8 @@
                            $modulepath = url(drupal_get_path('module', 'brilliant_gallery'), $options = array(NULL, NULL, TRUE));
                            #echo '<p>'.$absolpath . ' ... ' . $result; 
                            # url() ads i18n codes to the URL ... we need to remove them here...
-                             if ( $langcode <> '' ) {
-                                  $modulepath = str_replace( '/' . $langcode . '/', '/', $modulepath );
+                             if ( $langprefix <> '' ) {
+                                  $modulepath = str_replace( '/' . $langprefix . '/', '/', $modulepath );
                                 }
                            # Non-clean URLs need removing ?q=
                              $modulepath = str_replace( "?q=", "",  $modulepath );
@@ -424,8 +427,8 @@
 /*
                          $modulepath = url(drupal_get_path('module', 'brilliant_gallery'), NULL, NULL, TRUE);
                          # url() ads i18n codes to the URL ... we need to remove them here...
-                           if ( $langcode <> '' ) {
-                                $modulepath = str_replace( '/' . $langcode . '/', '/', $modulepath );
+                           if ( $langprefix <> '' ) {
+                                $modulepath = str_replace( '/' . $langprefix . '/', '/', $modulepath );
                               }
                          # Non-clean URLs need removing ?q=
                            $modulepath = str_replace( "?q=", "",  $modulepath );
