[gnome-getting-started-docs] support comments in language whitelist.
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-getting-started-docs] support comments in language whitelist.
- Date: Mon, 13 May 2013 15:26:47 +0000 (UTC)
commit 5a6106a2c251e4ea455377143ef70ff97d8a3917
Author: Jakub Steiner <jimmac gmail com>
Date: Tue May 7 16:30:55 2013 +0200
support comments in language whitelist.
+ some .blend animated layer glitch fix
animation/gnome-change-wallpaper.py | 7 ++++-
animation/gnome-launching-applications.blend | Bin 1647124 -> 1610220 bytes
animation/gnome-launching-applications.py | 21 ++++++++++++-------
animation/gnome-responding-to-messages.py | 27 +++++++++++++++----------
animation/gnome-task-switching.py | 22 +++++++++++++-------
animation/gnome-timezone.py | 7 ++++-
animation/gnome-windows-and-workspaces.blend | Bin 4185916 -> 4215204 bytes
animation/gnome-windows-and-workspaces.py | 21 ++++++++++++-------
animation/gnome-yelp-intro.py | 23 +++++++++++++--------
animation/gnomerender.py | 1 +
10 files changed, 81 insertions(+), 48 deletions(-)
---
diff --git a/animation/gnome-change-wallpaper.py b/animation/gnome-change-wallpaper.py
index b450bcb..9b76d9d 100644
--- a/animation/gnome-change-wallpaper.py
+++ b/animation/gnome-change-wallpaper.py
@@ -8,8 +8,9 @@ def main():
langs = open('language-whitelist.txt').readlines()
for lang in langs:
lang = lang.strip()
- xmlfile = ET.parse('../gnome-help/' + lang + '/gs-animation.xml')
- t[lang] = xmlfile.getroot()
+ 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'):
@@ -21,3 +22,5 @@ def main():
if __name__ == '__main__':
main()
+
+# vim: tabstop=2 expandtab
diff --git a/animation/gnome-launching-applications.blend b/animation/gnome-launching-applications.blend
index 92c7e4d..69dee96 100644
Binary files a/animation/gnome-launching-applications.blend and
b/animation/gnome-launching-applications.blend differ
diff --git a/animation/gnome-launching-applications.py b/animation/gnome-launching-applications.py
index 2202e37..7225e62 100644
--- a/animation/gnome-launching-applications.py
+++ b/animation/gnome-launching-applications.py
@@ -10,15 +10,20 @@ def main():
for lang in langs:
lang = lang.strip()
#t[lang] = yaml.load(open('translations/'+file))
- 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)
+ 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)
if __name__ == '__main__':
main()
+# vim: tabstop=2 expandtab
diff --git a/animation/gnome-responding-to-messages.py b/animation/gnome-responding-to-messages.py
index cccc77f..abfdad4 100644
--- a/animation/gnome-responding-to-messages.py
+++ b/animation/gnome-responding-to-messages.py
@@ -8,17 +8,22 @@ def main():
langs = open('language-whitelist.txt').readlines()
for lang in langs:
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="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)
+ 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)
if __name__ == '__main__':
main()
+
+# vim: tabstop=2 expandtab
diff --git a/animation/gnome-task-switching.py b/animation/gnome-task-switching.py
index 05f2fcb..7eeaa2c 100644
--- a/animation/gnome-task-switching.py
+++ b/animation/gnome-task-switching.py
@@ -8,14 +8,20 @@ def main():
langs = open('language-whitelist.txt').readlines()
for lang in langs:
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)
+ 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)
if __name__ == '__main__':
main()
+
+# vim: tabstop=2 expandtab
diff --git a/animation/gnome-timezone.py b/animation/gnome-timezone.py
index 06a53eb..fedbd94 100644
--- a/animation/gnome-timezone.py
+++ b/animation/gnome-timezone.py
@@ -8,8 +8,9 @@ def main():
langs = open('language-whitelist.txt').readlines()
for lang in langs:
lang = lang.strip()
- xmlfile = ET.parse('../gnome-help/' + lang + '/gs-animation.xml')
- t[lang] = xmlfile.getroot()
+ 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'):
@@ -20,3 +21,5 @@ def main():
if __name__ == '__main__':
main()
+
+# vim: tabstop=2 expandtab
diff --git a/animation/gnome-windows-and-workspaces.blend b/animation/gnome-windows-and-workspaces.blend
index 95dd2dd..b0eeb78 100644
Binary files a/animation/gnome-windows-and-workspaces.blend and
b/animation/gnome-windows-and-workspaces.blend differ
diff --git a/animation/gnome-windows-and-workspaces.py b/animation/gnome-windows-and-workspaces.py
index 235a221..adc7c45 100644
--- a/animation/gnome-windows-and-workspaces.py
+++ b/animation/gnome-windows-and-workspaces.py
@@ -9,14 +9,19 @@ def main():
#unfortunately no decent fonts have ↲
langs = open('language-whitelist.txt').readlines()
for lang in langs:
- 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
- gnomerender.render(lang)
- gnomerender.transcode(lang)
+ 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
+ gnomerender.render(lang)
+ gnomerender.transcode(lang)
if __name__ == '__main__':
main()
+
+# vim: tabstop=2 expandtab
diff --git a/animation/gnome-yelp-intro.py b/animation/gnome-yelp-intro.py
index abfc9e8..e9e07ee 100644
--- a/animation/gnome-yelp-intro.py
+++ b/animation/gnome-yelp-intro.py
@@ -7,15 +7,20 @@ def main():
#unfortunately no decent fonts have ↲
langs = open('language-whitelist.txt').readlines()
for lang in langs:
- 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="search"]').text
- gnomerender.render(lang)
- gnomerender.transcode(lang)
+ 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="search"]').text
+ gnomerender.render(lang)
+ gnomerender.transcode(lang)
if __name__ == '__main__':
main()
+
+# vim: tabstop=2 expandtab
diff --git a/animation/gnomerender.py b/animation/gnomerender.py
index 0701ac7..853ff7b 100644
--- a/animation/gnomerender.py
+++ b/animation/gnomerender.py
@@ -39,3 +39,4 @@ def transcode(lang):
else:
print('already transcoded',transcodepath + webmfile)
+# vim: tabstop=2 expandtab
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]