Download & Extend

dsm() translated in previous request will not be editable

Project:Localization client
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

I'm trying to translate some modules but when I search for the string in question (en) nothing is found. I checked in the module's name.module file and saw the strings are in t() function.

Am I missing something?

Comments

#1

Status:active» postponed (maintainer needs more info)

Is that string actually displayed on the page you are on when searching?

#2

Yes, that's why it was weird. I was looking at the word and typing it in, in correct case or any case, and still the search was empty.

In the meantime I imported a .po file of one module I translated using Gtranslator, and now those strings I couldn't find before are there (they aren't from the module I translated using Gtranslator.) I don't know if this had anything to do with it, just thought it was worth mentioning.

I'll report if I encounter more cases.

#3

I can verify this - In my case I am missing block titles, and also text strings inside template.php functions which I had wrapped in t(). All of these can be found using search function at /admin/build/translate/search

#4

I'm having the same issue. Strings inside template.php functions don't show up.

#5

But they are displayed on the page you are viewing of the site?

#6

Yes, they are displayed and can correctly found on /admin/build/translate/search

#7

@dodazzi: can you put up a screenshot of the string being displayed AND the l10n_client showing on the same page not displaying the string?

#8

I tried to replicate the problem, but it works now.
So I'm sorry I think there should have been a problem with the cache.
I now correctly see strings on template.php .

#9

Happened again. Using the module Signup I get a notification message after I apply for an event. The text is in t() within the module, but it doesn't appear in l10n client, even when I can see it on the screen and having l10n opened while I'm applying.

#10

@potrulaca: is that a user customizable string (there is a settings page to modify it?)?

#11

This is the part from signup.module that wouldn't appear

<?php
   
// Figure out if confirmation or reminder emails will be sent and
    // inform the user.
   
$confirmation_email = $node->signup_send_confirmation ? '  '. t('A confirmation email will be sent shortly containing further information about this %node_type.', array('%node_type' => node_get_types('name', $node->type))) : '';
   
$reminder_email = $node->signup_send_reminder ? '  '. t('A reminder email will be sent !number !days before the %node_type.', array('!number' => $node->signup_reminder_days_before, '!days' => format_plural($node->signup_reminder_days_before, 'day', 'days'), '%node_type' => node_get_types('name', $node->type))) : '';
?>

So this text that appears in the drupal message isn't user customizable, but it informs user about sending emails (which are customizable).

#12

Well, this looks like it might not be customizable, but could still be in a function which is invoked when you did not have these texts customized. Hm.

#13

Same issue. My string was showed by drupal_set_message() function, so t() had been called in previous http request, which was redirected to new page.

#14

Title:Not all strings appear» dsm() translated in previous request will not be editable

@Bobík: that can easily be it. Sometimes Drupal shows strings from previous pages on the page (especially for messages). Not sure how to solve that though... Retitling for the symptom.