]> cloud.milkyroute.net Git - dolphin.git/commit
Allow for more explicit button labels
authorFelix Ernst <fe.a.ernst@gmail.com>
Wed, 23 Mar 2022 15:03:32 +0000 (15:03 +0000)
committerFelix Ernst <fe.a.ernst@gmail.com>
Wed, 23 Mar 2022 15:03:32 +0000 (15:03 +0000)
commit45af4bc0e09ebacca4d7f8177dd5dc0a5fd109cd
tree9343b0e28fc6403bd6597926f248d014cfd35f68
parent49726ad591eca7ac7d11da48a058c512726126d4
Allow for more explicit button labels

This commit allows us to very explicitly refer to any set of items
in text. This way buttons don't need to be labeled generically
like "Permanently Delete" but can be enriched to be labeled
"Permanently Delete "FileName"" or "Copy 7 Selected Folders" or
"Copy 6 Files" or "Rename "file1", "file2", "file3", "file4" and
"folder5"".

This commit tries to save translators a lot of work by using a
translation puzzle. This might be problematic for some languages.
The alternative on the other hand would mean that any label which
wants to be explicit would need to have over 10 translations just
for one label which seems quite bad as well.

A fallback is to be implemented for languages that can't really
accommodate for any specific word puzzle. This is explained in the
documentation.
src/CMakeLists.txt
src/kitemviews/kfileitemlisttostring.cpp [new file with mode: 0644]
src/kitemviews/kfileitemlisttostring.h [new file with mode: 0644]
src/views/dolphinviewactionhandler.cpp