Hello Roberto, congratulations for your great effort in the Localizer module development!
I installed Drupal 4.7.4 for the first time some weeks ago. I tried to learn quickly trying lots of contributed modules. As localization is one of my main concerns, I installed Localizer 2.1 (I rececenly updated to 2.3).
I think that Localizer is much more powerful than the i18n module in management capabilities. I successfuly translated menus, static pages and taxonomy queries like http://localhost/drupal4/?q=taxonomy/term/11. My problem is that I can not get the terms in the vocabularies translated; they are always shown in English. I suppose they are meant to show translated in the teaser view, the body details view and the create new content page, aren't they?
I applied the patches taxonomy.patch and menu.patch. I checked that all these modules are active: locale, localizer, localizermenu, localizernode, localizertaxonomy, taxonomy. I uninstalled and physically removed the following modules which caused problems: i18n, taxonomybrowser, taxonomymenu. Furthermore, when I query the table localizertranslation I can see the term translations and the value in the object_key field seems correct. What else can I check?
Some help would be appreciated. Best regards.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | taxonomy.module_2.txt | 52.16 KB | davidjava |
Comments
Comment #1
Roberto Gerola commented> I suppose they are meant to show translated in the teaser view, the body details view and the create new content page, aren't they?
Exact. Perhaps my patch is not updated with the last changes (because it works in my development environment) . I check it.
Thanks.
Comment #2
davidjava commentedThanks for your immediate response. I am attaching my taxonomy.module file. I recovered the original file before applying the latest patch in Localizer 2.3. As I told you before, I also tried the patch provided in Localizer 2.1 (always taking precaution of recovering the original file) with identical results.
My installation uses PHP 4.4.4, in case it is relevant. I read a previous issue regarding PHP 4 but I think it is solved now. Please tell me how can I help in the resolution.
Best regards.
Comment #3
Roberto Gerola commentedYour taxonomy module is ok.
Can you make some debug ?
Go in localizer module, the last implemented function
is tobject, responsible for object translations.
Can you put a simply instruction like :
echo 'tobject is called';
to see if the method is reached ?
If this is ok, before the instruction : return $object, insert this code :
echo '
';
So we can verify if the translation engine is working correctly.
Comment #4
Roberto Gerola commentedSorry, the filter ate my code :
';
Comment #5
davidjava commentedI placed the instruction in the tobject function and nothing different happened, so I suppose it is not being called. I will try to guess what is happenning, maybe it was my fault. I will be back in some minutes after some more testing. Thanks.
Comment #6
davidjava commentedI am very sorry to say that I can confirm that it was my fault (my lack of experience with Drupal). I completely deactivated every localizer* module and activated again. After that, everything is working fine!
Please remove this issue and accept my apologies. Best regards.
Comment #7
Roberto Gerola commentedNo bug.