tis-add-fr-locale 13

  • package : tis-add-fr-locale
  • version : 13
  • description : Ajout de fr a la section locales du wapt-get.ini des agents
  • maintainer : wapt.lesfourmisduweb.org
  • date : 2018-04-10 16:17:02

setup.py

#!/usr/bin/python

from setuphelpers import *

uninstallkey=[]

newlocale = 'fr'

def install():
    print WAPT.locales
    if not newlocale in WAPT.locales:
        WAPT.locales.append(newlocale)
        inifile_writestring(WAPT.config_filename,'global','locales',','.join(WAPT.locales))

def uninstall():
    if newlocale in WAPT.locales:
        WAPT.locales.remove(newlocale)
        inifile_writestring(WAPT.config_filename,'global','locales',','.join(WAPT.locales))

    if not inifile_readstring(WAPT.config_filename,'global','locales',','.join(WAPT.locales)) :
        inifile_deleteoption(WAPT.config_filename,'global','locales')

    

Changelog

No changelog
    

manifest.sha256

[["setup.py", "1121ec7727b6d1cad01c7adbcc81d13dbfe1c7f99431ba0031f74123f0450c18"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/icon.png", "611ac64556c71b79d18ea1cb1f624a7075a5f5e245ce04cd613de22d5829f2ac"], ["WAPT/control", "6ce95b6d2396f15541113bdb8a9dd9f797337433741e4d739007a27c4bcf2a94"], ["WAPT/wapt.psproj", "b6db619daee03b47d37e5766a6a743091bfd8efc2ddada421708ae7d2d044ac0"]]