Closed (fixed)
Project:
Facebook-style Statuses Comments
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2010 at 13:28 UTC
Updated:
25 May 2010 at 20:00 UTC
I am using this module together with Appbar. The default message for new status comments is:
!user commented on your !message.
If I translate it e.g.
!user hat Ihre Kurzmitteilung kommentiert: !message
The result in appbar is:
admin hat Ihre Kurzmitteilung kommentiert: message
I don't know how to translate the word (link) message
Comments
Comment #1
icecreamyou commentedThe word "message" is translated separately. It has to be done this way because it's part of a link. In other words the code looks similar to this:
The details aren't important, but basically the text in the parentheses of the t() function is what you can translate, !user and !message are tokens that get replaced. So in the message
!user commented on your !message, !message gets replaced with a link that contains the wordmessagewhich you also have to translate, but separately.Does that make sense? Is that enough information?
Comment #2
baff commentedThanks! But not easy to find on admin/build/translate/search, because message is a very frequent word ... or do I understand it wrong?
Comment #3
icecreamyou commentedYeah, that's right, unfortunately. I'm certainly open to suggestions if you have any for how to make this better.
Comment #4
icecreamyou commentedActually I just remembered that there is a coding standard recommendation to do this a different way that will be easier to translate. So this is actually a bug.
Comment #5
icecreamyou commentedOkay, just committed a fix. The string you need to translate is now this:
...so you no longer need to separately translate the word "message."