Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Gábor HojtsyIs that string actually displayed on the page you are on when searching?
Comment #2
portulacaYes, 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.
Comment #3
nirbhasa CreditAttribution: nirbhasa commentedI 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
Comment #4
dodorama CreditAttribution: dodorama commentedI'm having the same issue. Strings inside template.php functions don't show up.
Comment #5
Gábor HojtsyBut they are displayed on the page you are viewing of the site?
Comment #6
dodorama CreditAttribution: dodorama commentedYes, they are displayed and can correctly found on /admin/build/translate/search
Comment #7
Gábor Hojtsy@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?
Comment #8
dodorama CreditAttribution: dodorama commentedI 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 .
Comment #9
portulacaHappened 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.
Comment #10
Gábor Hojtsy@potrulaca: is that a user customizable string (there is a settings page to modify it?)?
Comment #11
portulacaThis is the part from signup.module that wouldn't appear
So this text that appears in the drupal message isn't user customizable, but it informs user about sending emails (which are customizable).
Comment #12
Gábor HojtsyWell, 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.
Comment #13
Honza Pobořil CreditAttribution: Honza Pobořil commentedSame 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.
Comment #14
Gábor Hojtsy@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.
Comment #15
Gábor HojtsyDrupal 6 is not supported. The same problem was not reported for Drupal 7.