Exemplo n.º 1
0
def main():
    global typewrite

    t = {}
    #unfortunately no decent fonts have ↲
    langs = open('language-whitelist.txt').readlines()
    for lang in langs:
        lang = lang.strip()
        #t[lang] = yaml.load(open('translations/'+file))
        if (lang[0] == "#"):
            pass
        else:
            xmlfile = ET.parse('../gnome-help/' + lang + '/gs-animation.xml')
            t[lang] = xmlfile.getroot()

            for textobj in t[lang].findall('t'):
                if textobj.get(
                        'id'
                ) in bpy.data.objects:  #prelozit jestli existuje jako index
                    bpy.data.objects[textobj.get(
                        'id')].data.body = textobj.text
            bpy.data.objects['typewriter'].data.body = t[lang].find(
                't[@id="search"]').text
            gnomerender.render(lang)
            gnomerender.transcode(lang)
def main():
  
  t = {}
  #unfortunately no decent fonts have ↲
  langs = open('language-whitelist.txt').readlines()
  for lang in langs:
    lang = lang.strip()
    if (not lang[0]=="#"):
      xmlfile = ET.parse('../gnome-help/' + lang + '/gs-animation.xml')
      t[lang] = xmlfile.getroot()
  
  for lang in t:
    for textobj in t[lang].findall('t'):
      if textobj.get('id') in bpy.data.objects: #prelozit jestli existuje jako index
        bpy.data.objects[textobj.get('id')].data.body = textobj.text
    gnomerender.render(lang)
    gnomerender.transcode(lang)
def main():

    t = {}
    # unfortunately no decent fonts have ↲
    langs = open("language-whitelist.txt").readlines()
    for lang in langs:
        lang = lang.strip()
        if not lang[0] == "#":
            xmlfile = ET.parse("../gnome-help/" + lang + "/gs-animation.xml")
            t[lang] = xmlfile.getroot()

    for lang in t:
        for textobj in t[lang].findall("t"):
            if textobj.get("id") in bpy.data.objects:  # prelozit jestli existuje jako index
                bpy.data.objects[textobj.get("id")].data.body = textobj.text
        gnomerender.render(lang)
        gnomerender.transcode(lang)
def main():
  
  t = {}
  #unfortunately no decent fonts have ↲
  langs = open('language-whitelist.txt').readlines()
  for lang in langs:
    lang = lang.strip()
    if (not lang[0]=="#"):
      xmlfile = ET.parse('../gnome-help/' + lang + '/gs-animation.xml')
      t[lang] = xmlfile.getroot()
  
  for lang in t:
    for textobj in t[lang].findall('t'):
      if textobj.get('id') in bpy.data.objects: #prelozit jestli existuje jako index
        bpy.data.objects[textobj.get('id')].data.body = textobj.text
    bpy.data.objects['usermenuuser'].data.body = bpy.data.objects['user'].data.body #due to different alignment
    gnomerender.render(lang)
    gnomerender.transcode(lang)
def main():
  
  t = {}
  #unfortunately no decent fonts have ↲
  langs = open('language-whitelist.txt').readlines()
  for lang in langs:
    lang = lang.strip()
    if (lang[0]=="#"):
      pass
    else:
      lang = lang.strip()
      xmlfile = ET.parse('../gnome-help/' + lang + '/gs-animation.xml')
      t[lang] = xmlfile.getroot()
      for textobj in t[lang].findall('t'):
        if textobj.get('id') in bpy.data.objects: #prelozit jestli existuje jako index
          bpy.data.objects[textobj.get('id')].data.body = textobj.text
      bpy.data.objects['typewriter'].data.body = t[lang].find('t[@id="search2"]').text
      gnomerender.render(lang)
      gnomerender.transcode(lang)
Exemplo n.º 6
0
def main():
  
  t = {}
  #unfortunately no decent fonts have ↲
  langs = open('language-whitelist.txt').readlines()
  for lang in langs:
    lang = lang.strip()
    if (lang[0]=="#"):
      pass
    else:
      xmlfile = ET.parse('../gnome-help/' + lang + '/gs-animation.xml')
      t[lang] = xmlfile.getroot()
      for textobj in t[lang].findall('t'):
        if textobj.get('id') in bpy.data.objects: #prelozit jestli existuje jako index
          bpy.data.objects[textobj.get('id')].data.body = textobj.text
      bpy.data.objects['typewriter'].data.body = t[lang].find('t[@id="bubble.response"]').text
      bpy.data.objects['typewriter2'].data.body = t[lang].find('t[@id="bubble.response2"]').text
      bpy.data.objects['typewriter3'].data.body = t[lang].find('t[@id="bubble.response3"]').text
      #bpy.data.objects['user.mt.bubble'].data.body = bpy.data.objects['user'].data.body #needs to be left aligned :/
      gnomerender.render(lang)
      gnomerender.transcode(lang)
def main():

    t = {}
    # unfortunately no decent fonts have ↲
    langs = open("language-whitelist.txt").readlines()
    for lang in langs:
        lang = lang.strip()
        if lang[0] == "#":
            pass
        else:
            xmlfile = ET.parse("../gnome-help/" + lang + "/gs-animation.xml")
            t[lang] = xmlfile.getroot()
            for textobj in t[lang].findall("t"):
                if textobj.get("id") in bpy.data.objects:  # prelozit jestli existuje jako index
                    bpy.data.objects[textobj.get("id")].data.body = textobj.text
            bpy.data.objects["typewriter"].data.body = t[lang].find('t[@id="bubble.response"]').text
            # bpy.data.objects['typewriter2'].data.body = t[lang].find('t[@id="bubble.response2"]').text
            # bpy.data.objects['typewriter3'].data.body = t[lang].find('t[@id="bubble.response3"]').text
            # bpy.data.objects['user.mt.bubble'].data.body = bpy.data.objects['user'].data.body #needs to be left aligned :/
            gnomerender.render(lang)
            gnomerender.transcode(lang)