Open Valdnet opened 3 years ago
I am not sure if %s is extractable here. cc @nextcloud/server
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.
ping @nextcloud/server
Now that I understand the syntax better, this should probably work:
p($i++ . '. ' . $l->t('Server:');
@szaimen Can you solve this?
cc @nickvergessen if my syntax looks fine. If it does, I'll go ahead and create a PR :)
What szaimen posted does not work for RTL lamguages. The currently used approach is therefor the correct one, unless the full template is remodeled to use a ol>li element layout.
Maybe a help string would be good instead?
@nickvergessen Help string = Translator comment ?
Feel free to add one.
Also the $_['serverConfigurationHosts'][$prefix]
part should be moved into the translation with a placeholder btw.
Maybe it's then not even as confusing anymore.
Extract "%" from the text string. This will make the string translation easier and avoid translation errors.
https://github.com/nextcloud/server/blob/aec9c8437a3de5d69451ae303ac5334b412f76d8/apps/user_ldap/templates/part.wizard-server.php#L10