Closed (fixed)
Project:
User Relationships
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2008 at 18:08 UTC
Updated:
8 May 2008 at 19:34 UTC
Jump to comment: Most recent file
Comments
Comment #1
sprsquish commentedIf I were to inject the word directly in to the string
like that. Would that help? You'd be able to do a translation on all three versions of the string.
Comment #2
introfini commentedIt doesn't seems to work. But this way it works:
t($action)
introfini
Comment #3
sprsquish commentedI don't know anything about the syntax other languages use. I figured that saying "Are you sure you want to {perform some action}" may be very different in other languages. I think that in Japanese it'd end up like "{perform some action}, sure of this you are?" With that in mind just dropping in the name of the action may not always work.
The approach I outlined above means translating three different sentences instead of doing them piecemeal:
With that in mind, is it still a problem?
Comment #4
introfini commentedNo, for Portuguese there's no problem. Can you give me a patch so I can try?
Thanks.
introfini
Comment #5
sprsquish commentedIt may not be a problem in Portugues, but other languages use very different syntaxes.
Comment #6
introfini commentedYes I agree with you, but in the present time there's no way to translate this to any language.
Thanks, great module!
introfini
Comment #7
sprsquish commentedWould you mind attaching the translation file you've finished so far?
Comment #8
introfini commentedHere it is...
Thanks.
Comment #9
sprsquish commentedOkay, I pushed a fix in to -dev that injects the action directly in the string. Now each translation file will need three strings (one for each action).
I'm providing the diff to show how it'll work.
Comment #10
introfini commentedHi,
Thanks, it worked. But there's still a problem, the title in that confirmation form can’t be translated “@action approve”… (the same problem)
introfini
Comment #11
sprsquish commentedOkay. Fixed in -dev. @actions is now run through t().
I've never needed to provide a translation interface for something I've written. Thanks for your patience with all this.
Comment #12
introfini commentedHi,
All is ok now :-) Thanks!
I’ll be completing the rest of the translation and post it.
Regards,
introfini
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.