Take a look at the attached screenshot for the complete "base path" message.

Drupal 7.14
Entity API 7.x-1.0-rc3
Entity Translation 7.x-1.0-alpha2
Rules translation not enabled (i18n_string not installed)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quiptime’s picture

+1

quiptime’s picture

Priority: Normal » Major
klausi’s picture

Project: Rules » Entity Translation
Version: 7.x-2.1 » 7.x-1.x-dev
Component: Other » Base system
Priority: Major » Normal

I guess Entity Translation should not list configuration entities. It does not make sense to translate a rule configuration entity?

quiptime’s picture

... It does not make sense to translate a rule configuration entity?

It definitely makes sense.

As example:

missing rules translation feature

missing rules translation feature

missing rules translation feature
 

quiptime’s picture

Priority: Normal » Major
plach’s picture

Priority: Normal » Major
Status: Active » Needs review

We have two issues here: one is the ability to translate the Rules configuration and one is that ET should not list as translatable types the entity that do not support translation via ET.

@klausi:
I never tried rules_i18n but I know it relies on i18n's string translation. Does it cover the use case presented by @quiptime? If so, I'd say Rules do not need to integrate with ET as it already provides a translation method. ET just needs to stop listing Rules configurations among the translatable entity types. Otherwise Rules needs to integrate with ET and on that front there is nothing to do on the ET side (besides fixing the UX of the admin page).

plach’s picture

Title: The entities of type Rules configuration do not define a valid base path » Do not list entity types that do not integrate with ET in the admin page
Component: Base system » User interface
Category: bug » task
Priority: Major » Normal
Status: Needs review » Active

This is surely not a major bug in any case.

plach’s picture

Status: Active » Needs review
FileSize
6.35 KB

Here is a patch: it hides from the list of entity types that can be enabled those not defining a valid base path.

bforchhammer’s picture

Status: Needs review » Needs work
+++ b/entity_translation.admin.inc
@@ -25,12 +25,33 @@ function entity_translation_admin_form($form, $form_state) {
+      // Clear warning messages.
+      drupal_get_messages('warning');

Theoretically there could be warnings unrelated to ET which would be cleared by this as well... should probably grab them before our validation and then insert them again if necessary.

Edit: it might be even better if we add a parameter to the validation function so we can avoid that call.

plach’s picture

Status: Needs work » Needs review
FileSize
9.74 KB
4.95 KB

It might be even better if we add a parameter to the validation function so we can avoid that call.

Done :)

bforchhammer’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me :)

plach’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed, thanks.

Status: Fixed » Closed (fixed)

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

  • Commit 6197d95 on 7.x-1.x, et-permissions-1829630, factory, et-fc, revisions by plach:
    Issue #1676716 by plach | quiptime: Do not list entity types that do not...

  • Commit 6197d95 on 7.x-1.x, et-permissions-1829630, factory, et-fc, revisions, workbench by plach:
    Issue #1676716 by plach | quiptime: Do not list entity types that do not...

Status: Closed (fixed) » Needs work

The last submitted patch, 10: et-settings_ux-1676716-10.patch, failed testing.

bforchhammer’s picture

Issue summary: View changes
Status: Needs work » Closed (fixed)

Long fixed...