Salesforce admins: Urgent action required!

Calendar: Difference between revisions

Jump to navigation Jump to search
Line 65: Line 65:
You can find additional calendar settings in Woodford's app project '''[[Configuration#PIM.2FEmail|Configuration]]''', as well as in the '''[[Setup|Setup/Settings]]''' section of the mobile app. Regional settings of the device can also affect how the calendar is displayed.
You can find additional calendar settings in Woodford's app project '''[[Configuration#PIM.2FEmail|Configuration]]''', as well as in the '''[[Setup|Setup/Settings]]''' section of the mobile app. Regional settings of the device can also affect how the calendar is displayed.


You can also localize several strings in the calendar and apply a custom format to dates. Go to '''[[Localization]]''' and search for "calendar." to see the list of all related strings. When working with the string format, we use this type of syntax: <code>{0:MMMM yyyy}, Week {1}</code>. <code>{0}</code> corresponds to the date, <code>{1}</code> to the week number. For more information about the syntax, see [[Formatting strings in rules]], including the external links to Microsoft .NET documentation linked at the bottom of the article.
== Localizing calendar ==
 
You can localize several strings in the calendar and apply a custom format to dates. Go to '''[[Localization]]''' and search for "calendar." to see the list of all related strings. Only a subset of strings is available by default; you must create the rest manually if you want to use them.


[[File:Calendar-localization.png|600px|alt=calendar localization]]
[[File:Calendar-localization.png|600px|alt=calendar localization]]
When working with the strings Calendar.MonthLabelFmt and Calendar.WeekLabelFmt, we use this type of syntax: <code>{0:MMMM yyyy}, Week {1}</code>. <code>{0}</code> corresponds to the date, <code>{1}</code> to the week number. For more information about the syntax, see [[Formatting strings in rules]], including the external links to Microsoft .NET documentation linked at the bottom of the article.
For the string Calendar.DayLabelFmt, the formatting is a bit more complicated. Just like above, <code>{1}</code> is the week number. <code>{0}</code> is the date, but special rules apply:
* If the date is today, the day before, or after, the strings "Today", "Yesterday", and "Tomorrow" are used. You can localize the strings Calendar.FmtYesterday, Calendar.FmtToday a Calendar.FmtTomorrow.
* For other dates, the format is hardcoded as "name of the day, date".
* You can override the format using the string Calendar.FmtDay.


== Calendar in the app ==
== Calendar in the app ==

Navigation menu