-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Move calendar settings into basic settings #13796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b068809
c44c23a
280dce8
3508c23
9cea139
6c49dd1
ea1f6f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,12 +30,39 @@ | |
| ?> | ||
| <form id="CalDAV" class="section"> | ||
| <h2><?php p($l->t('Calendar server')); ?></h2> | ||
| <p class="settings-hint"> | ||
| <?php print_unescaped(str_replace( | ||
| [ | ||
| '{calendarappstoreopen}', | ||
| '{calendardocopen}', | ||
| '{linkclose}', | ||
| ], | ||
| [ | ||
| '<a target="_blank" href="../apps/office/calendar">', | ||
| '<a target="_blank" href="' . link_to_docs('user-sync-calendars') . '" rel="noreferrer noopener">', | ||
| '</a>', | ||
| ], | ||
| $l->t('Also install the {calendarappstoreopen}Calendar app{linkclose}, or {calendardocopen}connect your desktop & mobile for syncing ↗{linkclose}.') | ||
| )); ?> | ||
| </p> | ||
| <p> | ||
| <input type="checkbox" name="caldav_send_invitations" id="caldavSendInvitations" class="checkbox" | ||
| <?php ($_['send_invitations'] === 'yes') ? print_unescaped('checked="checked"') : null ?>/> | ||
| <label for="caldavSendInvitations"><?php p($l->t('Send invitations to attendees')); ?></label> | ||
| <br> | ||
| <em><?php p($l->t('Please make sure to properly set up the email settings above.')); ?></em> | ||
| <em> | ||
| <?php print_unescaped(str_replace( | ||
| [ | ||
| '{emailopen}', | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @georgehrke guess this is supposed to be called "linkopen"? Not sure :D
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I basically copied it from here: https://github.com/nextcloud/server/blob/master/settings/templates/settings/personal/development.notice.php#L16 {emailopen} will only be visible to the translators anyway. |
||
| '{linkclose}', | ||
| ], | ||
| [ | ||
| '<a href="../admin#mail_general_settings">', | ||
| '</a>', | ||
| ], | ||
| $l->t('Please make sure to properly set up {emailopen}the email server{linkclose}.') | ||
| )); ?> | ||
| </em> | ||
| </p> | ||
| <p> | ||
| <input type="checkbox" name="caldav_generate_birthday_calendar" id="caldavGenerateBirthdayCalendar" class="checkbox" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use
pand use the l10n sprintf method:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p()will escape<a href="../admin#mail_general_settings">There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes, then just the translation ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but p will print the text and once it's printed i can't replace
{emailopen}or{linkclose}😉There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I can see
%sthecausing issues.I don't know, the str_replace seemed weird to me :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I throw
<?php p($l->t('Please make sure to properly set up')) ?> <a href="../admin#mail_general_settings"><?php p($l->t('the email server ↗')) ?></a>in the ring 🤣There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As i said above already, I just copied it from https://github.com/nextcloud/server/blob/master/settings/templates/settings/personal/development.notice.php#L16
😉