Not working: text_captcha/text_captcha.module:176

labourstart - March 24, 2009 - 10:11
Project:CAPTCHA
Version:6.x-2.0
Component:Translation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

On the German version of our Drupal site, the module works fine and shows some text as German, but has this:

CAPTCHA
Diese Frage testet, ob Sie eine reale Person sind, um Spam-Beiträge zu vermeiden.
What is the zweite word in the phrase "ugebes oce ohimog onamohu vobe"?:

I've checked and the file de.po should have fixed this - see here:

#: text_captcha/text_captcha.module:176
msgid "What is the @nth word in the captcha phrase \"@words\"?"
msgstr "Was is das @nth Wort in der CAPTCHA-Wortgruppe \"@words\"?"

Why is this not working?

Thanks very much!

#1

soxofaan - March 24, 2009 - 10:21
Component:Text Captcha (text_captcha)» Translation
Category:bug report» task

the de.po file still contains the old string
msgid "What is the @nth word in the captcha phrase \"@words\"?"
which is not used anymore, it should be
msgid "What is the @nth word in the phrase \"@words\"?"

You can edit the de.po file yourself, and re-import it in your drupal setup yourself,
or you can translate the new (untranslated) version of that string directly through the Drupal translation interface.

#2

labourstart - March 30, 2009 - 11:09

This is STILL not working. Here are the lines in de.po:

#: text_captcha/text_captcha.module:176
msgid "What is the @nth word in the phrase \"@words\"?:"
msgstr "Was ist das @nth Wort in der Wortgruppe \"@words\"?"

We've tried with and without the colon in the English.

Also, I don't understand what the '176' refers to.

#3

soxofaan - March 30, 2009 - 11:18
Category:task» support request

It is not enough to edit the po file, you also have to re-import it by hand (see #1).
When you enabled the module, drupal imported the po file automatically, but if you edit the file for some reason, you have to import it yourself.
Note that the translations are actually stored in the database, the po files are just intermediate files meant for importing.

The 176 is the line number in the source code (text_captcha/text_captcha.module in this case) where the string appeared at the moment of the string extracting, but that's probably not the actual line number anymore. Anyway, that line number is only an indication for human translators, it is not used so it won't be the source of your problem.

#4

anfrage - December 11, 2009 - 16:31
Version:6.x-1.0-rc2» 6.x-2.0
Category:support request» bug report

I've had the same problem within 1.0-rc2. Now I've updated to 2.0 but the problem still exists. Without having a de.po in which these strings are defined any longer.

How can we solve this problem of having the instruction for the user output as a mix of the languages english and german?

#5

soxofaan - December 11, 2009 - 17:50
Category:bug report» support request
Status:active» postponed (maintainer needs more info)

Please provide more info and be more specific. You mention that you have the same problem with CAPTCHA 6.x-2.0, but text_captcha was dropped from the CAPTCHA 6.x-2.x branch. That at least explains why these strings are not defined in de.po anymore.

#6

anfrage - December 14, 2009 - 09:31
Status:postponed (maintainer needs more info)» active

Actual Situation:

admin/reports/updates/list says:
CAPTCHA 6.x-2.0
Includes: CAPTCHA, Image CAPTCHA, Text CAPTCHA

Before updating captcha from 1.0 rc2 to 2.0 I read in node/586144 about text captcha which made me think that it would'nt be there any longer after having installed version 2.0. But it still exists. So I use it.

My Installation process was like this:
- Before the installation I changed all entries "Text (text_captcha)" in admin/user/captcha/ into "Image (image_captcha)".
- after the installation update.php shows this message:
The following queries were executed
captcha module
Update #6200
CREATE TABLE {captcha_sessions} ( `csid` INT NOT NULL auto_increment, `uid` INT NOT NULL DEFAULT 0, `sid` VARCHAR(64) NOT NULL DEFAULT '', `ip_address` VARCHAR(128) DEFAULT NULL, `timestamp` INT NOT NULL DEFAULT 0, `form_id` VARCHAR(128) NOT NULL, `solution` VARCHAR(128) NOT NULL DEFAULT '', `status` INT NOT NULL DEFAULT 0, `attempts` INT NOT NULL DEFAULT 0, PRIMARY KEY (csid), INDEX csid_ip (csid, ip_address) ) /*!40100 DEFAULT CHARACTER SET UTF8 */
image_captcha module
Update #6201
No queries

What shall I do now to keep text captcha in a correct way concerning the languages? Do I have to uninstall text captcha (where and how?) and to install http://drupal.org/project/captcha_pack?

Thanks!

#7

soxofaan - December 14, 2009 - 16:16

If you install a fresh tar ball of CAPTCHA 6.x-2.0 (or 6.x-2.x-dev), you'll see that there is no text_captcha.

I guess you overwrote your old folder of CAPTCHA 6.x-1.x with the new data from CAPTCHA 2.x-2.0, instead of removing the old one and replacing it with the new. The overwriting did not remove the old text CAPTCHA probably (I think this is the default behavior on Windows and Linux).
So what you have is the CAPTCHA module and imaga CAPTCHA module from the 6.x-2.x branch with an old text CAPTCHA from the 6.x-1.x branch.

your report of the update process shows that the update was successful, so no problems there.

What you should do is uninstall the text captcha: admin > modules > list tab (the default tab on that page), disable the text captcha module, then go to the 'uninstall' tab en uninstall the text captcha, remove the text_captcha folder from the captcha module folder.
If you want a text CAPTCHA, use the CAPTCHA pack module indeed.
Problem however is that this module is less translated probably.

#8

anfrage - December 15, 2009 - 20:15

Thank you very much! You're right - that was the action I didn't fulfill!

To delete the wrong text-captcha I went your way:

uninstall the text captcha: admin > modules > list tab (the default tab on that page), disable the text captcha module, then go to the 'uninstall' tab en uninstall the text captcha, remove the text_captcha folder from the captcha module folder.

Than I unpacked captcha-6.x-2.0.tar.gz once again, than did update.php and than choose image-captcha instead of text-chapta.

As a result there was still a mismatch of german and english concerning this sentence:
Enter the characters (without spaces) shown in the image.
that wasn't translated although it is included in sites/all/modules/captcha/translations/de.po.

I solved it using admin/build/translate/search.

By the way:

Having done the above the following huge problems are solved that occured within my web page (and I didn't had any idea where to search for a solution...):
- in Garland Theme tabbed links like "View"/"Edit"/"List"/... that are active were given "white font above white background"
- all links had had some space behind them although the html-code was absolutely correct without any blanc

#9

soxofaan - December 15, 2009 - 22:21
Status:active» fixed

ok then,
this thread can be considered fixed then?

#10

System Message - December 29, 2009 - 22:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.