librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1430] Add language selection widget


From: Michael Sheldon
Subject: [Librefm-commits] [1430] Add language selection widget
Date: Sat, 09 May 2009 10:06:23 +0000

Revision: 1430
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1430
Author:   elleo
Date:     2009-05-09 10:06:22 +0000 (Sat, 09 May 2009)
Log Message:
-----------
Add language selection widget
Fix some space->tab indentation

Modified Paths:
--------------
    trunk/nixtape/themes/librefm/templates/footer.tpl

Added Paths:
-----------
    trunk/nixtape/themes/librefm/templates/language-selector-full.tpl

Modified: trunk/nixtape/themes/librefm/templates/footer.tpl
===================================================================
--- trunk/nixtape/themes/librefm/templates/footer.tpl   2009-05-09 09:53:02 UTC 
(rev 1429)
+++ trunk/nixtape/themes/librefm/templates/footer.tpl   2009-05-09 10:06:22 UTC 
(rev 1430)
@@ -5,9 +5,9 @@
 
 <!-- sidebar -->
 
-       {include file='adbard.tpl'}     
+       {include file='adbard.tpl'}     
 
-       {include file=$sidebartemplate}
+       {include file=$sidebartemplate}
 
 </div></div>
 
@@ -15,25 +15,27 @@
 </div></div>
 {/if}
 
-   <div id="ft" role="navigation" style="clear:both;">
+       <div id="ft" role="navigation" style="clear:both;">
 
-     <ul>
-       <li class="copy">&copy; 2009 <a href="http://libre.fm/";>Libre.fm</a> 
Project</li>
-       <li><a href="http://libre.fm/contributors/";>{t}Contributors{/t}</a></li>
-       <li><a href="http://libre.fm/licensing/";>{t}Licensing 
information{/t}</a></li>
-       <li><a href="http://libre.fm/developers/";>{t}Developers{/t}</a></li>
-       <li><a href="http://libre.fm/api/";>API</a></li>
-       <li><a href="http://libre.fm/download/";>{t}Download{/t}</a></li>
-       <li><a href="http://libre.fm/translations/";>{t}Help translate 
Libre.fm{/t}</a></li>
-     </ul>
+               {include file='language-selector.tpl'}
 
-     <ul>
-     <li>{t escape=no}A <a href="http://foocorp.org/";>FooCorp</a> 
thing.{/t}</li>
-     <li><a href="http://autonomo.us/";>autonomo.us</a></li>
-     <li><a href="http://nixtape.org/";>{t}Powered by Nixtape{/t}</a></li>
-     </ul>
+               <ul>
+                       <li class="copy">&copy; 2009 <a 
href="http://libre.fm/";>Libre.fm</a> Project</li>
+                       <li><a 
href="http://libre.fm/contributors/";>{t}Contributors{/t}</a></li>
+                       <li><a href="http://libre.fm/licensing/";>{t}Licensing 
information{/t}</a></li>
+                       <li><a 
href="http://libre.fm/developers/";>{t}Developers{/t}</a></li>
+                       <li><a href="http://libre.fm/api/";>API</a></li>
+                       <li><a 
href="http://libre.fm/download/";>{t}Download{/t}</a></li>
+                       <li><a href="http://libre.fm/translations/";>{t}Help 
translate Libre.fm{/t}</a></li>
+               </ul>
 
-   </div>
+               <ul>
+                       <li>{t escape=no}A <a 
href="http://foocorp.org/";>FooCorp</a> thing.{/t}</li>
+                       <li><a href="http://autonomo.us/";>autonomo.us</a></li>
+                       <li><a href="http://nixtape.org/";>{t}Powered by 
Nixtape{/t}</a></li>
+               </ul>
+
+       </div>
 </div>
 </body>
 </html>

Added: trunk/nixtape/themes/librefm/templates/language-selector-full.tpl
===================================================================
--- trunk/nixtape/themes/librefm/templates/language-selector-full.tpl           
                (rev 0)
+++ trunk/nixtape/themes/librefm/templates/language-selector-full.tpl   
2009-05-09 10:06:22 UTC (rev 1430)
@@ -0,0 +1,9 @@
+<form method='get' action=''>
+       <select name='lang' id='lang' onchange='this.form.submit()'>
+               <option value='en_US'>{t}English (US){/t}</option>
+               <option value='de_DE'>{t}German (Germany){/t}</option>
+       </select>
+       <noscript>
+               <input type='submit' value='{t}Change Language{/t}' />
+       </noscript>
+</form>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]