I went back through about five pages of requests and couldn't see these.
Apologies if they have already been requested.

1)
devel generates content using uid0, uid1 and uid2. uid0 and uid2 are not used by drupal, and uid1 is the 'super user'. Could devel be made to only use uid3 and above for generating content please?

2)
devel only uses 'neutral language'. Would it be possible for devel to generate content across all active languages please, including 'neutral'?

Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kfurlotte’s picture

You are right, devel only uses neutral language. I would like that it would create nodes in one language, and translate them automatically, even if the content stays the same. I don't know if it's possible, but if it is, please let me know how.

moshe weitzman’s picture

Reasonable feature request. Patches welcome (for HEAD and D6 at least)

kfurlotte’s picture

Is anyone currently working on that?

naxoc’s picture

Version: 6.x-1.9 » 6.x-1.x-dev
Status: Active » Needs review
FileSize
1.88 KB

I needed to be able to generate content with language, so I wrote a patch that solves 2). It just sets language to a random language enabled on the site.

Dave Reid’s picture

Title: devel_generate: users & language » Allow languages to be assigned to generated nodes

Let's keep the two separate ideas in two separate patches.

egd’s picture

I have made a patch that initializes the $node->language field in devel_generate_content_add_node(). The patch accounts for the presence of the 'locale' and 'i18n' modules, and will use them to take into account the settings of the particular content type (e.g. Language required).

Status: Needs review » Needs work

The last submitted patch, add_language_on_generate_content.patch, failed testing.

moshe weitzman’s picture

Is this identical for D7? I would not think so, since Body is a field. Please, we need D7 also, thanks.

egd’s picture

I made the patch against the CVS HEAD now. He that fixes the SimpleTest.

egd’s picture

@moshe: Are you referring to #6?

naxoc’s picture

Status: Needs work » Needs review
FileSize
1.86 KB
3.34 KB

Here are patches for language on nodes for both D6 and D7. Against DRUPAL-6--1 and HEAD respectively.

The D7 one sets language on all fields and the node itself.

naxoc’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Woops - setting version.

moshe weitzman’s picture

Does it make sense to allow picking a single language instead of 'random language'?

Ideally, you would add language support to the generate-content drush command as well.

naxoc’s picture

Yes, it does make a lot of sense to be able to pick which languages should be used! I added that, and drush generate-content for both D6 and D7 too.

moshe weitzman’s picture

Status: Needs review » Fixed

committed. changed drush option to 'languages' instead of lang.

in d7, i made with slight improvements to the form (always shows form item, so folks know its there.)

Status: Fixed » Closed (fixed)

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