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

Last change on this file since 4324 was 4322, checked in by Juanma, 2 years ago

CLI: WIP on locale

  • Property svn:executable set to *
File size: 389 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
13for item in errorCodes:
14        f.write(skel%errorCodes[item])
15               
16f.close()
17               
18       
19       
20       
21
Note: See TracBrowser for help on using the repository browser.