Esempio n. 1
0
 def get_xml(self, lang=None, kind='strings', raw=False):
     dirname = 'values'
     if lang:
         dirname = "%s-%s" % (dirname, lang)
     filename = self.p(self.resource_dir, dirname, '%s.xml' % kind)
     if raw:
         return open(filename).read()
     else:
         return read_xml(filename)
Esempio n. 2
0
 def get_xml(self, lang=None, kind='strings', raw=False):
     dirname = 'values'
     if lang:
         dirname = "%s-%s" % (dirname, lang)
     filename = self.p(self.resource_dir, dirname, '%s.xml' % kind)
     if raw:
         return open(filename).read()
     else:
         return read_xml(filename)
Esempio n. 3
0
 def get_xml(self, lang=None, kind="strings"):
     dirname = "values"
     if lang:
         dirname = "%s-%s" % (dirname, lang)
     filename = self.p(self.resource_dir, dirname, "%s.xml" % kind)
     return read_xml(filename)
Esempio n. 4
0
 def get_xml(self, lang=None, kind='strings'):
     dirname = 'values'
     if lang:
         dirname = "%s-%s" % (dirname, lang)
     filename = self.p(self.resource_dir, dirname, '%s.xml' % kind)
     return read_xml(filename)