I found there is a problem in word orders while I was trying to make the app itself and metadata files (like .appdata.xml or .desktop files) translatable in my forked repository.
In the current code, the label in the titlebar changes to <timername> finished when the countdown finished. And then if users restart the timer, the label in the headerbar is back to <timername>. This operation is done by adding/removing the constant string " finished" at the end of timername. This works well in the case of English.
However, in some language this does not work, because in some language word orders are different from English one, thus the changed label should be finished <timername> instead of <timername> finished.
This PR allows translators to change the word order of " finished" and fixes this problem.
I found there is a problem in word orders while I was trying to make the app itself and metadata files (like
.appdata.xml
or.desktop
files) translatable in my forked repository.In the current code, the label in the titlebar changes to
<timername> finished
when the countdown finished. And then if users restart the timer, the label in the headerbar is back to<timername>
. This operation is done by adding/removing the constant string " finished" at the end of timername. This works well in the case of English.However, in some language this does not work, because in some language word orders are different from English one, thus the changed label should be
finished <timername>
instead of<timername> finished
.This PR allows translators to change the word order of " finished" and fixes this problem.