[support] Fwd: "Read more" edit
nan wich
nan_wich at bellsouth.net
Wed Apr 13 20:05:00 UTC 2011
It might not be exactly "Read more" everywhere.
I have this at the top of my site module, that is, in the open code part:
// Change the "Reads" label for Statistics.
global $conf;
$strings = array(
'@countreads' => '@countviews',
'1 read' => '1 view',
);
if (isset($conf['locale_custom_strings_en'])) {
$conf['locale_custom_strings_en'] =
array_merge($conf['locale_custom_strings_en'], $strings);
}
else {
$conf['locale_custom_strings_en'] = $strings;
}
And this changes the "reads" label from the Statistics module. It can also be
done at the bottom of the settings.php.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________
From: Christian Quiñones <christian.p.quinones at gmail.com>
To: support at drupal.org
Sent: Wed, April 13, 2011 12:35:49 PM
Subject: Re: [support] Fwd: "Read more" edit
@Shai,
I haven't tested all possibilities having the Locale module enabled, however my
current setting at the time of string override failure was:
- Locale module enabled
- Added an additional language (Spanish)
- Set my language defaut for Locale module to be Spanish, and second language
English
- Enabled multilingual support for all content types
When disabling locale module, the content of all nodes had dissapeared leaving
only the title. I was able to get content back by disabling multilingual
support in each content type. However two of my content types would still
display Spanish as default language when creating content for those content
types.
Luckily I had done a backup using Backup and migrate, which it took all my
content and content types to its last good configuration.
I hope this helps,
Christian
On Wed, Apr 13, 2011 at 2:36 PM, Shai Gluskin <shai at content2zero.com> wrote:
@Christian,
>
>
>Thanks for your persistence and for reporting back.
>
>
>I'm thinking of writing a docs page on this. I don't use the Locale module.
>
>
>Can you just be a little more specific about what happened, how it all works.
>I'm guessing that if Locale module is turned on then all string overrides get
>handled by it and other mechanisms are ignored? Is that right?
>
>
>Please share your insights.
>
>
>best,
>
>Shai
>
>
>On Wed, Apr 13, 2011 at 4:38 AM, Christian Quiñones
><christian.p.quinones at gmail.com> wrote:
>
>I figured out why, the string override and editing the settings.php file was not
>changing the "read more" link, it was the locale module. A lot of lessons
>learned.
>>
>>All your feedback was much appreciated.
>>
>>
>>
>>On Tue, Apr 12, 2011 at 2:59 PM, Earnie Boyd <earnie at users.sourceforge.net>
>>wrote:
>>
>>Christian Quiñones wrote:
>>>> @Earnie, I looked at the api and I dont' understand if I have to just copy
>>>> and paste into the node.api.php file or if I have to actually create a
>>>> module invoking this api. If its tha latter, I will need to keep searching
>>>> for a better solution.
>>>>
>>>
>>>I meant the latter. Creating modules is something you're going to want
>>>to learn how to do if you plan to use Drupal for its strength. Check
>>>out the documentation[1] page, it'll get you started. Besides, this
>>>knowledge will help you determine quality of a module you plan to use.
>>>
>>>[1] http://drupal.org/documentation
>>>
>>>--
>>>
>>>Earnie
>>>-- http://progw.com
>>>-- http://www.for-my-kids.com
>>>--
>>>[ Drupal support list | http://lists.drupal.org/ ]
>>>
>>
>>--
>>[ Drupal support list | http://lists.drupal.org/ ]
>>
>
>--
>[ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110413/b9561dee/attachment-0001.html
More information about the support
mailing list