I tried this mod today, and it is not working. All files copied into module directory (under stringoverides) and is visible in the module window. locale is not turned on. module activated. strings inserted. put in several string including:

  • authenticated user --> member
  • anonymous user --> guest
  • Story --> bStory(just another test)
  • following provides quick --> fpq (straight from the string overrides admin page)
  • Weightloss --> Weight loss
  • weightloss --> weight loss

None of these are being replaced.

here is my site (http://dav3.net), the weightloss word in the page is still 1 word on the page...

Any ideas?

Comments

Leeteq’s picture

Can anyone else confirm if this is working or a actually (critical) bug?

quicksketch’s picture

These strings are not being replaced because they're all user-defined content. Try replacing a string that is defined by a module. String overrides has the same functionality as locale module, which can only translate strings that are wrapped in the t() function.

All the examples you've tried are string that you have access to through the user interface already, so it wouldn't make much sense to change them twice. Try some of these that affect the node edit form for example:

The %post has been updated.
Your %post has been created.
Are you sure you want to delete %title?

To find the strings you can actually change, open up a module and look for t() function calls. Places where %, @, or ! are used means that the translation contains dynamic information (such as the node type or title in the above examples), these are not translated while the text around them are.

Leeteq’s picture

So perhaps the documentation needs to be more specific?
Example: This module is complementing rather than replacing the locale module?

(PS. I havent bothered trying this module yet, chose to wait partly because of this "bug report". So I am curious to know if someone may confirm if this is not a buggy module... Perhaps this issue should be filed as a support request and not a bug?)

robloach’s picture

Title: not happening » Better documentation
Version: 5.x-1.3 » 6.x-1.x-dev
Component: Code » Documentation
Category: bug » feature
Status: Active » Postponed (maintainer needs more info)

Maybe it would be helpful if better documentation was in the hook_help function. Maybe something like what quicksketch provided:

The String Overrides module provides a quick and easy way of replacing text.

To replace a string, enter what you find when the string is passed through the t() function. String Overrides cannot translate user-defined content, it can only replace strings wrapped in the t() function.

To find the strings you can actually change, open up a module and look for t() function calls. Places where %, @, or ! are used means that the translation contains dynamic information (such as the node type or title in the above examples), these are not translated while the text around them are. For example:

  • The %post has been updated.
  • Your %post has been created.
  • Are you sure you want to delete %title?

If anyone is a better writer then me, please post a few notes! This will have to go into 6.x-1.x-dev, and then be ported to the Drupal 5 branch.

robloach’s picture

Status: Postponed (maintainer needs more info) » Fixed
robloach’s picture

If it's missing something in admin/help/stringoverrides, then please feel free to add something.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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