Create and translate is a module that adds a submit button on the node add form to create the node and go directly to the translation page.
On the creation of the node, the button will only show up when selecting a language.
Creating nodes with translations is a lot more fun and less clicks with this module.
While adding a translation, there will appear a button to create the node and go back to translations.
There's a settings-form available where you can enable/disable this feature by content type.
There are permissions to enable the use of this feature by role.
https://www.drupal.org/sandbox/stijnstroobants/2438149
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/StijnStroobants/2438149.git create_and_translate
Manual reviews
https://www.drupal.org/node/2661410#comment-10869846
https://www.drupal.org/node/2670510#comment-10869960
Comments
Comment #1
stijnstroobantsComment #2
PA robot commentedProject 1: https://www.drupal.org/node/2438375
Project 2: https://www.drupal.org/node/2316793
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxStijnStroobants243814...
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
stijnstroobantsFixed Pareview errors
Comment #5
stijnstroobantsComment #6
pratik.mehta19 commentedHi StijnStroobants,
All contributed modules should provide a README.txt or README.md file in the package. This plain-text file should contain a basic overview of what the module does and how someone may use it.
The README-file should repeat the synopsis on the project page on Drupal.org.
If the README-file becomes large or complex, installation and configuration instructions may be moved into an additional file named INSTALL.txt or INSTALL.md. It would concentrate on the installation tasks: system requirements, installation instructions, frequently asked questions, etc.
Like module files, README, INSTALL and other plain text files should use unix-style line-endings (\n), and not windows (\r\n) or mac (\r) line endings.
The file should be formatted to hard-wrap at 80 characters.
Comment #7
pratik.mehta19 commentedGit default branch is not set, see the documentation on setting a default branch (https://www.drupal.org/node/1659588).
Comment #8
stijnstroobantsSet default branch for project and added a README.txt
Comment #9
stijnstroobantsComment #10
drupalove commentedAutomated Review
Automated test cases were found in the README.txt file, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.
Manual Review
However, I think a second opinion is necessary, preferably by an administrator.
/node/22/translate instead of /node/add/article?translation=22&target=en
Therefore I suggest, you:
- change the project description to:
… and go directly to the translations list page.
- change the button title from: Create and add more translations to: Add more translations
- change the screenshot of the project accordingly.
under 'Multilingual support' in the vertical tab 'Publishing options'.
- I think the first hook is not implementation of hook_form_FORM_ID_alter() but hook_form_BASE_FORM_ID_alter
which is recommended for altering the form on the node edit page. Please make the necessary change.
- Make the letter T lower case in Enable create and Translate for this content type?
You may add additional details pertinent to the particular hook implementation:
See https://www.drupal.org/coding-standards/docs
See https://www.drupal.org/node/161085#hook_help
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #11
drupalove commentedComment #12
drupalove commented@StijnStroobants, some useful links to the documentation were accidentally removed I'll list them here:
Comment #13
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #14
stijnstroobantsFixed the review recommendations.
- Set module weight
- Moved the settings for enabling Create and translate under 'Multilingual support' in the vertical tab 'Publishing options'. Used conditional form element.
- Added hook_help
Comment #15
stijnstroobantsComment #16
PA robot commentedProject 1: https://www.drupal.org/node/2438375
Project 2: https://www.drupal.org/node/2561969
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #17
drupalove commented@StijnStroobants please get a review bonus and add the PAReview: review bonus tag.
Comment #18
boromino commentedAutomated Review
Pareview and Coder: No issues found.
Manual Review
:input[name="language_content_type"]' => array('value' => '2'): Use TRANSLATION_ENABLED for the value comparison.
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
Comment #19
stijnstroobantsComment #20
nitebreedHi Stijn,
Automated Review
No warnings / errors found (see http://pareview.sh/pareview/httpgitdrupalorgsandboxstijnstroobants243814...)
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
This review uses the Project Application Review Template.
Comment #21
tajinder.minhas commentedHello Stijn,
Following are the points which i was able to find
Comment #22
stijnstroobantsThanks for the reviews again.
Just committed the changes.
Comment #23
stijnstroobantsComment #24
Rahul Seth commentedIt seems quite ok.
Comment #25
Rahul Seth commentedComment #26
PA robot commentedProject 1: https://www.drupal.org/node/2561969
Project 2: https://www.drupal.org/node/2438375
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #27
stijnstroobantsReopened... This is not a duplicate...?
Comment #28
klausiplease read the message of the bot, only one application per user should stay open.
Comment #29
stijnstroobantsComment #30
stijnstroobantsComment #31
damienmckennaThanks for your contribution, Stijn!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.