Logo: lanre

master
Justyna Ilczuk 2012-12-25 15:05:07 +01:00
parent 765c37829a
commit b30a5f614e
5 changed files with 108 additions and 2 deletions

View File

@ -102,6 +102,7 @@ def get_exact_translation(retrieved_json):
response = "No translation"
return response
def fetch_translations(retrieved_json):
response = ""
if(retrieved_json["term0"]["PrincipalTranslations"]["0"]["FirstTranslation"]["term"] != ""):

BIN
lanre_py/static/lanre.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

105
lanre_py/static/lanre.svg Normal file
View File

@ -0,0 +1,105 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="744.09448819"
height="1052.3622047"
id="svg2"
version="1.1"
inkscape:version="0.48.3.1 r9886"
sodipodi:docname="lanre.svg">
<defs
id="defs4">
<pattern
inkscape:stockid="Stripes 1:1"
id="Strips1_1"
patternTransform="translate(0,0) scale(10,10)"
height="1"
width="2"
patternUnits="userSpaceOnUse"
inkscape:collect="always">
<rect
id="rect4506"
height="2"
width="1"
y="-0.5"
x="0"
style="fill:black;stroke:none" />
</pattern>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.979899"
inkscape:cx="326.62985"
inkscape:cy="715.99506"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1440"
inkscape:window-height="845"
inkscape:window-x="-5"
inkscape:window-y="-10"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="g5284">
<path
sodipodi:nodetypes="cccsssccccsscccc"
d="m 133.65126,305.42431 5.48814,13.13199 c -2.376,5.616 -4.82615,8.85816 -7.34615,11.16215 -2.952,2.664 -6.98401,3.96 -12.528,3.96 -4.392,0 -14.89328,0.42393 -15.86153,-2.51677 -3.778633,-11.47617 1.31369,-38.17384 9.09138,-45.09568 4.03385,-3.58997 10.09938,-9.87153 8.28215,2.97245 l 12.12183,-23.51828 -37.24983,21.71828 0,1.8 c 4.896,0.288 5.40951,1.51386 4.67677,5.112 -2.33197,11.45126 -2.920393,18.26407 -5.050762,28.28201 -0.84387,3.96825 -1.424417,9.44808 -6.697076,10.16276 l -3.535534,15.43706 c 13.803124,-4.99722 27.517632,-10.79193 42.626152,-4.04061 l 17.09414,-25.43537"
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:url(#Strips1_1);fill-opacity:1;stroke:#003a7f;font-family:Nimbus Roman No9 L;-inkscape-font-specification:Nimbus Roman No9 L Bold;stroke-opacity:1;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none"
id="path2994"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="csssssssscaasccsscscccsscc"
d="m 176.431,331.30245 -0.72,0.72 c -0.216,0.216 0.21815,0.0355 0.21815,0.0355 1.69717,-0.56213 -1.7556,-2.4074 -2.52215,-1.54746 -8.82616,9.90147 -5.88981,-14.61758 -6.06092,-22.32753 -0.13052,-5.88168 -6.2425,-11.55055 -11.22554,-11.37923 -8.13118,0.27955 -10.57754,8.72277 -10.57754,14.12276 0,2.952 1.728,4.752 4.68,4.752 2.88,0 4.13839,-0.71785 4.13839,-3.16585 0,-1.008 -0.93708,0.83392 -1.80108,-0.31808 -3.67846,3.06807 -2.52435,-5.3662 -1.62162,-7.89745 0.47256,-1.32504 1.86755,-2.71777 3.27331,-2.664 4.28628,0.16394 9.331,2.18855 9.331,8.86138 l 0,5.256 c -8.56799,2.592 -12.096,4.03201 -14.76,5.832 -3.096,2.16 -7.13338,7.13339 -7.13338,10.22938 0,4.392 5.90938,5.10662 10.51738,5.10662 4.104,0 7.416,-1.44 11.376,-5.04 0.792,3.672 2.376,5.04 5.904,5.04 3.096,0 5.328,-1.152 8.064,-4.104 l -1.08,-1.512 m -12.96,-2.592 c -1.944,2.232 -3.384,3.096 -5.112,3.096 -2.16,0 -8.72276,-0.93385 -8.72276,-3.81385 0,-4.17599 8.07477,-8.21015 13.83476,-9.72215 l 0,10.44"
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Nimbus Roman No9 L;-inkscape-font-specification:Nimbus Roman No9 L Bold"
id="path2996"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="cccssacccsscsscccccssscc"
d="m 193.639,302.71845 -13.752,0 0,1.728 c 3.168,0.504 3.44504,-0.64102 5.33123,1.72262 5.63069,7.056 -1.51492,16.63738 -1.51523,23.69338 -1.3e-4,3.024 -0.95486,7.31932 -0.28046,10.88599 0.965,5.10356 6.06091,14.3549 6.06091,14.3549 0.64479,4.16953 -5.80549,-18.12937 7.75555,-19.19289 l 0,-1.728 c -2.664,-0.36 -3.60379,1.99385 -6.05338,0.94676 -10.21267,-4.36546 0.39291,-17.44027 2.52538,-24.27476 0.0858,-0.27493 0.504,-1.008 1.224,-1.656 1.584,-1.65599 3.312,-2.52 4.968,-2.52 2.52,0 6.10795,2.11798 7.27953,5.976 2.6798,8.82451 0.65761,12.94704 -0.50507,17.92908 0,0 -3.96646,3.31092 -6.41446,3.59892 l 0,1.728 16.92,0 0,-1.728 c -2.808,-0.216 -3.528,-1.08 -3.528,-4.104 l 0,-18.072 c 0,-6.19199 -3.81601,-10.152 -9.72,-10.152 -4.32,0 -7.632,2.01601 -10.296,6.264 l 0,-5.4"
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Nimbus Roman No9 L;-inkscape-font-specification:Nimbus Roman No9 L Bold"
id="path2998"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="cccssccccsascssscc"
d="m 234.14912,302.71845 -13.608,0 -3.53553,7.78892 c 3.096,-5.04915 14.18813,-7.45223 12.47429,-2.82307 -3.50512,9.46748 -9.13607,14.40005 -7.07107,21.168 0.86149,2.8235 1.30031,4.75415 -1.86769,5.33015 l 2.02031,19.91075 c -0.0729,-13.55768 6.80321,-20.22723 17.13169,-18.18275 l 0,-1.728 c -4.39199,-0.288 -1.83059,-3.66571 -6.26615,-3.16262 -10.64015,1.20684 -4.83912,-9.44182 -3.53554,-14.11307 1.12761,-4.04068 6.5617,-8.86031 8.93769,-8.86031 0.576,0 4.25447,-1.01123 5.04646,0.14077 1.368,1.944 -0.58245,4.10723 1.28954,4.10723 2.664,0 4.536,-2.016 4.536,-4.824 0,-3.23999 -2.448,-5.616 -5.832,-5.616 -3.59999,0 -6.336,1.94401 -9.72,6.768 l 0,-5.904"
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Nimbus Roman No9 L;-inkscape-font-specification:Nimbus Roman No9 L Bold"
id="path3000"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="csccccsssaccscccc"
d="m 290.43068,322.36476 c 3.51147,7.52267 -8.93286,16.60088 -16.7943,16.44076 -2.63932,-0.0538 -9.94677,0.0931 -11.45877,-5.33123 -3.63526,-2.88881 -2.37601,-10.99319 0.36539,-15.20384 l 18.144,0 c -0.432,-6.04799 -1.512,-9.432 -3.816,-12.168 -2.376,-2.80799 -5.688,-4.248 -9.648,-4.248 -8.99999,0 -15.048,7.12801 -15.048,17.64 0,10.51199 -0.18977,16.57818 8.77108,23.98999 12.06633,9.98045 23.03872,-1.75435 30.20245,-9.50507 6.91793,-7.48479 5.8914,-22.79043 6.85829,-29.79735 M 262.183,315.60645 c 0.216,-8.63999 1.512,-11.52 5.04,-11.52 2.016,0 3.384,1.15201 3.96,3.384 0.36,1.368 0.504,3.38401 0.648,7.056 l 0,1.08 c -3.216,-2.6311 -6.432,-4.03893 -9.648,0"
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:url(#Strips1_1);fill-opacity:1;stroke:#003a7f;font-family:Nimbus Roman No9 L;-inkscape-font-specification:Nimbus Roman No9 L Bold;stroke-opacity:1;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-linejoin:miter"
id="path3002"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -39,7 +39,7 @@
<div class="span2">
<h3>Tips:</h3>
<h4>Tips and info:</h4>
<p id="communicates" class="alert alert-info"></p>
<h3 id="translation-label">Translation:</h3>
<div id="current-translation" class="alert alert-success"></div>

View File

@ -21,7 +21,7 @@
<div class="hero-unit">
<div class="row-fluid">
<div class="span4">
<h1 >Lanre</h1>
<img src="{{ url_for('static', filename='lanre.png') }}"/>
</div>
<div class="span8">