Long strings are not translated
| Project: | Dutch translation |
| Version: | 5.x-1.x-dev |
| Component: | PO files |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active (needs more info) |
Jump to:
In the Dutch translation all t(..)-texts in function user_help($section) are translated. But if someone goes, before the login to the login-helptext put on screen in the link by the text: "t('Enter your @s username, or an ID from one of our affiliates: !a.', array('@s' => variable_get('site_name', 'Drupal'), '!a' => implode(', ', user_auth_help_links())));" this text is only visible in English (produced by the "case 'user/help#user'" in user_help($section) in the user.module.
I presume the enormeous lenght of the string causes a not-found error in MySQL.
I found this behaviour at more places in Drupal. I don't know the problem is in MySQL, but if so, maybe a solution is to test whether the string is longer then xxxx: if so, then just cutoff the string and place a '*', or whatever special character is reserved for 'any string', after the truncated text.
my info:
MySQL: 5.0.22
PHP: 5.1.6
PHP Unicode library: PHP Mbstring Extension
Webserver: Apache/2.2.3 (CentOS)

#1
I'm unable to understand exactly which text is not being translated. Could you clarify?
#2
All strings that are in English so long that somehow they are not translated into another language. I presume the length exeeds the maximum length MySQL uses to compare with. I don't know much about MySQL, so I don't know whether I am right.
The text I pointed to can be found at URL: www.example.com/user/help#drupal. This is a page-long text.
I presume the core "Drupal"-module must be enabled to open the url.
Otherwise search in the user.module for the following text:
$output = t('
Distributed authentication
One of the more tedious moments in visiting a new website is filling out the registration form. Here at @site, you do not have to fill out a registration form if you are already a member of !affiliate-info. This capability is called distributed authentication, and Drupal, the software which powers @site, fully supports it.
After this text follows another paragraph and a foreach listing text from several modules.
I hope this clarification is helpfull.
#3
Our websites does not show that bug (for the French translation), on a similar setup.
I'm reassigning that to the German translation project. May be there are some untranslated (or slightly changed) strings. Feel free to reassign it to Drupal if the problem does not lie in the translation.
#4
Please reassign it to the Dutch translation team, because I have problems with the Dutch translation.
Thanks
#5
Sorry, reassigned correctly.