hi I've been testing this module for my new site, it's really what I've been looking for, but I've found one quite annoying problem with it. If I switch the language of my site to other then English (I have an English-Czech site), then all the node actions are ignored. For example:
users "pay" for posting a node 10 points. If the language of the GUI is English, these points will be deducted from their total. If they switch to Czech, they can post a node and no points will be deducted from their account. Any idea what should I do? Thanks a lot.

Comments

BillyMG’s picture

Assigned: Unassigned » BillyMG

I've not the slightest how the different language things works in Drupal. If you can explain to me all the steps you took to switch the language, I can attempt to replicate and then figure out what's going on. I'll need your help before I'm able to try making changes, so please post back here or contact me back. Thanks.

chumoka’s picture

Thanks a lot for the quick reply.
In the /admin/settings/language section you can add different languages (the Locale module should be enabled in the module list); once you have more then 1 languages, you will be able to set which language is the default. Then of course there is a lot other of options you can do, modules you can enable, etc. but for now it's not important.
When I'm using the English version of the system (Default is set English), the module works exactly as it's supposed to work. But as soon as I change the default language to Czech, it seems like if this module wouldn't exist any more. A bit strange :-(
I've also tried to upgrade to version 6.x-1.2 but it's the same.
Thanks again for your quick help.

BillyMG’s picture

Okay, thank you very much for the info. No promises on when I'll get the ability to look into this, but I'll try to make sure it gets done "soon".

chumoka’s picture

Sounds good, thank you Billy.

BillyMG’s picture

Initial reports, chumoka, are that I am unable to reproduce this issue. I have a fresh install of Drupal 6, with only a few modules installed (Nice Menus, Userpoints, Userpoints Node Action). I enabled the Locale module as you suggested, and then changed the language to Czech (I also tried others). When setting this language as the default, and even removing the English option, the module did not stop working at any point. I may be missing some steps to reproduce accurately, so let me know if you come up with any info. Otherwise, there may be some other module conflict that's causing this issue, and I'm really not sure how to approach it if I can't see the error itself. Are there any other details you can give me?

chumoka’s picture

Hi BillyMG, thanks for your help. I think I have figured out where the problem comes from - altough I don't know what's wrong exactly, I'll try to explain you how to reproduce it.

Before you go and add the Czech language in the admin/settings/language/add section, download the Czech translation files from this site, copy the files to your folder structure, then add the language.
It will automatically load all the translations from the ..root/modules/$module_name/translations directories. Now if you switch the default language to Czech, the node action module stops working (at least for me).

BUT!

If you do the same, except for one translation file: root/modules/system/translations/general.cs.po, then it would work. So if you copy the translation to the directories as explained above, but delete this one file before you add the language in the settings section, then the problem would not happen.

Now, obviously it's more probable that the problem is in this .po file, but if you think it could be with something different, I think you should definitely focus on this section.

BillyMG’s picture

Status: Active » Needs review

Nice job on the research, I've found the error and committed what should be a fix to the new 6.x1-.3 version. This should make the module work again, but there's no real working translation. I had to change some stuff around, so the sentences wouldn't be half translated, but at least it's in one language and working again. Please try the new release and let me know if it works.

BillyMG’s picture

Version: 6.x-1.0 » 6.x-1.3
Category: task » bug
BillyMG’s picture

Status: Needs review » Fixed

Marking this as fixed. Re-open if the issue still exists.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.