Difference between revisions of "Template talk:UserCmd"

m (answered)
Line 18: Line 18:


:Good suggestion but I think we have to add new parameter(like isNeedSudo) for usercmd template to do this. Do you know another way? By Oguzkagan
:Good suggestion but I think we have to add new parameter(like isNeedSudo) for usercmd template to do this. Do you know another way? By Oguzkagan
== Problem with RTL languages ==
Hello,
First time I encountered this problem was when I was translating a page containing this template to Persian. Somehow I think that the problem is not just about Persian, but about all Right-To-Left languages like Persian. The problem is that the text defined as the command for this template changes its direction and wrongly 
Let me make an example so you'd understand it easier:
{{UserCmd|command= sudo someting}}
As you see above the command and the "user $" is in the correct text direction, LTR. But when you view the translated page containing this template and the text direction in that specific language is RTL, it is like you just cut the text from left & paste it to the right! which should never happen.
Explaining with photos is much more easier but, I don't have the permission to upload, so please look at the main [[Reactivating the Backlight/en|English]] & the translated [[Reactivating the Backlight/fa|Persian]] text on "Reactivating the Backlight" page for example.
As far as the English text here, is an internal command, it doesn't have to be translated to other languages. And of course text direction must not be changed in translations, but the problem doesn't show itself until you translate the main text to RTL languages like Persian, Arabic, Urdu, etc.
I tried to remove the translation tag of this template, but nothing changed.
How can we overcome this issue? Do you have any ideas?
By K2latmanesh
translator
2,631

edits