changed locale to lang

git-svn-id: http://yolanda.mister-muffin.de/svn@325 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2008-04-27 16:53:38 +00:00
parent 564050c7e6
commit 0a696bd130
18 changed files with 130 additions and 130 deletions

View file

@ -28,8 +28,8 @@ sub get_page_array
my $page = XML::LibXML::Element->new( "page" );
my ($locale) = $query->http('HTTP_ACCEPT_LANGUAGE') =~ /^([^,]+),.*$/;
$page->setAttribute( "locale", $locale ? $locale : "en_us" );
my ($lang) = $query->http('HTTP_ACCEPT_LANGUAGE') =~ /^[^,]+,([^;]*);/;
$page->setAttribute( "lang", $lang ? $lang : "en" );
$page->setAttribute( "username", $userinfo->{'username'} );
$page->setNamespace("http://www.w3.org/1999/xhtml", "xhtml", 0);

View file

@ -15,17 +15,17 @@
omit-xml-declaration="no"
/>
<xsl:variable name="locale">
<xsl:variable name="lang">
<xsl:choose>
<xsl:when test="document(concat('../locale/', //@locale, '.xml'))">
<xsl:value-of select="//@locale" />
<xsl:when test="document(concat('../lang/', //@lang, '.xml'))">
<xsl:value-of select="//@lang" />
</xsl:when>
<xsl:otherwise>en-us</xsl:otherwise>
<xsl:otherwise>en</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="site_strings" select="document('../config/frontend.xml')//strings/string" />
<xsl:variable name="locale_strings" select="document(concat('../locale/', $locale, '.xml'))//strings/string" />
<xsl:variable name="lang_strings" select="document(concat('../lang/', $lang, '.xml'))//strings/string" />
<!-- kill xml, opensearch is the same everywhere -->
<xsl:template match="/">

View file

@ -15,17 +15,17 @@
omit-xml-declaration="no"
/>
<xsl:variable name="locale">
<xsl:variable name="lang">
<xsl:choose>
<xsl:when test="document(concat('../locale/', //@locale, '.xml'))">
<xsl:value-of select="//@locale" />
<xsl:when test="document(concat('../lang/', //@lang, '.xml'))">
<xsl:value-of select="//@lang" />
</xsl:when>
<xsl:otherwise>en-us</xsl:otherwise>
<xsl:otherwise>en</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="site_strings" select="document('../config/frontend.xml')//strings/string" />
<xsl:variable name="locale_strings" select="document(concat('../locale/', $locale, '.xml'))//strings/string" />
<xsl:variable name="lang_strings" select="document(concat('../lang/', $lang, '.xml'))//strings/string" />
<xsl:template match="/">
<xsl:apply-templates />
@ -43,7 +43,7 @@
</xsl:attribute>
<title>
<xsl:value-of select="$site_strings[@id='site_name']" />
<xsl:value-of select="$locale_strings[@id='rss_separator']" />
<xsl:value-of select="$lang_strings[@id='rss_separator']" />
<xsl:value-of select="//results/@query" />
</title>
<link>
@ -52,9 +52,9 @@
<xsl:value-of select="//results/@query" />&#38;
</link>
<description>
<xsl:value-of select="$locale_strings[@id='rss_description_1']" />
<xsl:value-of select="$lang_strings[@id='rss_description_1']" />
<xsl:value-of select="//results/@query" />
<xsl:value-of select="$locale_strings[@id='rss_description_2']" />
<xsl:value-of select="$lang_strings[@id='rss_description_2']" />
</description>
</channel>

View file

@ -38,18 +38,18 @@
<xsl:include href="./xhtml/xhtml-head.xsl" />
<xsl:variable name="locale">
<xsl:variable name="lang">
<xsl:choose>
<xsl:when test="document(concat('../locale/', //@locale, '.xml'))">
<xsl:value-of select="//@locale" />
<xsl:when test="document(concat('../lang/', //@lang, '.xml'))">
<xsl:value-of select="//@lang" />
</xsl:when>
<xsl:otherwise>en-us</xsl:otherwise>
<xsl:otherwise>en</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="site_strings" select="document('../config/frontend.xml')//strings/string" />
<xsl:variable name="locale_strings" select="document(concat('../locale/', $locale, '.xml'))//strings/string" />
<xsl:variable name="language_strings" select="document('../locale/languages.xml')//languages/lang" />
<xsl:variable name="lang_strings" select="document(concat('../lang/', $lang, '.xml'))//strings/string" />
<xsl:variable name="language_strings" select="document('../lang/languages.xml')//languages/lang" />
<!--
this kills 99% of the processed XML

