Extract language selector strings
Extract language selector strings

--- a/locale/gitphp.pot
+++ b/locale/gitphp.pot
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: GitPHP 0.2.0\n"
 "Report-Msgid-Bugs-To: xiphux@gmail.com\n"
-"POT-Creation-Date: 2010-10-02 17:12-0500\n"
+"POT-Creation-Date: 2010-10-02 23:01-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -646,7 +646,7 @@
 
 # Error message when user hasn't defined a project root in the config
 # "projectroot" refers to a root directory where the user's git projects are stored
-#: index.php:67
+#: index.php:113
 msgid "A projectroot must be set in the config"
 msgstr ""
 
@@ -702,3 +702,14 @@
 msgid "Loading blame data…"
 msgstr ""
 
+# Used as a label by the language selector drop-down box
+#: templates/header.tpl
+msgid "language:"
+msgstr ""
+
+# Used as a button by the language selector drop-down box to set the
+# language to the user's choice
+#: templates/header.tpl
+msgid "set"
+msgstr ""
+

--- a/templates/header.tpl
+++ b/templates/header.tpl
@@ -52,13 +52,13 @@
 	<input type="hidden" name="{$var}" value="{$val}" />
 	{/if}
 	{/foreach}
-	<label for="l">language:</label>
+	<label for="l">{t}language:{/t}</label>
 	<select name="l" id="selLang">
 	  {foreach from=$supportedlocales key=locale item=language}
 	    <option {if $locale == $currentlocale}selected="selected"{/if} value="{$locale}">{$language} ({$locale})</option>
 	  {/foreach}
 	</select>
-	<input type="submit" value="Set" id="btnLangSet" />
+	<input type="submit" value="{t}set{/t}" id="btnLangSet" />
 	</form>
       </div>
       {/if}

comments