source: lliurex-store/trunk/fuentes/lliurex-po/generate_cli_errors_po.py @ 4607

Last change on this file since 4607 was 4363, checked in by Juanma, 2 years ago

Refactorized search method and related plugins

  • Property svn:executable set to *
File size: 404 bytes
Line 
1#!/usr/bin/env python
2
3import json
4
5errorFile=open('/usr/share/lliurex-store/files/error.json').read()                                                                                                               
6errorCodes=json.loads(errorFile)
7
8f=open("errors.po","w")
9
10skel='msgid "%s"\n\
11msgstr ""\n\n'
12
13f.write("\n")
14
15for item in errorCodes:
16        f.write(skel%errorCodes[item])
17               
18f.close()
19               
20       
21       
22       
23
Note: See TracBrowser for help on using the repository browser.