diff --git a/GUT.Schedule/GUTSchedule.Droid/Resources/values/strings.xml b/GUT.Schedule/GUTSchedule.Droid/Resources/values/strings.xml
index e33292b..2ac0657 100644
--- a/GUT.Schedule/GUTSchedule.Droid/Resources/values/strings.xml
+++ b/GUT.Schedule/GUTSchedule.Droid/Resources/values/strings.xml
@@ -50,7 +50,7 @@
Add schedule
- ©2020 Michael Gordeev, INS, IS-907
+ ©2020 Michael Gordeev, INS, ICT-907
Clear schedule
Report error
diff --git a/GUT.Schedule/GUTSchedule.UWP/AboutPage.xaml b/GUT.Schedule/GUTSchedule.UWP/AboutPage.xaml
index adce101..c46b1f3 100644
--- a/GUT.Schedule/GUTSchedule.UWP/AboutPage.xaml
+++ b/GUT.Schedule/GUTSchedule.UWP/AboutPage.xaml
@@ -19,7 +19,7 @@
-
+
@@ -27,39 +27,39 @@
-
+
-
+
-
+
-
+
-
-
+
+
-
+
- Website: https://xfox111.net
- Twitter: @xfox111
- VKontakte: @xfox.mike
+ Website: https://xfox111.net
+ Twitter: @xfox111
+ VKontakte: @xfox.mike
LinkedIn: @xfox
GitHub: @xfox111
-
+
- Privacy policy
+ Privacy policy
General Public License v3
- GitHub repository
- "TIES" RF
- SPbSUT
+ GitHub repository
+ "TIES" RF
+ SPbSUT
-
+
\ No newline at end of file
diff --git a/GUT.Schedule/GUTSchedule.UWP/App.xaml.cs b/GUT.Schedule/GUTSchedule.UWP/App.xaml.cs
index 443d00c..c0bdffe 100644
--- a/GUT.Schedule/GUTSchedule.UWP/App.xaml.cs
+++ b/GUT.Schedule/GUTSchedule.UWP/App.xaml.cs
@@ -19,6 +19,7 @@ namespace GUTSchedule.UWP
///
public App()
{
+ Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = "ru";
InitializeComponent();
Suspending += OnSuspending;
UnhandledException += OnError;
diff --git a/GUT.Schedule/GUTSchedule.UWP/GUTSchedule.UWP.csproj b/GUT.Schedule/GUTSchedule.UWP/GUTSchedule.UWP.csproj
index 639283c..c312ee1 100644
--- a/GUT.Schedule/GUTSchedule.UWP/GUTSchedule.UWP.csproj
+++ b/GUT.Schedule/GUTSchedule.UWP/GUTSchedule.UWP.csproj
@@ -9,7 +9,7 @@
Properties
GUTSchedule.UWP
GUTSchedule.UWP
- en-US
+ en
UAP
10.0.16299.0
10.0.10240.0
@@ -214,7 +214,7 @@
-
+
@@ -224,6 +224,9 @@
Visual C++ 2015 Runtime for Universal Windows Platform Apps
+
+
+
14.0
diff --git a/GUT.Schedule/GUTSchedule.UWP/MainPage.xaml b/GUT.Schedule/GUTSchedule.UWP/MainPage.xaml
index fdce96e..a96f342 100644
--- a/GUT.Schedule/GUTSchedule.UWP/MainPage.xaml
+++ b/GUT.Schedule/GUTSchedule.UWP/MainPage.xaml
@@ -2,7 +2,6 @@
x:Class="GUTSchedule.UWP.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="using:GUTSchedule.UWP"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
@@ -28,16 +27,16 @@
-
+
-
-
+
+
-
+
@@ -54,26 +53,26 @@
-
+
-
+
-
-
-
+
+
+
-
-
+
+
-
+
-
+
@@ -85,33 +84,34 @@
-
-
+
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
+
-
+
-
+
-
+
diff --git a/GUT.Schedule/GUTSchedule.UWP/MainPage.xaml.cs b/GUT.Schedule/GUTSchedule.UWP/MainPage.xaml.cs
index 503d124..40f6408 100644
--- a/GUT.Schedule/GUTSchedule.UWP/MainPage.xaml.cs
+++ b/GUT.Schedule/GUTSchedule.UWP/MainPage.xaml.cs
@@ -13,6 +13,7 @@ using Windows.ApplicationModel.Resources;
using Windows.Storage;
using Microsoft.Services.Store.Engagement;
using Windows.ApplicationModel;
+using Windows.ApplicationModel.Core;
namespace GUTSchedule.UWP
{
@@ -65,6 +66,13 @@ namespace GUTSchedule.UWP
IsSelected = (string)settings.Values["Calendar"] == i.LocalId
}).ToList();
calendar.SelectedIndex = (calendar.ItemsSource as List).FindIndex(i => i.IsSelected);
+ if((calendar.ItemsSource as List).Count < 1)
+ {
+ MessageDialog dialog = new MessageDialog(resources.GetString("createCalendarMessage"), resources.GetString("createCalendarTitle"));
+ dialog.Commands.Add(new UICommand("OK", (command) => CoreApplication.Exit()));
+
+ await dialog.ShowAsync();
+ }
if (calendar.SelectedIndex < 0)
calendar.SelectedIndex = 0;
}
@@ -76,7 +84,7 @@ namespace GUTSchedule.UWP
catch (Exception e)
{
MessageDialog dialog = new MessageDialog(e.Message, e.GetType().ToString());
- dialog.Commands.Add(new UICommand("OK", (command) => loading.Visibility = Visibility.Collapsed));
+ dialog.Commands.Add(new UICommand("OK", (command) => CoreApplication.Exit()));
await dialog.ShowAsync();
}
diff --git a/GUT.Schedule/GUTSchedule.UWP/Package.appxmanifest b/GUT.Schedule/GUTSchedule.UWP/Package.appxmanifest
index b98fb9c..16eafd3 100644
--- a/GUT.Schedule/GUTSchedule.UWP/Package.appxmanifest
+++ b/GUT.Schedule/GUTSchedule.UWP/Package.appxmanifest
@@ -33,10 +33,10 @@
Executable="$targetnametoken$.exe"
EntryPoint="GUT.Schedule.UWP.App">
diff --git a/GUT.Schedule/GUTSchedule.UWP/Strings/en-US/Resources.resw b/GUT.Schedule/GUTSchedule.UWP/Strings/en-US/Resources.resw
deleted file mode 100644
index 4fdda20..0000000
--- a/GUT.Schedule/GUTSchedule.UWP/Strings/en-US/Resources.resw
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- calendarExportStatus
-
-
- cancelOption
-
-
- clearAllOption
-
-
- clearScheduleDone
-
-
- clearScheduleMessage
-
-
- clearScheduleTitle
-
-
- clearUpcomingOption
-
-
- connectionFailMessage
-
-
- doneStatus
-
-
- groupSelectionError
-
-
- invalidAuthorizationError
-
-
- invalidDateRangeError
-
-
- loadingStatus
-
-
- repeat
-
-
\ No newline at end of file
diff --git a/GUT.Schedule/GUTSchedule.UWP/Strings/en/Resources.resw b/GUT.Schedule/GUTSchedule.UWP/Strings/en/Resources.resw
new file mode 100644
index 0000000..fbb709d
--- /dev/null
+++ b/GUT.Schedule/GUTSchedule.UWP/Strings/en/Resources.resw
@@ -0,0 +1,318 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ About application
+
+
+ About application
+
+
+ Add group number to event title
+
+
+ Add schedule
+
+
+ Application for SPbSUT professors' and students' schedule export
+
+
+ Application which exports SPbSUT timetable to calendar
+
+
+ GUT.Schedule
+
+
+ GUT.Schedule
+
+
+ Authorize via Personal cabinet
+
+
+ Exporting to calendar
+
+
+ Cancel
+
+
+ All
+
+
+ Clear schedule
+
+
+ Schedule is cleared
+
+
+ This action will purge exported schedule from all available calendars.
It will affect only events created by the app.
'All' - will purge all timetable events including the past ones
'Upcoming' - will affect only upcoming timetable events
+
+
+ Clear schedule
+
+
+ Upcoming
+
+
+ Unable to load schedule. Check your internet connection or try again later
+
+
+ Contacts
+
+
+ Contributors
+
+
+ ©2020 Michael Gordeev, INS, ICT-907
+
+
+ Course
+
+
+ There's no calendars on your device we can write schedule to
+
+
+ Create new calendar
+
+
+ Export from
+
+
+ Export to
+
+
+ Destination calendar
+
+
+ Developed by Michael Gordeev (ICT-907, INS) in the "Technologies of Informational and Educational Systems" Research Facility
+
+
+ Done
+
+
+ E-mail
+
+
+ Export parameters
+
+
+ Faculty
+
+
+ No schedule is available
+
+
+ 5 minutes
+
+
+ For day
+
+
+ For month
+
+
+ For semester
+
+
+ For week
+
+
+ Error: no group was selected
+
+
+ Group
+
+
+ No schedule is available
+
+
+ At the start of event
+
+
+ Error: Invalid credential
+
+
+ Error: Invalid date range
+
+
+ Leave feedback
+
+
+ Useful links
+
+
+ Loading
+
+
+ None
+
+
+ "TIES" RF
+
+
+ Password
+
+
+ Privacy policy
+
+
+ Remember
+
+
+ Set reminder for:
+
+
+ Try again
+
+
+ Report error
+
+
+ GitHub Repository
+
+
+ Schedule parameters
+
+
+ Vitaliy Moshkov, Anastasiya Godunova
+
+
+ Special thanks
+
+
+ SPbSUT
+
+
+ 10 minutes
+
+
+ (i) This doesn't affect professors' schedule
+
+
+ Today
+
+
+ Twitter
+
+
+ VKontakte
+
+
+ Website
+
+
\ No newline at end of file
diff --git a/GUT.Schedule/GUTSchedule.UWP/Strings/ru/Resources.resw b/GUT.Schedule/GUTSchedule.UWP/Strings/ru/Resources.resw
new file mode 100644
index 0000000..a5ca14f
--- /dev/null
+++ b/GUT.Schedule/GUTSchedule.UWP/Strings/ru/Resources.resw
@@ -0,0 +1,318 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ О приложении
+
+
+ О приложении
+
+
+ Добавить номер группы в заголовок
+
+
+ Добавить расписание
+
+
+ Приложение для экспорта перподавательского и учебного расписаний Санкт-Петербургского Государственного Университета Телекоммуникаций им. проф. М.А. Бонч-Бруевича
+
+
+ Приложение для экспорта расписания СПбГУТ в календарь
+
+
+ ГУТ.Расписание
+
+
+ ГУТ.Расписание
+
+
+ Авторизоваться через Личный кабинет
+
+
+ Экспортирование в календарь
+
+
+ Отмена
+
+
+ Все
+
+
+ Очистить расписание
+
+
+ Расписание очищено
+
+
+ Это действие удалит экспортированное расписание из всех доступных календарей.
Данное действие затронет только расписание, экспортированное этим приложением
'Все' - удалит все события расписания, включая прошедшие
'Только новые' - удалит будущие события расписания
+
+
+ Очистка расписания
+
+
+ Только новые
+
+
+ Невозможно загрузить расписание. Проверьте интернет-соединение или попробуйте позже
+
+
+ Контакты
+
+
+ Свой вклад в разработку внесли
+
+
+ ©2020 Михаил Гордеев, ИКСС, ИКТ-907
+
+
+ Курс
+
+
+ На вашем устройстве нет календарей пригодных для записи расписания
+
+
+ Создайте новый календарь
+
+
+ Брать расписание с
+
+
+ По
+
+
+ Конечный календарь
+
+
+ Разработано Михаилом Гордеевым, ИКТ-907, ИКСС в Научно-образовательном центре "Технологии информационных образовательных систем"
+
+
+ Готово
+
+
+ E-mail
+
+
+ Параметры экспорта
+
+
+ Факультет
+
+
+ Нет доступного расписания
+
+
+ 5 минут
+
+
+ На день
+
+
+ На месяц
+
+
+ На семестр
+
+
+ На неделю
+
+
+ Ошибка: Не выбрана группа
+
+
+ Группа
+
+
+ Нет доступного расписания
+
+
+ Во время начала
+
+
+ Ошибка авторизации
+
+
+ Ошибка: Неправильный диапазон дат
+
+
+ Оставить отзыв
+
+
+ Полезные ссылки
+
+
+ Загрузка
+
+
+ Нет
+
+
+ НОЦ "ТИОС"
+
+
+ Пароль
+
+
+ Политика конфиденциальности
+
+
+ Запомнить
+
+
+ Напоминать за
+
+
+ Повторить
+
+
+ Сообщить об ошибке
+
+
+ Репозиторий GitHub
+
+
+ Параметры расписания
+
+
+ Виталий Мошков, Анастасия Годунова
+
+
+ Особые благодарности
+
+
+ СПбГУТ
+
+
+ 10 минут
+
+
+ (i) Не касается преподавательского расписания
+
+
+ Сегодня
+
+
+ Твиттер
+
+
+ ВКонтакте
+
+
+ Веб-сайт
+
+
\ No newline at end of file