path translations/add

Created on 15 June 2024, 5 months ago
Updated 20 June 2024, 5 months ago

In Utility.php:formTranslate() is
strpos($current_path, 'translations/add')
and yet no paths with 'translations/add' are declared by the module.
This phrase only occurs in core modules in test files.
So i don't have any pages for formTranslate() to act on.

💬 Support request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @matslats
  • 🇮🇹Italy bigbabert Milano, Italy

    Hi @matslats,

    can i ask further details? have you installed translation from core? this path is the path provided by core when you translate a node. i'll check this weekend if is missing the dependency or if will be needed to re-declare the internal admin path for nodes translation.

    Best regards

  • Sorry I don't know which module you mean with 'translation from core'
    If auto_translation depends on a core module it should be listed as a dependency in auto_translation.info.yml
    I grepped again and I still can't find where the translations/add path is declared.

  • Assigned to bigbabert
  • Status changed to Needs review 5 months ago
  • 🇮🇹Italy bigbabert Milano, Italy

    hi @matslats,

    i refer to the module content_translation, and it is already present as dependency, above a screen of the path, maybe it is generated in PHP and you will never found the full string, but the dependency is correctly declared, and the path is available when you enable translation on content types.

    So i'm going to change status of the issue to "needs review" and priority "minor", add your feedbacks and update it.

    Best regards

  • Status changed to Closed: works as designed 5 months ago
  • ok I think the reason I couldn't grep the path was because it is bound up with the entity link templates.
    I've now added a translation and found it auto translated.
    This still seems like semi-automatic though.
    Is there a way to auto translate automatically whenever the main language content is changed?

Production build 0.71.5 2024