View file

@ -16,7 +16,7 @@
<xsl:attribute name="href">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:identifier" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='backlink']" />
<xsl:value-of select="$lang_strings[@id='backlink']" />
</a>
</div>

View file

@ -16,7 +16,7 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_license']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='footer_license']" />
<xsl:value-of select="$lang_strings[@id='footer_license']" />
</a>
</li>
@ -25,7 +25,7 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_source-code']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='footer_source_code']" />
<xsl:value-of select="$lang_strings[@id='footer_source_code']" />
</a>
</li>
@ -34,7 +34,7 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_report_bug']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='footer_report_bug']" />
<xsl:value-of select="$lang_strings[@id='footer_report_bug']" />
</a>
</li>
@ -42,11 +42,11 @@
<!--
<br />
<xsl:value-of select="$locale_strings[@id='footer_copyright']" />
<xsl:value-of select="$lang_strings[@id='footer_copyright']" />
-->
<span class="protip">
<xsl:value-of select="$locale_strings[@id='footer_warranty']" />
<xsl:value-of select="$lang_strings[@id='footer_warranty']" />
</span>
<br />
<img alt="AGPL 3 Free Software">

View file

@ -30,7 +30,7 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_register']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='register']" />
<xsl:value-of select="$lang_strings[@id='register']" />
</a>
</li>
@ -44,7 +44,7 @@
<xsl:value-of select="$site_strings[@id='path_login']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='login']" />
<xsl:value-of select="$lang_strings[@id='login']" />
</a>
</li>
@ -56,12 +56,12 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_settings']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='settings_details']" />
<xsl:value-of select="$lang_strings[@id='settings_details']" />
</a>
</li>
<!--
<xsl:value-of select="$locale_strings[@id='logged_in_as']" />
<xsl:value-of select="$lang_strings[@id='logged_in_as']" />
<li>
<a>
@ -78,7 +78,7 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_upload']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='header_upload-video']" />
<xsl:value-of select="$lang_strings[@id='header_upload-video']" />
</a>
</li>
@ -88,7 +88,7 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_settings']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='settings_details']" />
<xsl:value-of select="$lang_strings[@id='settings_details']" />
</a>
</li>
-->
@ -98,7 +98,7 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_logout']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='logout']" />
<xsl:value-of select="$lang_strings[@id='logout']" />
</a>
</li>

View file

