#!/bin/sh -e SYSTEM_CONFIG_SCRIPT="/usr/lib/libreoffice/share/registry/res/registry_ca.xcd" OUR_BINARY="/usr/lib/libreoffice/share/registry/res/registry_qcv.xcd" SYSTEM_TR_SCRIPT="/usr/lib/libreoffice/program/resource/sfxca.res" OUR_TR_SCRIPT="/usr/lib/libreoffice/program/resource/sfxqcv.res" SYSTEM_SFX_UI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/sfx/ui/res/ca.zip" OUR_SFX_UI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/sfx/ui/res/qcv.zip" SYSTEM_FILTER_UI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/filter/ui/res/ca.zip" OUR_FILTER_UI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/filter/ui/res/qcv.zip" SYSTEM_CUI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/cui/ui/res/ca.zip" OUR_CUI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/cui/ui/res/qcv.zip" SYSTEM_SWRITER_UI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/modules/swriter/ui/res/ca.zip" OUR_SWRITER_UI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/modules/swriter/ui/res/qcv.zip" # Smart # SMART_SYSTEM_CONFIG_SCRIPT="/opt/SMART\ Technologies/Notebook\ Software/bin/notebook" # SMART_OUR_BINARY="/usr/bin/notebook.lliurex" # Musescore # MSCORE_SYSTEM_CONFIG_SCRIPT="/usr/share/mscore-1.3/locale/mscore_ca.qm" # MSCORE_OUR_BINARY="/usr/share/mscore-1.3/locale/mscore_ca@valencia.qm" if [ "$1" = "configure" ]; then /usr/share/locales/install-language-pack "qcv" "gnome" "$2" || true /usr/share/locales/install-language-pack "ca_ES.UTF-8@valencia" "gnome" "$2" || true #lliurex-language-fixer update-rc.d lliurex-language-fixer start 20 2 3 4 5 . # lliurex libreoffice dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --add --divert ${SYSTEM_CONFIG_SCRIPT}.real ${SYSTEM_CONFIG_SCRIPT} ln -fs ${OUR_BINARY} ${SYSTEM_CONFIG_SCRIPT} dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --add --divert ${SYSTEM_TR_SCRIPT}.real ${SYSTEM_TR_SCRIPT} ln -fs ${OUR_TR_SCRIPT} ${SYSTEM_TR_SCRIPT} dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --add --divert ${SYSTEM_SFX_UI_SCRIPT}.real ${SYSTEM_SFX_UI_SCRIPT} ln -fs ${OUR_SFX_UI_SCRIPT} ${SYSTEM_SFX_UI_SCRIPT} dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --add --divert ${SYSTEM_FILTER_UI_SCRIPT}.real ${SYSTEM_FILTER_UI_SCRIPT} ln -fs ${OUR_FILTER_UI_SCRIPT} ${SYSTEM_FILTER_UI_SCRIPT} dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --add --divert ${SYSTEM_CUI_SCRIPT}.real ${SYSTEM_CUI_SCRIPT} ln -fs ${OUR_CUI_SCRIPT} ${SYSTEM_CUI_SCRIPT} dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --add --divert ${SYSTEM_SWRITER_UI_SCRIPT}.real ${SYSTEM_SWRITER_UI_SCRIPT} ln -fs ${OUR_SWRITER_UI_SCRIPT} ${SYSTEM_SWRITER_UI_SCRIPT} # lliurex musescore #dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --add --divert ${MSCORE_SYSTEM_CONFIG_SCRIPT}.real ${MSCORE_SYSTEM_CONFIG_SCRIPT} #ln -fs ${MSCORE_OUR_BINARY} ${MSCORE_SYSTEM_CONFIG_SCRIPT} # lliurex-smart #dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --add --divert ${SMART_SYSTEM_CONFIG_SCRIPT}.real ${SMART_SYSTEM_CONFIG_SCRIPT} #ln -fs ${SMART_OUR_BINARY} ${SMART_SYSTEM_CONFIG_SCRIPT} fi #DEBHELPER# exit 0