This is basically a followup to #1533286: Add support for Variable module, we should review all user facing strings that are strings that are stored in config and decide whether they really need to be in config or could just be plain translatable strings - things like the shipping quote error messages and credit card validation failure messages immediately come to mind, there is no need for these to be configurable in a different way to most other strings in Drupal.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave created an issue. See original summary.

longwave’s picture

Component: Code » User Interface
TR’s picture

I believe strings in configs are already translatable using core - configs have an inherited language key, defaults to en, and providing a translation is as simple as creating a copy of the configuration with the appropriate language key and string content. No need to involve the Variable module here.

longwave’s picture

Yes, it's true that configuration is now translatable in core - but I don't see why some of these strings are configuration in the first place, and we are very inconsistent on what is configurable and what is not.

Why do we provide a UI to allow users to modify the description of the shipping quote checkout pane in the shipping quote settings page, or part of the customer information pane text, but no other text in the checkout page panes? Similarly we provide obscure settings pages for the shipping quote and credit card error messages, but no other error messages. These all appear to date from the D5/D6 days and feel like they should just be wrapped in t() only, perhaps making them a bit more generic as well - and then users can modify them in the same way they would modify any other UI text in Drupal.

longwave’s picture

Status: Active » Needs review
FileSize
8.91 KB
longwave’s picture

Status: Needs review » Fixed

Committed.

  • longwave committed 955b44f on 8.x-4.x
    Issue #2579245 by longwave: Remove translatable strings from config
    

Status: Fixed » Closed (fixed)

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