ec4d346f95
Functions QUndo{Group,Stack}::create{Undo,Redo}Action() now use action text templates "Undo %1" and "Redo %1" if no custom prefix was provided. This makes more flexible translations possible. The surrounding text (like "Undo" and "Redo") can now be suffixed to the command name as German and Korean languages require ("%1 rueckgaengig machen" for German). Also, now the default action text (when no command can be undone) can be translated differently from the prefix. For example, it can be translated as "Undo action", not just "Undo". When a non-empty prefix is passed to QUndo*****::create****Action(), those functions work as before, and the features described above become unavailable. Task-number: QTBUG-14442 Merge-request: 1212 Reviewed-by: ossi (cherry picked from commit 213c25ad24e4f3b0a44f82f23d34746cd294f8d6)
26 lines
725 B
XML
26 lines
725 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE TS>
|
|
<TS version="2.0" language="en">
|
|
<context>
|
|
<name>QUndoGroup</name>
|
|
<message>
|
|
<source>Undo %1</source>
|
|
<translation>undo-prefix %1 undo-suffix</translation>
|
|
</message>
|
|
<message>
|
|
<source>Undo</source>
|
|
<comment>Default text for undo action</comment>
|
|
<translation>Undo-default-text</translation>
|
|
</message>
|
|
<message>
|
|
<source>Redo %1</source>
|
|
<translation>redo-prefix %1 redo-suffix</translation>
|
|
</message>
|
|
<message>
|
|
<source>Redo</source>
|
|
<comment>Default text for redo action</comment>
|
|
<translation>Redo-default-text</translation>
|
|
</message>
|
|
</context>
|
|
</TS>
|