&Datei
or
&Bearbeiten
The accelerator can precede any letter in a word, it doesn't have to be the first one.
Accelerators have to be unique, Qt Linguist will prompt you for any duplicate assigned accelerators. Please check the warnings at the bottom all the time.
One note on East Asian languages (or any other language with non-latin alphabets): Since most people in asia use standard alphanumeric keyboards but the menus still appear in their specific language, accelerators have to be defined through an extra character. Naturally, mose people just use the accelarators from the English version. Thus, if you translate "&File" from English to Japanese, it will become ファイル (__F__).
This means in code:
&File
translates to:
ファイル (&F)
==== Place holders ====
Place holders are used to reserve parts of a text for information that is inserted on runtime by the program code. That is, while the program is actually running. This is necessary to provide the user with dynamically generated information, like how many tracks were deleted or on how many tracks errors were detected.
A very simple example is:
Track %1
which is used to caption a track in the user interface. "%1" here is the place holder which is replaced by a numeric on runtime.
For translations, it is important that all place holders are also present in the translated text.
Thus, the above one translates to in Norwegian:
Spor %1
It doesn't matter, at what position in the translated sentence, the place holder is shown but only the fact that it actually exists. The position solely depends on your translation. So, in German, it might also be something like:
%1 er Track
==== HTML formatting ====
Some of the interface text might be formatted with HTML. HTML formatting is useful to display certain text with larger fonts, bold or italic and so on. For example, the text in the about dialog looks like this:
QHiMDTransfer, Version 0.0.1
A free music transfer software for MiniDisc walkman.
Brought to you by the linux-minidisc project:
https://wiki.physik.fu-berlin.de/linux-minidisc
This software is covered by the GNU GPL v2 license. See the
file LICENSE in the program folder for more information.
For translation of such formatted texts, the best practice is just to copy the whole formatted text (including the HTML tags) and just edit and translate the normal, user-visible text. Changing the formatting should not be necessary in most cases. Thus, for example, the German translation looks very similar:
QHiMDTransfer, Version 0.0.1
Eine freie Transfersoftware für MiniDisc Walkman.
Diese Software entstand im linux-minidisc Projekt:
https://wiki.physik.fu-berlin.de/linux-minidisc
Diese Software unterliegt der GNU GPL v2 Lizenz. Lesen sie die
Datei LICENSE im Programmverzeichnis für mehr Infos.
===== .ts Files =====
All currently existing translations can be found on our FTP server at: [[http://users.physik.fu-berlin.de/~glaubitz/linux-minidisc/translations/]]. This directory also contains a generic template file called "//00-qhimdtransfer_template.ts//" for new language files.