nextcloud / unsplash

πŸ“ΈπŸ”€β˜οΈ Random Nextcloud log in background from Unsplash
https://apps.nextcloud.com/apps/unsplash
GNU Affero General Public License v3.0
92 stars 23 forks source link

l10n: Variables cannot be reordered #118

Closed rakekniven closed 1 month ago

rakekniven commented 1 year ago

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.

newhinton commented 1 year ago

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?

rakekniven commented 1 year ago

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