~duanedesign/clicompanion/clicompanion.dragndrop

« back to all changes in this revision

Viewing changes to clicompanion

  • Committer: duanedesign
  • Date: 2011-03-18 15:46:30 UTC
  • Revision ID: duanedesign@gmail.com-20110318154630-h3419wkt7z3k3pff
drag and drop in command list

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    BASEDIR = os.path.abspath(os.path.dirname(os.path.realpath(sys.argv[0])))
16
16
    print "using locale in source code folder"
17
17
 
 
18
 
18
19
parser = OptionParser()
19
20
parser.add_option("-f", "--file", dest="filename",
20
21
                  help="write report to FILE", metavar="FILE")
25
26
(options, args) = parser.parse_args()
26
27
 
27
28
 
28
 
 
29
29
def get_language():
30
30
    """Return the language to be used by the system.
31
31
 
38
38
    if loc in traducidos:
39
39
        return loc
40
40
    return
 
41
    
41
42
 
42
43
locale_dir = os.path.join(BASEDIR, "locale")
43
44
gettext.install('clicompanion', locale_dir, unicode=True)
50
51
    trans = gettext.translation('clicompanion', locale_dir, languages=[idioma])
51
52
    trans.install(unicode=True)
52
53
 
 
54
 
53
55
if __name__ == "__main__":
54
56
    run()