Difference between revisions of "Help talk:Template"
Discussion page of Help:Template
Views
Actions
Namespaces
Variants
Tools
(created) |
m (small corrections) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Create talk on Help:Template | Create talk on Help:Template | ||
== omit translation of Template UserCmd == | |||
Commands should never be translated. How to prevent this ? | |||
I asked megavolt. He came up with the following solution: | |||
<tvar|rootcmd>{{RootCmd|command=command}}</> | |||
<tvar|usercmd>{{UserCmd|command=command}}</> | |||
If '''‹tvar|varname›...‹/›''' is used to surround '''UserCmd''', the command will not show in the editor for translation. So there is no danger to accidentally translate some parts of the command. | |||
The only downside of this is, that you have to use different variable names for '''"rootcmd"''' like '''rootcmd1''', '''rootcmd2''' ... when you use this inside the same translate-section | |||
--[[User:Andreas85|Andreas85]] ([[User talk:Andreas85|talk]]) 06:46, 19 September 2021 (UTC) |
Latest revision as of 06:47, 19 September 2021
Create talk on Help:Template
omit translation of Template UserCmd
Commands should never be translated. How to prevent this ?
I asked megavolt. He came up with the following solution:
<tvar|rootcmd>
root # command
</>
<tvar|usercmd>
user $ command
</>
If ‹tvar|varname›...‹/› is used to surround UserCmd, the command will not show in the editor for translation. So there is no danger to accidentally translate some parts of the command.
The only downside of this is, that you have to use different variable names for "rootcmd" like rootcmd1, rootcmd2 ... when you use this inside the same translate-section