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.
Can the following change please be made to version 7:
$items['admin/config/gtranslate'] = array(
'title' => 'GTranslate',
'description' => 'GTranslate module settings control',
'page callback' => 'drupal_get_form',
'page arguments' => array('gtranslate_admin'),
'access arguments' => array('administer site configuration'),
'type' => MENU_NORMAL_ITEM
);
Changes the menu path and the permission. This puts Gtranslate in the right spot under /config (not in the Toolbar) with a more appropriate permission.
Comment | File | Size | Author |
---|---|---|---|
#13 | Screenshot 2023-02-23 at 11.29.28.png | 59.31 KB | i-trokhanenko |
#10 | 1272306-fix-gtranslate-menu.patch | 486 bytes | SocialNicheGuru |
Issue fork gtranslate-1272306
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
kevinquillen CreditAttribution: kevinquillen commentedSorry, that menu path should be 'admin/config/regional/gtranslate'.
Comment #2
beltofteComment #3
beltofteThe attached patch fixes this issue. The module it self could really need heave code clean up to follow the official Drupal coding standards. Would gladly do this if the maintainer was not selling commercial versions of the code!
Comment #4
kevinquillen CreditAttribution: kevinquillen commentedAren't there a lot of new Google APIs out now? Why not branch off a new ver? You can request maintainer status from d.o. if the original maintainer is not around.
Comment #5
beltofteNot planning to be part of this project and maintain it, because the current maintainer is distribution and developing on http://gtranslate.net instead of d.o, and also selling commercial versions of it http://gtranslate.net/features.
So if I need a module like this, would I probably create a new module and project on d.o.
Comment #6
Simon Georges CreditAttribution: Simon Georges commentedI can confirm this patch works as expected, and is needed to have the configuration screen correctly working.
Comment #7
Simon Georges CreditAttribution: Simon Georges commentedIn current version too.
Comment #8
mcannon CreditAttribution: mcannon commentedI also noticed this issue along with a permission issue of "access administration pages" which is a perm we give most all of our clients so their editing experience is the same on every site. So this made GTranslate settings accessible to editors when it should not be.
The patch I attached solves the path and the access.
Comment #9
heddnComment #10
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedthis is an update for the newest gtranslate 2016-Sep-06
Comment #11
apadernoComment #12
apadernoThe Drupal 8 version of the module already uses /admin/config/regional/gtranslate for its route. The same should be done for the Drupal 7 version.
Comment #13
i-trokhanenko+1 RTBC
Patch #10 works well for me. Thanks!