On page "/admin/build/translate/search" when I selecting items "Search by Page Paths" or "Search by Page" the search doesn't return strings for translating.

Comments

jhodgdon’s picture

I will look into this... But in the meantime, can you confirm that you have set up a search environment and saved the settings for it? You won't get any translation strings until you have set up your search environment. Also (I don't have my test box running at the moment so I am working from memory here), I think there is some sort of a "reset" button on the translation page that will ask it to do a clean search instead of relying on its cache, so you might need to try that.

jhodgdon’s picture

Category: bug » support
Status: Active » Fixed

After you have made sure to save your environment, try the Refresh tab on the Translate Interface page:
admin/build/translate/refresh

This should fix your problem. If not, please feel free to ask another question and/or reopen this issue.

paymentadmin’s picture

Thanks for you answer. Of course, I set up my search environment, and I succesfully using your module for searching pages.

And there's a text in "Edit path" page:

"Enter the title, type, and snippet above in your site's default language. If you have a multi-lingual site with the Internationalization project's String Translation module installed and enabled, you can use Drupal's translation interface to translate them."

I supposed to get needed strings in String Translation, but I haven't.

There is a "Refresh" button in "admin/build/translate/refresh", but it didn't help me.

paymentadmin’s picture

I find where was a problem. I set up permission for indexing to unregistered user. Now problem fixed.

jhodgdon’s picture

Glad it is working for you now... I am not sure why that permission would change anything in the translation interface, but you never know.

Status: Fixed » Closed (fixed)

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

kemo1’s picture

I try to translate search by page form strings (title, label, button), no problem with the title, but i haven't label and button strings in String Translation.
I tryed with an empty drupal and only Search by Page and i18n modules, i have the same problem.

jhodgdon’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Did you try the steps suggested above in comment #2?

Also, which versions of Search by Page, Internationalization, and Drupal are you using, and what steps did you follow that led you to think you have a problem?

I apologize in advance that I am on a bicycling vacation right now, so I am not on the Internet much... I can't really help you try to resolve this problem for the next 10 days or so, so you will probably need to try some things on your own first.

kemo1’s picture

Thanks for you answer.
I tried many modules versions :
- Search by Page 6.x-1.10, 6.x-1.11 and 6.x-1.12,
- Internationalization 6.x-1.4 and 6.x-1.7
- Drupal 6.17 and 6.19

I also tried the "refresh" button, but only the page title appears in the translatable strings list

jhodgdon’s picture

Status: Postponed (maintainer needs more info) » Fixed

Are you still having this problem? Hopefully you have resolved it by now. If not, please set the status back to "Active" and let me know what you have tried. One other piece of information that would be handy to know is what Internationalization sub-modules you have enabled, and whether you can translate things from other contributed modules or if it is just Search by Page that is the problem for you.

Status: Fixed » Closed (fixed)

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

sapox’s picture

Version: 6.x-1.10 » 6.x-1.14
Status: Closed (fixed) » Active
StatusFileSize
new4.55 KB
new12.81 KB

Hi, this problem still exists.
The search by page form shows only the title translated, but not the button nor the label next to the input text.
I'm using the version 6.x-1.14 with submodules node and path enabled.

Also using i18n-6.x-1.9 with
String translation
Block translation
Content type translation
Menu translation

I tried the solution suggested in #2, Clearing the cache, etc.

The strange thing is, for example, the 'Search for' string is translated in i18n but the form simply doesn't show it.

Any idea how to solve this?

jhodgdon’s picture

I'll check into it. Perhaps the i18n module has changed how it does things.

sapox’s picture

Any news?

jhodgdon’s picture

Sorry, I've been really busy, and I'm at DrupalCon this week, and on vacation next week... don't expect quick action... If someone else has time to look into it, that would probably speed progress.

jhodgdon’s picture

I am finally returning to this issue.

It appears that the Internationalization module has changed how it is doing things, and I have confirmed what you are seeing. Actually, it is even worse on my test site. I set up a test SBP environment with some kind of stupid values for the labels (see screen shot). Then I went to the Translate Interface page, and it couldn't find any of the strings I had entered, even after a refresh, so I didn't even have the chance to translate them.

So I will need to redo how SBP is telling Internationalization about its strings, because it has changed since the module was written. Sorry about that! I have a long plane ride ahead of me tomorrow and hopefully I will be able to fix the problem then.

jhodgdon’s picture

StatusFileSize
new20.07 KB

Forgot the attachment

jhodgdon’s picture

Yes, the i18n module has changed how it does things. I have some work to do in both Drupal 6 and Drupal 7 to be compatible with the current version. Sigh.

jhodgdon’s picture

Title: Problems with translation strings » Update Search by Page for current version of Internationalization Strings
Category: support » task

Updating to reflect that this is a task and not a support request. I'm working on it -- I think I have 6.x done but I'm also writing a test. Then I'll tackle 7.x. Should have something soon...

jhodgdon’s picture

Version: 6.x-1.14 » 7.x-1.x-dev
Status: Active » Patch (to be ported)

The changes for version 6.x have been committed to the 6.x development version (to download from zip, wait up to 12 hours for the zip to update). I'm working on 7.x now and will report back.

jhodgdon’s picture

Status: Patch (to be ported) » Fixed

This update has now been added to the 7.x branch as well. Wait 12 hours or so to download from the project page as a zip/tar.gz... I should be releasing a new version of both 6.x and 7.x soon too, as there have been quite a few bug fixes.

sapox’s picture

Excelent!
I'll test it in the next days.

sapox’s picture

It is working properly in 6.x-1.x-dev, although you must apply a refresh string in the i18n for the group Search by Page. (admin/build/translate/refresh). Otherwise didn't work.

Thx.

jhodgdon’s picture

Thanks for testing! I am pretty sure Drupal 7 will work too (since I put in automated tests for both d6 and d7), but if someone could confirm, that would be helpful.

Status: Fixed » Closed (fixed)

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