Problem/Motivation

Found while manually testing #2161801: Update hook_help for Config translation module

When there is only one language, translate pages exist, but do not give a hint that translation cannot happen until another language is added.

Proposed resolution

Add a message, and link to the language admin, when there is only one language to add enable

Remaining tasks

  • discuss if this is really needed, or is wont fix.

User interface changes

Yes.

Content translation, before

Configuration translation, before (for comparison)


Note that configuration translation is different, because even with only the site default language, config text can be edited on the translate page. (For example, english can be translated.)

API changes

No.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

YesCT’s picture

YesCT’s picture

This is what content translation looks like with more than one language

YesCT’s picture

Issue tags: +Usability
FileSize
131.28 KB

here is an example, where we give a hint and the button links to the place to add the translatable fields.
(this is the case where there is an additional language, and translation is enabled on the content type, but not on any of the fields for the content type [which can be done by editing the content type])

yoroy’s picture

"No translatable fields" is status info. The label on the button should focus more on the action, not on conveying current status.

"Add translatable fields" For the button?

Maybe the "Not translated" status could say something like "No translatable fields available" or "No translatable fields defined".

If so, then the button text could maybe be shortened to "Add fields"

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

yoroy’s picture

Issue tags: +Novice, +sprint
Thew’s picture

When there is only one language, I can't see the translate tab.
screenshot-2286367-8-1.png

But in configuration translation, I can see the warning to have at least 2 languages.
screenshot-2286367-8-2.png

However, I don't understand what does no translatable fields mean. Since, I can't disable all fields. It gives me error.
screenshot-2286367-8-3.png

denutkarsh’s picture

@Thew You are right, i think this issue is not present in 8.2.x . I have checked it and was unable to reproduce the issue. When there is only one language, the "translate" tab is not shown and when i tried to access it from the url, it denied me the access.

denutkarsh’s picture

Status: Active » Closed (cannot reproduce)