plcopen/definitions.py
changeset 1762 fcc406143e5b
parent 1749 d73b64672238
child 1782 5b6ad7a7fd9d
equal deleted inserted replaced
1761:8c98bad90b8d 1762:fcc406143e5b
    24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    25 
    25 
    26 
    26 
    27 from os.path import join, split, realpath
    27 from os.path import join, split, realpath
    28 import util.paths as paths
    28 import util.paths as paths
       
    29 from util.TranslationCatalogs import NoTranslate
    29 sd = paths.AbsDir(__file__)
    30 sd = paths.AbsDir(__file__)
    30 
    31 
    31 # Override gettext _ in this module
    32 # Override gettext _ in this module
    32 # since we just want string to be added to dictionnary
    33 # since we just want string to be added to dictionnary
    33 # but translation should happen here
    34 # but translation should happen here
    34 _ = lambda x: x
    35 _ = NoTranslate
    35 
    36 
    36 LANGUAGES = ["IL", "ST", "FBD", "LD", "SFC"]
    37 LANGUAGES = ["IL", "ST", "FBD", "LD", "SFC"]
    37 
    38 
    38 LOCATIONDATATYPES = {"X": ["BOOL"],
    39 LOCATIONDATATYPES = {"X": ["BOOL"],
    39                      "B": ["SINT", "USINT", "BYTE", "STRING"],
    40                      "B": ["SINT", "USINT", "BYTE", "STRING"],