Questions tagged [string-overrides]

The String Overrides module is a module that provides a quick and easy way to replace any text on the site.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

How to change or translate the strings in t() functions only for specified pages? [duplicate]

For example, "Next" contextually means either "Next page" or "Next day" in Chinese. So in a calendar view page, it should be translated into "Next day", in a list view page, it should be translated ...
0
votes
0answers
59 views

how can i translate strings in search page result?

On Drupal 8, how can i translate these strings in search page result : Your search yielded no results Enter your keywords Search Search results I can do it with jQuery but i know it is not a good ...
1
vote
2answers
2k views

How can I override strings?

I'm trying to change a label of Drupal 8's contact form ('Your email address'). The label is defined /core/modules/contact/src/MessageForm.php, but obviously I don't want to change this in core. $...
0
votes
1answer
52 views

Change the “Create [content type]” title

I allow registered users to create content of type X, so they can go to the /node/add/X page and fill in the form. However, I want to give this page a bespoke title, i.e. "Make an X" rather than "...
0
votes
4answers
52 views

Editable message after registeration

is there a way to make this message controllable from back end which appear after user registration. $message = t("Thank you for registering at $site_name. Your application for an account is ...
0
votes
1answer
96 views

String overrides doesn't override certain Commerce components

It actually overrides everything except 'Order total', I do not understand how that component doesn't get overwritten by String overrides. Order total is in Checkout page. <table class="commerce-...
1
vote
4answers
312 views

How to override “Create @bundlename” text?

I'm using String Overrides module to override some strings on my site. I could override some strings like "Performance" to "Clear" (admin/config/development/performance) "Content" to "List of ...
1
vote
1answer
172 views

StringOverrides doesn't change the text in DCommerce “Add to Cart” Button

Seen a lot of references to the hook_form_alter function on how to apply this, but many of the posts are aimed at more seasoned developers. I know enough to know that I need either a custom module to ...
0
votes
0answers
156 views

How to string-override main menu items?

String Overrides is working perfectly for built-in Drupal output such as admin menu links, and for custom code that uses t(). However, it doesn't work if I try and override text in the main menu ...
0
votes
1answer
106 views

How to get fields values in an override file?

I am writing a field override tpl file, in which I want to sum up two INT fields to one INT field. In the file I tried the code: $sum = $field_one + $field_two; The problem is that I get an a notice ...
0
votes
1answer
381 views

Why Views is ignoring my field override, and printing fields regulary?

You can see the question I am reffering here I wrote a .tpl file to override the output of some fields. I wanted the field will be printed with html like below (and succeed on doing so). here is the ...
0
votes
2answers
543 views

Replace strings with new strings

I have a page with list of teasers. It contain links like 1 comment, 1 new comment, add your comment. I want to change 1 comment to 1 response, 1 new comment to 1 new response and add new comment to ...
0
votes
1answer
44 views

How to Change “USER has no blog entries” Text

When you click on a user's blogs link and there are none he message "USER has no blog entries." comes up. I want to change that. I have tried using string overrides within settings.php but it does not ...
1
vote
1answer
871 views

How to change the error system messages

is it possilbe to use string overrides module for system messages? What i need is to change the order of the words and add some more. For example i have a webform with some required fields. When user ...
0
votes
3answers
177 views

How to change the word “blog” for “journal”

I have used string overwrites for a lot of stuff but sometimes I hit a section I cannot change. One of these is the "User's blog" button. How do I change the word "blog" for "journal"? I am impressed ...
2
votes
2answers
2k views

String Overrides is not overriding the “Read more” string

I've filed a support request on drupal.org about this question, but I figured I should ask here as well because someone could know the answer. I want to change the "Read more" link in teasers so that ...
4
votes
1answer
3k views

What is the Context column for in String Overrides module?

With Drupal 7 I have the String Overrides module and there's a coulmn called "Context." I was wondering what this is for? I was thinking maybe I could type in something like 'user/' and the string ...
1
vote
1answer
375 views

String Override limited to certain pages?

I'm using the Fivestar module on different areas of the site. It displays "x votes" below the rating widget. On some areas on the site it would like to change "votes" to "reviews". How could I do ...
0
votes
1answer
140 views

Is it possible to use stringoverride on ONLY one page?

I want to modify ubercarts "Add to cart" text button but only on ONE page that I've customized. I haven't been able to figure out how to call the button via php so I don't know if that's possible. I ...
0
votes
1answer
1k views

Translate label of Comment Body with String Override

I'm using i18n and string overrides for translating fields in the front end. I opened up the comment-section for several content types and it's working great. The only thing is: I can't find a way to ...
0
votes
1answer
144 views

Guestbook Title

I have installed the guestbook module but want to change the tab as displayed in the user profile and the text in the link so that they read 'User Feedback' rather than 'User Guestbook' and 'add ...