+/* Mensa.java
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
package de.dhbwloe.campusapp.fragments;
-
-
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import de.dhbwloe.campusapp.CampusAppFragment;
import de.dhbwloe.campusapp.R;
+import de.dhbwloe.campusapp.Tools;
import de.dhbwloe.campusapp.search.SearchIndices;
/**
new SearchIndices("Mensa", true) {{
setUpdateTime(1);
setTarget("#Mensa");
- setTitle("Mensa");
- setDescription("Aktuelle Mensapläne");
- addKeyWord("mensa, kantine, essen, mittagessen, mensaplan, plan, hunger, mittag");
+ setTitle(R.string.search_mensa_title);
+ setDescription(R.string.search_mensa_description);
+ addKeyWord(R.string.search_mensa_keywords);
}},
};
}
}
}
- AppContext.setTitle("Mensa Speiseplan");
+ AppContext.setTitle(AppContext.getResString(R.string.mensa_title));
/*
toolbar = (Toolbar) view.findViewById(R.id.toolbar);
if(viewDate < now)
now = viewDate;
- int weekdayResIds[] = new int[] { R.string.week_monday_short, R.string.week_tuesday_short, R.string.week_wednesday_short, R.string.week_thursday_short, R.string.week_friday_short, R.string.week_saturday_short, R.string.week_sunday_short };
Calendar cal = Calendar.getInstance();
cal.setTime(new Date(now * 1000));
cal.set(Calendar.HOUR_OF_DAY, 0);
}
lastWeekday = weekday;
- title = AppContext.getResString(weekdayResIds[weekday]);
+ title = Tools.getWeekdayString(date, false);
bundle.putLong("date", date);
adapter.addFragment(bundle, title);
}