Hey,

I have site with multi language setup. Site have 4 language. When I add product in cart ajax success message only showing default language. I translate string from User interface translation.

Note :: I added success message in english by default. It's showing message in default language always once I translated english string.

Let me if there is other way to show translated message.

Thank you

Comments

pankajxenix created an issue. See original summary.

kkubali’s picture

Assigned: Unassigned » kkubali
kkubali’s picture

Could you tell me where you set up the message "success"? Was it at admin/config/basic_cart/checkout?

pankajlogical’s picture

Hey @kmharrell, No message is set up at admin/config/basic_cart/settings.

kkubali’s picture

Great. I will look into it.

karthik.arumugam’s picture

I have created patch for success message translation. Please review.

karthik.arumugam’s picture

Status: Active » Needs review
norman.lol’s picture

Version: 8.x-6.0-beta1 » 8.x-8.x-dev
Assigned: kkubali » Unassigned
Priority: Critical » Normal
norman.lol’s picture

Category: Bug report » Feature request
Status: Needs review » Fixed
Issue tags: -translation
StatusFileSize
new102.99 KB
new160.58 KB

Thank you everybody!

I think it's really important that all config strings from Basic Cart are translatable. Your contribution is much appreciated!

I additionally provided a *.config_translation.yml and fixed the *.links.task.yml so now there's also that "Translate" tab on the settings pages.

Screenshot of the admin page showing the Translate tab

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

norman.lol’s picture

Title: Success message not translated after add to cart . » Make success message translatable after add to cart

Status: Fixed » Closed (fixed)

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