source: lliurex-store/trunk/fuentes/lliurex-po/generate_categories_po.py @ 4131

Last change on this file since 4131 was 4131, checked in by hectorgh, 2 years ago

starting translation support

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