@ -20,21 +20,21 @@
<fieldset>
<label for="user">
<xsl:value-of select="$locale_strings[@id='username_or_openid']" />:
<xsl:value-of select="$lang_strings[@id='username_or_openid']" />:
</label>
<br />
<input id="username" name="user" onkeyup="check_openid();" type="text" />
<br />
<label for="pass">
<xsl:value-of select="$locale_strings[@id='password']" />:
<xsl:value-of select="$lang_strings[@id='password']" />:
</label>
<br />
<input id="password" name="pass" type="password" />
<input type="submit" name="login" >
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_login']" />
<xsl:value-of select="$lang_strings[@id='button_login']" />
</xsl:attribute>
</input>
@ -65,7 +65,7 @@
{
password.disabled = true;
password.type = 'input';
password.value = ']]></xsl:text><xsl:value-of select="$locale_strings[@id='input_password_not_required']" /><xsl:text disable-output-escaping="yes"><![CDATA[';
password.value = ']]></xsl:text><xsl:value-of select="$lang_strings[@id='input_password_not_required']" /><xsl:text disable-output-escaping="yes"><![CDATA[';
}
else
{
@ -91,17 +91,17 @@
<xsl:value-of select="$site_strings[@id='path_login']" />
</xsl:attribute>
<fieldset>
<xsl:value-of select="$locale_strings[@id='username']" />:
<xsl:value-of select="$lang_strings[@id='username']" />:
<br />
<input name="user" type="text" size="30" maxlength="30" />
<br />
<xsl:value-of select="$locale_strings[@id='password']" />:
<xsl:value-of select="$lang_strings[@id='password']" />:
<br />
<input name="pass" type="password" size="30" maxlength="30" />
<br />
<input type="submit" name="login" >
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_login']" />
<xsl:value-of select="$lang_strings[@id='button_login']" />
</xsl:attribute>
</input>
</fieldset>

View file

@ -17,7 +17,7 @@
<span class="message">
<xsl:variable name="messagetext" select="/page/message/@text" />
<xsl:value-of select="$locale_strings[@id=$messagetext]" />
<xsl:value-of select="$lang_strings[@id=$messagetext]" />
<xsl:choose>

View file

@ -15,21 +15,21 @@
<xsl:value-of select="$site_strings[@id='path_register']" />
</xsl:attribute>
<fieldset>
<xsl:value-of select="$locale_strings[@id='username']" />:
<xsl:value-of select="$lang_strings[@id='username']" />:
<br />
<input name="user" type="text" size="30" maxlength="30" />
<br />
<xsl:value-of select="$locale_strings[@id='password']" />:
<xsl:value-of select="$lang_strings[@id='password']" />:
<br />
<input name="pass" type="password" size="30" maxlength="30" />
<br />
<xsl:value-of select="$locale_strings[@id='password_repeat']" />:
<xsl:value-of select="$lang_strings[@id='password_repeat']" />:
<br />
<input name="pass_repeat" type="password" size="30" maxlength="30" />
<br />
<input type="submit" name="register" >
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_register']" />
<xsl:value-of select="$lang_strings[@id='button_register']" />
</xsl:attribute>
</input>
</fieldset>

View file

@ -12,9 +12,9 @@
<xsl:for-each select="//page/results">
<h1>
<xsl:value-of select="$locale_strings[@id='results_heading_1']" />&#160;
<xsl:value-of select="$lang_strings[@id='results_heading_1']" />&#160;
<xsl:value-of select="//results/@pagesize * (//results/@currentpage - 1) + 1" />&#160;
<xsl:value-of select="$locale_strings[@id='results_heading_2']" />&#160;
<xsl:value-of select="$lang_strings[@id='results_heading_2']" />&#160;
<xsl:choose>
<xsl:when test="(//results/@pagesize * //results/@currentpage) &lt; //results/@resultcount">
<xsl:value-of select="//results/@pagesize * //results/@currentpage" />
@ -23,9 +23,9 @@
<xsl:value-of select="//results/@resultcount" />
</xsl:otherwise>
</xsl:choose>&#160;
<xsl:value-of select="$locale_strings[@id='results_heading_3']" />&#160;
<xsl:value-of select="$lang_strings[@id='results_heading_3']" />&#160;
<xsl:value-of select="//results/@resultcount" />&#160;
<xsl:value-of select="$locale_strings[@id='results_heading_4']" />
<xsl:value-of select="$lang_strings[@id='results_heading_4']" />
</h1>
<xsl:call-template name="results-listing"/>

View file

@ -17,7 +17,7 @@
</xsl:attribute>
<fieldset>
<label for="query">
<xsl:value-of select="$locale_strings[@id='search']" />:<br />
<xsl:value-of select="$lang_strings[@id='search']" />:<br />
</label>
<input type="text" name="query">
<xsl:attribute name="value">
@ -28,7 +28,7 @@
</input>
<input type="submit">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_find']" />
<xsl:value-of select="$lang_strings[@id='button_find']" />
</xsl:attribute>
</input>
</fieldset>
@ -41,7 +41,7 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_query_custom_one']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='search_custom_one']" />
<xsl:value-of select="$lang_strings[@id='search_custom_one']" />
</a>
</li>
@ -50,7 +50,7 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_query_custom_two']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='search_custom_two']" />
<xsl:value-of select="$lang_strings[@id='search_custom_two']" />
</a>
</li>
@ -59,7 +59,7 @@
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_query_custom_three']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='search_custom_three']" />
<xsl:value-of select="$lang_strings[@id='search_custom_three']" />
</a>
</li>

View file

@ -12,7 +12,7 @@
<div class="settingsform">
<span class="heading">
<xsl:value-of select="$locale_strings[@id='settings_heading']" />
<xsl:value-of select="$lang_strings[@id='settings_heading']" />
<xsl:value-of select="//page/@username" />
</span>
@ -21,7 +21,7 @@
<xsl:value-of select="$site_strings[@id='path_settings']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='settings_instruction_pagesize']" />
<xsl:value-of select="$lang_strings[@id='settings_instruction_pagesize']" />
<br />
<input name="pagesize" type="text" size="7">

View file

@ -14,12 +14,12 @@
<xsl:when test="//uploadform/@page=1">
<h1>
<xsl:value-of select="$locale_strings[@id='title_page_1']" />
<xsl:value-of select="$lang_strings[@id='title_page_1']" />
</h1>
<br />
<span class="instruction">
<xsl:value-of select="$locale_strings[@id='instruction_page_1']" />
<xsl:value-of select="$lang_strings[@id='instruction_page_1']" />
</span>
<br />
@ -31,7 +31,7 @@
<fieldset>
<xsl:value-of select="$locale_strings[@id='instruction_title']" />
<xsl:value-of select="$lang_strings[@id='instruction_title']" />
<br />
<input name="DC.Title" type="text">
@ -41,7 +41,7 @@
</input>
<br />
<xsl:value-of select="$locale_strings[@id='instruction_subject']" />
<xsl:value-of select="$lang_strings[@id='instruction_subject']" />
<br />
<input name="DC.Subject" type="text">
@ -51,7 +51,7 @@
</input>
<br />
<xsl:value-of select="$locale_strings[@id='instruction_description']" />
<xsl:value-of select="$lang_strings[@id='instruction_description']" />
<br />
<textarea name="DC.Description">
@ -59,12 +59,12 @@
</textarea>
<br />
<xsl:value-of select="$locale_strings[@id='instruction_coverage']" />
<xsl:value-of select="$lang_strings[@id='instruction_coverage']" />
<br />
<select name="DC.Coverage.day"><!-- DC.Coverage.day is NOT an official qualifier -->
<option>
<xsl:value-of select="$locale_strings[@id='unit_day']" />
<xsl:value-of select="$lang_strings[@id='unit_day']" />
</option>
<xsl:call-template name="for-loop">
<xsl:with-param name="start">1</xsl:with-param>
@ -75,7 +75,7 @@
<select name="DC.Coverage.month"><!-- DC.Coverage.month is NOT an official qualifier -->
<option>
<xsl:value-of select="$locale_strings[@id='unit_month']" />
<xsl:value-of select="$lang_strings[@id='unit_month']" />
</option>
<xsl:call-template name="for-loop">
<xsl:with-param name="start">1</xsl:with-param>
@ -86,7 +86,7 @@
<select name="DC.Coverage.year"><!-- DC.Coverage.year is NOT an official qualifier -->
<option>
<xsl:value-of select="$locale_strings[@id='unit_year']" />
<xsl:value-of select="$lang_strings[@id='unit_year']" />
</option>
<xsl:call-template name="for-loop">
<xsl:with-param name="start">1890</xsl:with-param><!-- Monkeyshines, No. 1 -->
@ -103,7 +103,7 @@
</input>
<br />
<xsl:value-of select="$locale_strings[@id='instruction_language']" />
<xsl:value-of select="$lang_strings[@id='instruction_language']" />
<br />
<!-- one cannot access DC.Language from inside the for-each... -->
@ -115,7 +115,7 @@
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:attribute name="value"></xsl:attribute>
<xsl:value-of select="$locale_strings[@id='instruction_language_choose']" />
<xsl:value-of select="$lang_strings[@id='instruction_language_choose']" />
</option>
-->
<select name="DC.Language" size="1">
@ -144,18 +144,18 @@
<button type="submit" name="2">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_next_page']" />
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
</xsl:attribute>
<img src="/images/tango/32x32/actions/go-next.png">
<xsl:attribute name="alt">
<xsl:value-of select="$locale_strings[@id='button_next_page']" />
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
</xsl:attribute>
</img>
</button>
<br />
<span class="protip">
<xsl:value-of select="$locale_strings[@id='this_is_page_1']" />
<xsl:value-of select="$lang_strings[@id='this_is_page_1']" />
</span>
</fieldset>
@ -171,12 +171,12 @@
<xsl:when test="//uploadform/@page=2">
<span class="heading">
<xsl:value-of select="$locale_strings[@id='title_page_2']" />
<xsl:value-of select="$lang_strings[@id='title_page_2']" />
</span>
<br />
<span class="instruction">
<xsl:value-of select="$locale_strings[@id='instruction_page_2']" />
<xsl:value-of select="$lang_strings[@id='instruction_page_2']" />
</span>
<form method="post">
@ -189,13 +189,13 @@
<input type="submit" name="3">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_next_page']" />
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
</xsl:attribute>
</input>
<br />
<span class="protip">
<xsl:value-of select="$locale_strings[@id='this_is_page_2']" />
<xsl:value-of select="$lang_strings[@id='this_is_page_2']" />
</span>
</fieldset>
@ -208,12 +208,12 @@
<xsl:when test="//uploadform/@page=3">
<span class="heading">
<xsl:value-of select="$locale_strings[@id='title_page_3']" />
<xsl:value-of select="$lang_strings[@id='title_page_3']" />
</span>
<br />
<span class="instruction">
<xsl:value-of select="$locale_strings[@id='instruction_page_3']" />
<xsl:value-of select="$lang_strings[@id='instruction_page_3']" />
</span>
<form method="post">
@ -224,7 +224,7 @@
<fieldset>
<xsl:value-of select="$locale_strings[@id='instruction_creator']" />
<xsl:value-of select="$lang_strings[@id='instruction_creator']" />
<br />
<input name="DC.Creator" type="text" size="30">
@ -234,7 +234,7 @@
</input>
<br />
<xsl:value-of select="$locale_strings[@id='instruction_source']" />
<xsl:value-of select="$lang_strings[@id='instruction_source']" />
<br />
<input name="DC.Source" type="text" size="30">
@ -246,12 +246,12 @@
<input type="submit" name="4">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_next_page']" />
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
</xsl:attribute>
</input>
<br />
<span class="protip">
<xsl:value-of select="$locale_strings[@id='this_is_page_3']" />
<xsl:value-of select="$lang_strings[@id='this_is_page_3']" />
</span>
</fieldset>
</form>
@ -259,11 +259,11 @@
<xsl:when test="//uploadform/@page=4">
<span class="heading">
<xsl:value-of select="$locale_strings[@id='title_page_4']" />
<xsl:value-of select="$lang_strings[@id='title_page_4']" />
</span>
<br />
<span class="instruction">
<xsl:value-of select="$locale_strings[@id='instruction_page_4']" />
<xsl:value-of select="$lang_strings[@id='instruction_page_4']" />
</span>
<form method="post">
<xsl:attribute name="action">
@ -271,7 +271,7 @@
</xsl:attribute>
<fieldset>
<xsl:value-of select="$locale_strings[@id='instruction_rights']" />
<xsl:value-of select="$lang_strings[@id='instruction_rights']" />
<br />
<input name="DC.Rights" type="text" size="30">
<xsl:attribute name="value">
@ -279,7 +279,7 @@
</xsl:attribute>
</input>
<br />
<xsl:value-of select="$locale_strings[@id='instruction_license']" />
<xsl:value-of select="$lang_strings[@id='instruction_license']" />
<br />
<input name="DC.License" type="text" size="30">
<xsl:attribute name="value">
@ -287,7 +287,7 @@
</xsl:attribute>
</input>
<br />
<xsl:value-of select="$locale_strings[@id='instruction_license_cc']" />
<xsl:value-of select="$lang_strings[@id='instruction_license_cc']" />
<br />
<div class="cc-license-chooser">
@ -302,7 +302,7 @@
</input>
<br />
<span class="protip">
<xsl:value-of select="$locale_strings[@id='instruction_license_cc_remix']" />
<xsl:value-of select="$lang_strings[@id='instruction_license_cc_remix']" />
</span>
<br />
@ -316,7 +316,7 @@
</input>
<br />
<span class="protip">
<xsl:value-of select="$locale_strings[@id='instruction_license_cc_sharealike']" />
<xsl:value-of select="$lang_strings[@id='instruction_license_cc_sharealike']" />
</span>
<br />
@ -330,7 +330,7 @@
</input>
<br />
<span class="protip">
<xsl:value-of select="$locale_strings[@id='instruction_license_cc_noderivatives']" />
<xsl:value-of select="$lang_strings[@id='instruction_license_cc_noderivatives']" />
</span>
<br />
@ -344,19 +344,19 @@
</input>
<br />
<span class="protip">
<xsl:value-of select="$locale_strings[@id='instruction_license_cc_noncommercial']" />
<xsl:value-of select="$lang_strings[@id='instruction_license_cc_noncommercial']" />
</span>
</div>
<input type="submit" name="5">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_next_page']" />
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
</xsl:attribute>
</input>
<br />
<span class="protip">
<xsl:value-of select="$locale_strings[@id='this_is_page_4']" />
<xsl:value-of select="$lang_strings[@id='this_is_page_4']" />
</span>
</fieldset>
</form>
@ -364,11 +364,11 @@
<xsl:when test="//uploadform/@page=5">
<span class="heading">
<xsl:value-of select="$locale_strings[@id='title_page_5']" />
<xsl:value-of select="$lang_strings[@id='title_page_5']" />
</span>
<br />
<span class="instruction">
<xsl:value-of select="$locale_strings[@id='instruction_page_5']" />
<xsl:value-of select="$lang_strings[@id='instruction_page_5']" />
</span>
<form method="post">
<xsl:attribute name="action">
@ -380,7 +380,7 @@
<table class="metadata-upload">
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Title']" />:
<xsl:value-of select="$lang_strings[@id='DC.Title']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//uploadform/@DC.Title" />
@ -388,7 +388,7 @@
</tr>
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Subject']" />:
<xsl:value-of select="$lang_strings[@id='DC.Subject']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//uploadform/@DC.Subject" />
@ -396,7 +396,7 @@
</tr>
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Description']" />:
<xsl:value-of select="$lang_strings[@id='DC.Description']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//uploadform/@DC.Description" />
@ -406,14 +406,14 @@
<input type="submit" name="1">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_page_1']" />
<xsl:value-of select="$lang_strings[@id='button_page_1']" />
</xsl:attribute>
</input>
<table class="metadata-upload">
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Creator']" />:
<xsl:value-of select="$lang_strings[@id='DC.Creator']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//uploadform/@DC.Creator" />
@ -421,7 +421,7 @@
</tr>
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Source']" />:
<xsl:value-of select="$lang_strings[@id='DC.Source']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//uploadform/@DC.Source" />
@ -429,7 +429,7 @@
</tr>
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Language']" />:
<xsl:value-of select="$lang_strings[@id='DC.Language']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//uploadform/@DC.Language" />
@ -437,7 +437,7 @@
</tr>
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Coverage']" />:
<xsl:value-of select="$lang_strings[@id='DC.Coverage']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//uploadform/@DC.Coverage" />
@ -447,14 +447,14 @@
<input type="submit" name="3">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_page_3']" />
<xsl:value-of select="$lang_strings[@id='button_page_3']" />
</xsl:attribute>
</input>
<table class="metadata-upload">
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Rights']" />:
<xsl:value-of select="$lang_strings[@id='DC.Rights']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//uploadform/@DC.Rights" />
@ -462,7 +462,7 @@
</tr>
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.License']" />:
<xsl:value-of select="$lang_strings[@id='DC.License']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//uploadform/@DC.License" />
@ -472,7 +472,7 @@
<input type="submit" name="4">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_page_4']" />
<xsl:value-of select="$lang_strings[@id='button_page_4']" />
</xsl:attribute>
</input>
@ -484,18 +484,18 @@
</xsl:attribute>
<fieldset>
<xsl:value-of select="$locale_strings[@id='instruction_file']" />
<xsl:value-of select="$lang_strings[@id='instruction_file']" />
<br />
<input name="file" type="file" size="13" />
<br />
<input type="submit">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_upload']" />
<xsl:value-of select="$lang_strings[@id='button_upload']" />
</xsl:attribute>
</input>
<br />
<span class="protip">
<xsl:value-of select="$locale_strings[@id='this_is_page_5']" />
<xsl:value-of select="$lang_strings[@id='this_is_page_5']" />
</span>
</fieldset>
</form>

View file

@ -76,7 +76,7 @@
<xsl:call-template name="video-object" />
<div class="protip-embed">
<xsl:value-of select="$locale_strings[@id='protip_embed']" />
<xsl:value-of select="$lang_strings[@id='protip_embed']" />
<br />
<code>
&lt;object data="<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'embed=true')" />"
@ -132,7 +132,7 @@
<br />
<input type="submit" name="send">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='comment_post']" />
<xsl:value-of select="$lang_strings[@id='comment_post']" />
</xsl:attribute>
</input>
</fieldset>
@ -142,7 +142,7 @@
<xsl:otherwise>
<div class="commentform">
<span class="protip">
<xsl:value-of select="$locale_strings[@id='login_to_comment']" />
<xsl:value-of select="$lang_strings[@id='login_to_comment']" />
</span>
</div>
</xsl:otherwise>
@ -161,7 +161,7 @@
<xsl:attribute name="href">
<xsl:value-of select="//video/rdf:RDF/cc:License/@rdf:about" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='license_conditions']" />:
<xsl:value-of select="$lang_strings[@id='license_conditions']" />:
</a>
<br />
-->
@ -234,10 +234,10 @@
<xsl:attribute name="href">
<xsl:value-of select="//video/rdf:RDF/cc:Work/@rdf:about" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='video_download']" />
<xsl:value-of select="$lang_strings[@id='video_download']" />
</a>
<br />
(<xsl:value-of select="format-number(number(round(//video/@filesize) div 1048576), '0.0#')" />&#160;<xsl:value-of select="$locale_strings[@id='unit_megabytes']" />)
(<xsl:value-of select="format-number(number(round(//video/@filesize) div 1048576), '0.0#')" />&#160;<xsl:value-of select="$lang_strings[@id='unit_megabytes']" />)
</div>
</xsl:template>
-->
@ -274,7 +274,7 @@
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Creator']" />:
<xsl:value-of select="$lang_strings[@id='DC.Creator']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:creator" />
@ -286,7 +286,7 @@
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Contributor']" />:
<xsl:value-of select="$lang_strings[@id='DC.Contributor']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:contributor" />
@ -296,7 +296,7 @@
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Coverage']" />:
<xsl:value-of select="$lang_strings[@id='DC.Coverage']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:coverage" />
@ -305,7 +305,7 @@
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Rights']" />:
<xsl:value-of select="$lang_strings[@id='DC.Rights']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:rights" />
@ -315,7 +315,7 @@
<!--
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Publisher']" />:
<xsl:value-of select="$lang_strings[@id='DC.Publisher']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:publisher" />
@ -324,7 +324,7 @@
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Date']" />:
<xsl:value-of select="$lang_strings[@id='DC.Date']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:date" />
@ -334,7 +334,7 @@
<tr>
<td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Source']" />:
<xsl:value-of select="$lang_strings[@id='DC.Source']" />:
</td>
<td class="metadata-content">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:source" />
@ -363,7 +363,7 @@
<div class="messagebox" id="error">
<span class="message">
<xsl:value-of select="$locale_strings[@id='error_no_ogg_plugin']" />
<xsl:value-of select="$lang_strings[@id='error_no_ogg_plugin']" />
</span>
</div>
@ -398,11 +398,11 @@
onclick="show_movie()"
>
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='video_playback']" />
<xsl:value-of select="$lang_strings[@id='video_playback']" />
</xsl:attribute>
<img src="/images/tango/128x128/player_play.png">
<xsl:attribute name="alt">
<xsl:value-of select="$locale_strings[@id='video_playback']" />
<xsl:value-of select="$lang_strings[@id='video_playback']" />
</xsl:attribute>
</img>
</button>
@ -411,11 +411,11 @@
type="submit"
>
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='video_download']" />
<xsl:value-of select="$lang_strings[@id='video_download']" />
</xsl:attribute>
<img src="/images/tango/128x128/document-save.png">
<xsl:attribute name="alt">
<xsl:value-of select="$locale_strings[@id='video_download']" />
<xsl:value-of select="$lang_strings[@id='video_download']" />
</xsl:attribute>
</img>
</button>

View file

@ -71,7 +71,7 @@
type="application/rss+xml"
>
<xsl:attribute name="title">
<xsl:value-of select="$locale_strings[@id='rss_title_results_this_page']" />
<xsl:value-of select="$lang_strings[@id='rss_title_results_this_page']" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_root']" />
@ -88,7 +88,7 @@
type="application/rss+xml"
>
<xsl:attribute name="title">
<xsl:value-of select="$locale_strings[@id='rss_title_results_all_pages']" />
<xsl:value-of select="$lang_strings[@id='rss_title_results_all_pages']" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_root']" />
@ -103,7 +103,7 @@
<title>
<xsl:value-of select="$site_strings[@id='site_name']" />
-
<xsl:value-of select="$locale_strings[@id='results_for_query']" />
<xsl:value-of select="$lang_strings[@id='results_for_query']" />
"<xsl:value-of select="//page/results/@query" />"
</title>