Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a project where I need to translate a lot of words and text fragments in different languages.

In these texts, underscores are currently added in these text (fragment(s)) to be used as keyboard shortcuts (used in Visual Studio).

However, I was wondering if this is the way to go, or if it would be better to remove the underscores and add them AFTER translation.

Is there some guideline to follow?

share|improve this question
up vote 2 down vote accepted

At least, you need to make sure you don't get shortcut collisions within each local context where the shortcuts have to be unique (I guess its some kind of dialog or form). If you can assure this whilst the translation is done, do it. If your translator just gets a naked word list and no information about the context, you can only assure this afterwards, so better add them after translation. The person who places the underscores in the translation should know about the context and the global shortcuts he should not use (like Ctrl-C, Ctrl-X, Ctrl-V).

share|improve this answer
In some cases they cannot be unique (so maybe I should not add shortcut keys at all in those locations). I will probably do it afterwards; I don't want to leave then the underscoring to the translators (it's a hobby project after all). Also thanks for reminding about the global shortcuts. – Michel Keijzers Mar 18 '14 at 9:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.