Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#14 | devel_generate_d6_2.patch | 4.48 KB | naxoc |
#14 | devel_generate_d7_2.patch | 5.32 KB | naxoc |
#11 | devel_generate_d7.patch | 3.34 KB | naxoc |
#11 | devel_generate_d6.patch | 1.86 KB | naxoc |
#9 | devel-generate-add-language-282010-7.patch | 1.06 KB | egd |
Comments
Comment #1
kfurlotte CreditAttribution: kfurlotte commentedYou 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.
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedReasonable feature request. Patches welcome (for HEAD and D6 at least)
Comment #3
kfurlotte CreditAttribution: kfurlotte commentedIs anyone currently working on that?
Comment #4
naxoc CreditAttribution: naxoc commentedI 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.
Comment #5
Dave ReidLet's keep the two separate ideas in two separate patches.
Comment #6
egd CreditAttribution: egd commentedI 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).
Comment #8
moshe weitzman CreditAttribution: moshe weitzman commentedIs this identical for D7? I would not think so, since Body is a field. Please, we need D7 also, thanks.
Comment #9
egd CreditAttribution: egd commentedI made the patch against the CVS HEAD now. He that fixes the SimpleTest.
Comment #10
egd CreditAttribution: egd commented@moshe: Are you referring to #6?
Comment #11
naxoc CreditAttribution: naxoc commentedHere 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.
Comment #12
naxoc CreditAttribution: naxoc commentedWoops - setting version.
Comment #13
moshe weitzman CreditAttribution: moshe weitzman commentedDoes 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.
Comment #14
naxoc CreditAttribution: naxoc commentedYes, 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.
Comment #15
moshe weitzman CreditAttribution: moshe weitzman commentedcommitted. 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.)