I'd like to be able to alter UC's standard messages, attached patch does this.

Files: 
CommentFileSizeAuthor
#5 translate_ca_mesages-1488712-5.patch805 bytesmarthinal
FAILED: [[SimpleTest]]: [MySQL] 1,536 pass(es), 0 fail(s), and 40 exception(s).
[ View ]
uc_store.patch352 byteskilles@www.drop.org
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch uc_store_2.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

longwave’s picture

Status:Needs review» Reviewed & tested by the community

Simple patch, looks good and sounds useful to me.

longwave’s picture

Any reason why hasn't been committed?

TR’s picture

Status:Reviewed & tested by the community» Fixed

Committed. Thanks.

Status:Fixed» Closed (fixed)

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

marthinal’s picture

Category:feature» bug
Status:Closed (fixed)» Needs review
StatusFileSize
new805 bytes
FAILED: [[SimpleTest]]: [MySQL] 1,536 pass(es), 0 fail(s), and 40 exception(s).
[ View ]

The patch from @killes works fine.

In my case the problem was with uc_roles messages in the ca becauses I needed to traslate also.

After trying to translate like global i18n_variable and using the translate UI was imposible.

So my workaround to fix this and to translate messages from the UI was create this patch.

If you create a suscription with your role for about 1 day the system sends you the reminder email.you need to do this one time before go to the UI translate.(I explain maybe anyone doent know it and is reading this post).

ok now if you go to the UI translate you can translate the message with no problem and also if the user profile preferred language is spanish he will recieve the email in spanish.

Patch added and I think maybe this is not the way but I didnt understand the actually proccess to do this and also ...it doesnt work what we have actually.

Status:Needs review» Needs work

The last submitted patch, translate_ca_mesages-1488712-5.patch, failed testing.

longwave’s picture

Category:bug» feature
Status:Needs work» Closed (fixed)

You are not allowed to pass dynamic strings to t() like that, see the API documentation for more information.

Please open a new issue as translating these messages is a separate feature request.