Changeset e627c81 in osmose-backend


Ignore:
Timestamp:
Dec 13, 2014 5:17:58 PM (5 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
2f7bd1b
Parents:
3b3b08a
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (13/12/2014 17:14:59)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (13/12/2014 17:17:58)
Message:

Dispatch dictionaries into specific directories

Files:
2 edited
8 moved

Legend:

Unmodified
Added
Removed
  • plugins/Administrative_INSEE_Name.py

    r3b3b08a re627c81  
    3636        self.errors[802] = { "item": 6040, "level": 1, "tag": ["place", "fix:chair"], "desc": T_(u"Municipality name does not match INSEE code") } 
    3737 
    38         lst = self.father.ToolsReadList("dictionaries/BddCommunes") 
     38        lst = self.father.ToolsReadList("dictionaries/FR/BddCommunes") 
    3939        self.communeNameIndexedByInsee = {} 
    4040 
  • plugins/Name_Dictionary_fr.py

    r3b3b08a re627c81  
    4343            if d[-1] == "~": continue 
    4444            if d[:4] != "Dico": continue 
    45             self.DictKnownWords += self.father.ToolsReadList("dictionaries/" + d) 
     45            self.DictKnownWords += self.father.ToolsReadList("dictionaries/fr/" + d) 
    4646 
    4747        # Corrections 
    48         for d in self.father.ToolsListDir("dictionaries"): 
     48        for d in self.father.ToolsListDir("dictionaries/fr"): 
    4949            if d[-1] == "~": continue 
    5050            if d[:4] != "Corr": continue 
    51             self.DictCorrections = dict( self.DictCorrections.items() + self.father.ToolsReadDict("dictionaries/" + d, ":").items() ) 
     51            self.DictCorrections = dict( self.DictCorrections.items() + self.father.ToolsReadDict("dictionaries/fr/" + d, ":").items() ) 
    5252 
    5353        # Common words 
    54         self.DictCommonWords = [""] + [ x for x in self.father.ToolsReadList("dictionaries/ResultCommonWords") if x in self.DictKnownWords] 
     54        self.DictCommonWords = [""] + [ x for x in self.father.ToolsReadList("dictionaries/fr/ResultCommonWords") if x in self.DictKnownWords] 
    5555 
    5656        # Numbering en letters 
Note: See TracChangeset for help on using the changeset viewer.