Hello,<br><div><br></div><div>I am trying to translate what comes from the following piece of code inside</div><div>node.module:node_add()</div><div><br></div><div>....</div><div><div> drupal_set_title(t('Submit @name', array('@name' => $types[$type]->name)));</div>
<div>....</div><div><br></div><div>Using localization I can translate "Submit @name" to "Enviar @name".</div><div><br></div><div>The problem is that the node type name is written in english and I can not change that name</div>
<div>without breaking a lot of custom pages.</div><div><br></div><div>I wonder why the previous line is not written this way:</div><div><br></div><div>...</div><div><div> drupal_set_title(t('Submit @name', array('@name' => t($types[$type]->name))));</div>
</div><div>...</div><div><br></div><div>Another option would be to modify function t(), to automatically pass all arguments through</div><div>t().</div><div><br></div><div>Do you see any problem with modifiying t() ?<br></div>
<div><br></div></div>