Changeset 3371


Ignore:
Timestamp:
Jan 19, 2017, 1:53:15 PM (2 years ago)
Author:
hectorgh
Message:

this might fix whiskermenu translations

Location:
lliurex-artwork-defaults/trunk/fuentes/debian
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lliurex-artwork-defaults/trunk/fuentes/debian/changelog

    r3298 r3371  
     1lliurex-artwork-defaults (5.2-3) xenial; urgency=high
     2
     3  * This might be the one that translates whiskermenu at last
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Thu, 19 Jan 2017 13:44:38 +0100
     6
    17lliurex-artwork-defaults (5.2-2) xenial; urgency=high
    28
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-common.postinst

    r3293 r3371  
    1111        PKG="lliurex-artwork-defaults-common"
    1212
    13         #ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
    14         #NEW_DIVERTED_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
     13        ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
     14        NEW_DIVERTED_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
    1515
    16         # NEW FILES     
    17         ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo"
    18         NEW_DIVERTED_ES_FILE="/usr/share/locale/es/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo.diverted"
     16       
     17        ORIGINAL_WHISKER_ES_FILE1="/usr/share/locale/es/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo"
     18        NEW_DIVERTED_ES_FILE1="/usr/share/locale/es/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo.diverted"
    1919
    2020        LLIUREX_ES_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/es/xfce4-whiskermenu-plugin.mo"
    2121
    22         #ORIGINAL_WHISKER_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
    23         #NEW_DIVERTED_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
     22        ORIGINAL_WHISKER_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
     23        NEW_DIVERTED_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
    2424
    25         ORIGINAL_WHISKER_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo"
    26         NEW_DIVERTED_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo.diverted"
     25        ORIGINAL_WHISKER_CA_FILE1="/usr/share/locale/ca/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo"
     26        NEW_DIVERTED_CA_FILE1="/usr/share/locale/ca/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo.diverted"
    2727
    2828        LLIUREX_CA_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/ca/xfce4-whiskermenu-plugin.mo"
     
    4141
    4242        fi
     43       
     44        if [ ! -L "$ORIGINAL_WHISKER_ES_FILE1" ]; then
     45
     46                dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_ES_FILE1" "$ORIGINAL_WHISKER_ES_FILE1"
     47                ln -s "$LLIUREX_ES_FILE" "$ORIGINAL_WHISKER_ES_FILE1"
     48
     49        fi
     50
     51        if [ ! -f "$ORIGINAL_WHISKER_CA_FILE1" ]; then
     52
     53                dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_CA_FILE1" "$ORIGINAL_WHISKER_CA_FILE1"
     54                ln -s "$LLIUREX_CA_FILE" "$ORIGINAL_WHISKER_CA_FILE1"
     55
     56        fi
    4357
    4458
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-common.prerm

    r3293 r3371  
    77        PKG="lliurex-artwork-defaults-common"
    88
    9         #ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
    10         #NEW_DIVERTED_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
    11         #LLIUREX_ES_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/es/xfce4-whiskermenu-plugin.mo"
    12 
    13         #ORIGINAL_WHISKER_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
    14         #NEW_DIVERTED_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
    15         #LLIUREX_CA_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/ca/xfce4-whiskermenu-plugin.mo"
     9        ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
     10        NEW_DIVERTED_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
     11        ORIGINAL_WHISKER_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
     12        NEW_DIVERTED_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
     13       
    1614
    1715
    18         ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo"
    19         NEW_DIVERTED_ES_FILE="/usr/share/locale/es/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo.diverted"
    20         LLIUREX_ES_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/es/xfce4-whiskermenu-plugin.mo"
    21 
    22         ORIGINAL_WHISKER_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo"
    23         NEW_DIVERTED_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo.diverted"
    24         LLIUREX_CA_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/ca/xfce4-whiskermenu-plugin.mo"
    25 
     16        ORIGINAL_WHISKER_ES_FILE1="/usr/share/locale/es/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo"
     17        NEW_DIVERTED_ES_FILE1="/usr/share/locale/es/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo.diverted"
     18        ORIGINAL_WHISKER_CA_FILE1="/usr/share/locale/ca/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo"
     19        NEW_DIVERTED_CA_FILE1="/usr/share/locale/ca/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo.diverted"
     20       
    2621
    2722        if [ -L "$ORIGINAL_WHISKER_ES_FILE" ]; then
     
    3732
    3833        fi
     34       
     35        if [ -L "$ORIGINAL_WHISKER_ES_FILE1" ]; then
     36                rm -rf "$ORIGINAL_WHISKER_ES_FILE1" || true
     37                dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_ES_FILE1" "$ORIGINAL_WHISKER_ES_FILE1"
     38
     39        fi
     40
     41        if [ -L "$ORIGINAL_WHISKER_CA_FILE1" ]; then
     42
     43                rm -rf "$ORIGINAL_WHISKER_CA_FILE1" || true
     44                dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_CA_FILE1" "$ORIGINAL_WHISKER_CA_FILE1"
     45
     46        fi
    3947
    4048
Note: See TracChangeset for help on using the changeset viewer.