easymodo / qimgv

Image viewer. Fast, easy to use. Optional video support.
GNU General Public License v3.0
2.38k stars 167 forks source link

Concatenating Strings with "+" Makes Translation Difficult #511

Open zymelaii opened 1 year ago

zymelaii commented 1 year ago

For instance, sentence below has a normal grammatical structure of the English language. While there are other langs such as Japanese do not follow the verb+noun structure.

tr("Delete ") + QString::number(paths.count()) + tr(" items permanently?");

Consider using a formatter statement to replace the simple concat expression:

tr("Delete %1 items permanently?").arg(paths.count());