unsplash icon indicating copy to clipboard operation
unsplash copied to clipboard

l10n: Variables cannot be reordered

Open rakekniven opened this issue 2 years ago β€’ 2 comments

Comment from translator: Reordering of variables does not work, if I write e.g. %2$s, it says %s is not present in the translation, so I can't save it.

https://github.com/nextcloud/unsplash/blob/5bbd7b119016e7f1f0685893954303756a57b219/templates/partials/licenseUnsplash.php#L14

https://github.com/nextcloud/unsplash/blob/5bbd7b119016e7f1f0685893954303756a57b219/templates/partials/licenseWallhavenCC.php#L14

Another translator requested reordering as well.

rakekniven avatar Feb 20 '23 19:02 rakekniven

What exactly is the issue? Do i need to specify the order of the variables and split the array into two parameters? Will that fix the translation-issue?

newhinton avatar Apr 08 '23 11:04 newhinton

You have to avoid multiple %s in one sentence. Use numbered placeholders like %1 and %2 and so on.

rakekniven avatar Apr 08 '23 14:04 rakekniven