I set up a multilingual store and couldn't find a way to translate the completion messages on admin/store/config/checkout, neither on this page nor through User interface translation (no string found).

Am I missing something or are these values indeed not yet translatable? Thanks for your help!

CommentFileSizeAuthor
#6 2852958-6.patch1.23 KBTR
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maenjuel created an issue. See original summary.

TR’s picture

Status: Active » Fixed

Those strings are stored in configuration. See https://www.drupal.org/docs/8/multilingual/translating-configuration for details about how to translate configuration strings.

maenjuel’s picture

Thanks for your response, still getting into Drupal 8 I guess :)

However I wasn't able to find those strings under Configuration Translation to translate.

I clicked through every single category and found nothing related to the Completion messages.

The "categories" I can see:

  • Block
  • Content type
  • Country
  • Date format
  • Image style
  • Language
  • Role
  • Text format
  • Account settings
  • RSS publishing
  • System information
  • System maintenance

The closest thing would be Account setting I guess, but there were only those settings regarding account settings (admin/config/people/accounts) and not Ubercart completion messages.

I have every module in the "Ubercart - core" category and "Translation" category installed so the problem shouldn't be there I think.

maenjuel’s picture

To translate configuration items, select the translate tab when viewing the configuration, select the language for which you wish to provide translations and then enter the content. (https://www.drupal.org/docs/8/multilingual/translating-configuration)

But when I go to the ubercart checkout settings there are no tabs at all. The Tab-block is placed and shows up on other pages, but not here. I also changed to one of the built in themes to make sure it's not a theme issue. No success... And, as wrote in the previous post, I wasn't able to translate in the configuration translation page either.

maenjuel’s picture

Status: Fixed » Active
Issue tags: +multilingual, +translation
TR’s picture

Category: Support request » Bug report
Status: Active » Needs review
FileSize
1.23 KB

I think this was because of a problem with the uc_cart config schema. If you could test this patch and see if it fixes the problem I'd appreciate it.

Status: Needs review » Needs work

The last submitted patch, 6: 2852958-6.patch, failed testing. View results

TR’s picture

Status: Needs work » Needs review

And specifically, these messages show up on the "User interface translation" page at admin/config/regional/translate. You do need more than one language installed to see this.

TR’s picture

I'm just going to go ahead and commit this, because it fixes a number of problems in the schema. But I would like confirmation that translation is possible for these messages now. It works for me at least.

  • TR committed 486c751 on 8.x-4.x
    Issue #2852958 by TR: Completion messages not translatable?
    
TR’s picture

Status: Needs review » Fixed

Closing. Feel free to reopen if this doesn't fix the issue, and feel free to post a comment here if you can confirm it works!

Status: Fixed » Closed (fixed)

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

maenjuel’s picture

Sorry for the late reply. I just wanted to confirm that the translation works now. Thanks for your work, TR!

Mytko Enko’s picture

I have faced an issue about multilingual completion messages:

I've installed English version of D8, than ubercart and later enabled second language (Polish) and made it default.
After all that I could find translation input fields for completion messages and I've added translations.
After that I vent to edit the original messages under /admin/store/config/checkout, what I found is that I no longer can edit original English completion messages. Under that link I see translations, not original. I've tried to access it on English and Polish versions of the website, changed default language etc - same result. English completion messages are default and only translation is editable (on translation page and under store checkout configs).

Your help would be very appreciated.

TR’s picture

Status: Closed (fixed) » Active

Reopening for #14.