• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 09.08.20, 15:55
  • Opened by: Lynda
  • Closed by: Fred
  • Closed on: 19.08.20, 18:14
  • Reason: Closed
  • Comment: Glad to help!

Ticket #18816 - "Report abuse" translation

Hi, Fred !

I can’t translate “Report abuse” on product comments. Can you help me ?

Thank you.

Attachments:

Capture d’écran 2020-08-09 a... (65.3 KiB)
Capture d’écran 2020-08-09 a... (265.7 KiB)

Comments

Fred 11 Aug 2020, 16:28

Fixed in the file /themes/alysum/modules/productcomments/views/templates/hook/product-comment-item-prototype.tpl

Lynda 12 Aug 2020, 09:20

Comments are no longer displayed… Can you restore the file, please ?

Attachments:

Capture d’écran 2020-08-12 a... (44.1 KiB)
Fred 12 Aug 2020, 12:19

I have changed one word only, it definitely can’t make such issue.
Please make sure that is not a cache issue.

Lynda 14 Aug 2020, 12:59

I recompiled templates in back office. Now, comments are displayed, but not correctly…

Attachments:

Capture d’écran 2020-08-14 a... (131 KiB)
Fred 15 Aug 2020, 12:34

try this:

.product-comment-list-item .comment-infos .grade-stars {
    position:absolute;
    right:0
}
.product-comment-list-item .comment-infos h4 {
    margin:0
}
.product-comment-list-item .comment-infos .pk-avatar {
    margin-right:20px
}
Lynda 15 Aug 2020, 17:11

I restored the file “product-comment-item-prototype.tpl” and now the layout is OK… But not the translation.

My translation issues look like this ticket : https://support.promokit.eu/index.php?do=details&task_id=18396&opened=3857&status%5B0%5D=

Should I try to copy the folder /themes/alysum/translations/fr-FR to your child theme /themes/alysumchild/translations/fr-FR, as you say ?

Thank you.

Fred 16 Aug 2020, 10:14

Open that file /themes/alysum/modules/productcomments/views/templates/hook/product-comment-item-prototype.tpl and change the translation text to correct format
Instead of

{l s='Report abuse' mod='productcomments'}

use

{l s='Report abuse' d='Modules.Productcomments.Shop'}
Lynda 19 Aug 2020, 18:05

Done. Now, the translation works ! Thank you, fred.