summarylogtreecommitdiffstats
path: root/idos-timetable-browser.install
diff options
context:
space:
mode:
authorfelics@felics-tablet2016-05-20 10:24:23 +0200
committerfelics@felics-tablet2016-05-20 10:24:23 +0200
commit891e4cad1e0f38cf5ab40b87822bb33989420d76 (patch)
tree57133262a374b176e23b37c2b42fd816451cc947 /idos-timetable-browser.install
parent55a6345b709659e2274d62bed8587a9ab6d24752 (diff)
downloadaur-891e4cad1e0f38cf5ab40b87822bb33989420d76.tar.gz
Added information about locales, starting with Czech locale if installed, in order to display diacritical characters correctly.
Diffstat (limited to 'idos-timetable-browser.install')
-rw-r--r--idos-timetable-browser.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/idos-timetable-browser.install b/idos-timetable-browser.install
new file mode 100644
index 00000000000..0549175405b
--- /dev/null
+++ b/idos-timetable-browser.install
@@ -0,0 +1,19 @@
+post_install() {
+ if locale -a | grep -Eq '^cs_CZ'; then
+ echo "====> A Czech locale (cs_CZ*) seems to be present. Fine. please keep it in order"
+ echo "<==== to keep diacritical characters displaying correctly."
+ else
+ echo "====> It is recommended to generate the locale cs_CZ.ISO.UTF-8 or cs_CZ.ISO-8859-2"
+ echo " in order to display diacritical characters correctly."
+ echo " In order to do so, edit /etc/locale.gen, if present /etc/locale.nopurge, and"
+ echo "<==== then run locale-gen."
+ fi
+}
+
+post_upgrade() {
+ post_install "$@"
+}
+
+post_remove() {
+ true
+}