prefix variable names that specify a path with path_ instead of page_

git-svn-id: http://yolanda.mister-muffin.de/svn@237 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2008-02-14 15:23:28 +00:00
parent a038706762
commit 6ad0e6c278
10 changed files with 59 additions and 59 deletions

View file

@ -8,22 +8,22 @@
<string id="site_motto">WebTV free as in Speech</string> <string id="site_motto">WebTV free as in Speech</string>
<!-- invisible --> <!-- invisible -->
<string id="page_settings">/settings.pl</string> <string id="path_settings">/settings.pl</string>
<string id="page_login">/login.pl</string> <string id="path_login">/login.pl</string>
<string id="page_login-openid">/login.pl?action=openid</string> <string id="path_login-openid">/login.pl?action=openid</string>
<string id="page_logout">/login.pl?action=logout</string> <string id="path_logout">/login.pl?action=logout</string>
<string id="page_authors">http://yolanda.mister-muffin.de/trac</string> <string id="path_authors">http://yolanda.mister-muffin.de/trac</string>
<string id="page_license">/LICENSE</string> <string id="path_license">/LICENSE</string>
<string id="page_source-code">http://yolanda.mister-muffin.de/trac/browser/trunk</string> <string id="path_source-code">http://yolanda.mister-muffin.de/trac/browser/trunk</string>
<string id="page_register">/register.pl</string> <string id="path_register">/register.pl</string>
<string id="page_report_bug">http://yolanda.mister-muffin.de/trac/newticket</string> <string id="path_report_bug">http://yolanda.mister-muffin.de/trac/newticket</string>
<string id="page_results">/search.pl?query=</string> <string id="path_results">/search.pl?query=</string>
<string id="page_root">http://localhost/</string> <string id="path_root">http://localhost/</string>
<string id="page_upload">/upload.pl</string> <string id="path_upload">/upload.pl</string>
<string id="page_uploader">/uploader.pl</string> <string id="path_uploader">/uploader.pl</string>
<string id="page_query_latestadditions">/search.pl?query=orderby:timestamp%20sort:descending</string> <string id="path_query_latestadditions">/search.pl?query=orderby:timestamp%20sort:descending</string>
<string id="page_query_mostdownloads">/search.pl?query=orderby:downloadcount%20sort:descending</string> <string id="path_query_mostdownloads">/search.pl?query=orderby:downloadcount%20sort:descending</string>
<string id="page_query_mostviews">/search.pl?query=orderby:viewcount%20sort:descending</string> <string id="path_query_mostviews">/search.pl?query=orderby:viewcount%20sort:descending</string>
</strings> </strings>

View file

@ -40,7 +40,7 @@
width="16" width="16"
type="image/x-icon" type="image/x-icon"
> >
<xsl:value-of select="$site_strings[@id='page_root']" />images/favicon.ico <xsl:value-of select="$site_strings[@id='path_root']" />images/favicon.ico
</Image> </Image>
<Query <Query
@ -54,7 +54,7 @@
<Url type="text/html"> <Url type="text/html">
<xsl:attribute name="template"> <xsl:attribute name="template">
<xsl:value-of select="$site_strings[@id='page_root']" />/search.pl?query={searchTerms} <xsl:value-of select="$site_strings[@id='path_root']" />/search.pl?query={searchTerms}
</xsl:attribute> </xsl:attribute>
</Url> </Url>

View file

@ -37,8 +37,8 @@
<channel> <channel>
<xsl:attribute name="rdf:about"> <xsl:attribute name="rdf:about">
<xsl:value-of select="$site_strings[@id='page_root']" /> <xsl:value-of select="$site_strings[@id='path_root']" />
<xsl:value-of select="$site_strings[@id='page_results']" /> <xsl:value-of select="$site_strings[@id='path_results']" />
<xsl:value-of select="//results/@query" />&#38;xslt=rss <xsl:value-of select="//results/@query" />&#38;xslt=rss
</xsl:attribute> </xsl:attribute>
<title> <title>
@ -47,8 +47,8 @@
<xsl:value-of select="//results/@query" /> <xsl:value-of select="//results/@query" />
</title> </title>
<link> <link>
<xsl:value-of select="$site_strings[@id='page_root']" /> <xsl:value-of select="$site_strings[@id='path_root']" />
<xsl:value-of select="$site_strings[@id='page_results']" /> <xsl:value-of select="$site_strings[@id='path_results']" />
<xsl:value-of select="//results/@query" />&#38; <xsl:value-of select="//results/@query" />&#38;
</link> </link>
<description> <description>

View file

@ -83,8 +83,8 @@
<xsl:value-of select="$locale_strings[@id='rss_title_results_this_page']" /> <xsl:value-of select="$locale_strings[@id='rss_title_results_this_page']" />
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_root']" /> <xsl:value-of select="$site_strings[@id='path_root']" />
<xsl:value-of select="$site_strings[@id='page_results']" /> <xsl:value-of select="$site_strings[@id='path_results']" />
<xsl:value-of select="//results/@query" /> <xsl:value-of select="//results/@query" />
&amp;pagesize=<xsl:value-of select="//results/@pagesize" /> &amp;pagesize=<xsl:value-of select="//results/@pagesize" />
&amp;page=<xsl:value-of select="//results/@page" /> &amp;page=<xsl:value-of select="//results/@page" />
@ -97,8 +97,8 @@
<xsl:value-of select="$locale_strings[@id='rss_title_results_all_pages']" /> <xsl:value-of select="$locale_strings[@id='rss_title_results_all_pages']" />
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_root']" /> <xsl:value-of select="$site_strings[@id='path_root']" />
<xsl:value-of select="$site_strings[@id='page_results']" /> <xsl:value-of select="$site_strings[@id='path_results']" />
<xsl:value-of select="//results/@query" /> <xsl:value-of select="//results/@query" />
&amp;pagesize=99999 &amp;pagesize=99999
&amp;page=1 &amp;page=1
@ -113,7 +113,7 @@
type="application/opensearchdescription+xml" type="application/opensearchdescription+xml"
> >
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_root']" />?xslt=opensearch <xsl:value-of select="$site_strings[@id='path_root']" />?xslt=opensearch
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="title"> <xsl:attribute name="title">
<xsl:value-of select="$site_strings[@id='site_name']" /> <xsl:value-of select="$site_strings[@id='site_name']" />
@ -160,21 +160,21 @@
<a class="header latest-additions"> <a class="header latest-additions">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_query_latestadditions']" /> <xsl:value-of select="$site_strings[@id='path_query_latestadditions']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='query_latestadditions']" /> <xsl:value-of select="$locale_strings[@id='query_latestadditions']" />
</a> </a>
<a class="header most-views"> <a class="header most-views">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_query_mostviews']" /> <xsl:value-of select="$site_strings[@id='path_query_mostviews']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='query_mostviews']" /> <xsl:value-of select="$locale_strings[@id='query_mostviews']" />
</a> </a>
<a class="header most-downloads"> <a class="header most-downloads">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_query_mostdownloads']" /> <xsl:value-of select="$site_strings[@id='path_query_mostdownloads']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='query_mostdownloads']" /> <xsl:value-of select="$locale_strings[@id='query_mostdownloads']" />
</a> </a>
@ -185,28 +185,28 @@
<!-- <!--
<a class="header"> <a class="header">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_login']" /> <xsl:value-of select="$site_strings[@id='path_login']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='header_login-to-upload']" /> <xsl:value-of select="$locale_strings[@id='header_login-to-upload']" />
</a> </a>
--> -->
<a class="header register"> <a class="header register">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_register']" /> <xsl:value-of select="$site_strings[@id='path_register']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='register']" /> <xsl:value-of select="$locale_strings[@id='register']" />
</a> </a>
<a class="header login"> <a class="header login">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_login']" /> <xsl:value-of select="$site_strings[@id='path_login']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='login']" /> <xsl:value-of select="$locale_strings[@id='login']" />
</a> </a>
<a class="header login-openid"> <a class="header login-openid">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_login-openid']" /> <xsl:value-of select="$site_strings[@id='path_login-openid']" />
</xsl:attribute> </xsl:attribute>
<img class="openid-icon" src="/images/openid-icon.png" alt="open id logo" /> <img class="openid-icon" src="/images/openid-icon.png" alt="open id logo" />
<xsl:value-of select="$locale_strings[@id='login_openid']" /> <xsl:value-of select="$locale_strings[@id='login_openid']" />
@ -217,14 +217,14 @@
<a class="header upload-video"> <a class="header upload-video">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_upload']" /> <xsl:value-of select="$site_strings[@id='path_upload']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='header_upload-video']" /> <xsl:value-of select="$locale_strings[@id='header_upload-video']" />
</a> </a>
<a class="header preferences"> <a class="header preferences">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_settings']" /> <xsl:value-of select="$site_strings[@id='path_settings']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='settings_details']" /> <xsl:value-of select="$locale_strings[@id='settings_details']" />
</a> </a>
@ -242,7 +242,7 @@
<a class="header logout"> <a class="header logout">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_logout']" /> <xsl:value-of select="$site_strings[@id='path_logout']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='logout']" /> <xsl:value-of select="$locale_strings[@id='logout']" />
</a> </a>
@ -299,21 +299,21 @@
<a class="footer view-license"> <a class="footer view-license">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_license']" /> <xsl:value-of select="$site_strings[@id='path_license']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='footer_license']" /> <xsl:value-of select="$locale_strings[@id='footer_license']" />
</a> </a>
<a class="footer view-source-code"> <a class="footer view-source-code">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_source-code']" /> <xsl:value-of select="$site_strings[@id='path_source-code']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='footer_source_code']" /> <xsl:value-of select="$locale_strings[@id='footer_source_code']" />
</a> </a>
<a class="footer report-bug"> <a class="footer report-bug">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_report_bug']" /> <xsl:value-of select="$site_strings[@id='path_report_bug']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='footer_report_bug']" /> <xsl:value-of select="$locale_strings[@id='footer_report_bug']" />
</a> </a>
@ -362,7 +362,7 @@
<div class="search-small"> <div class="search-small">
<form method="get" enctype="text/plain"> <form method="get" enctype="text/plain">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_results']" /> <xsl:value-of select="$site_strings[@id='path_results']" />
</xsl:attribute> </xsl:attribute>
<fieldset> <fieldset>
<xsl:value-of select="$locale_strings[@id='search']" />: <xsl:value-of select="$locale_strings[@id='search']" />:
@ -418,7 +418,7 @@
font-size:<xsl:value-of select="round((32-12)*(number(count)-number($min))div (number($max)-number($min)))+12" />px font-size:<xsl:value-of select="round((32-12)*(number(count)-number($min))div (number($max)-number($min)))+12" />px
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_results']" /> <xsl:value-of select="$site_strings[@id='path_results']" />
tag: tag:
<xsl:value-of select="text" /> <xsl:value-of select="text" />
</xsl:attribute> </xsl:attribute>

View file

@ -14,7 +14,7 @@
<div class="search"> <div class="search">
<form method="get" enctype="text/plain"> <form method="get" enctype="text/plain">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_results']" /> <xsl:value-of select="$site_strings[@id='path_results']" />
</xsl:attribute> </xsl:attribute>
<fieldset> <fieldset>
<input type="text" name="query" size="40" /><br /> <input type="text" name="query" size="40" /><br />
@ -40,21 +40,21 @@
<div class="toplists"> <div class="toplists">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_query_latestadditions']" /> <xsl:value-of select="$site_strings[@id='path_query_latestadditions']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='query_latestadditions']" /> <xsl:value-of select="$locale_strings[@id='query_latestadditions']" />
</a> </a>
<xsl:value-of select="$locale_strings[@id='separator']" /> <xsl:value-of select="$locale_strings[@id='separator']" />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_query_mostdownloads']" /> <xsl:value-of select="$site_strings[@id='path_query_mostdownloads']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='query_mostdownloads']" /> <xsl:value-of select="$locale_strings[@id='query_mostdownloads']" />
</a> </a>
<xsl:value-of select="$locale_strings[@id='separator']" /> <xsl:value-of select="$locale_strings[@id='separator']" />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_query_mostviews']" /> <xsl:value-of select="$site_strings[@id='path_query_mostviews']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='query_mostviews']" /> <xsl:value-of select="$locale_strings[@id='query_mostviews']" />
</a> </a>

View file

@ -13,7 +13,7 @@
<xsl:when test="//loginform/@action='openid'"> <xsl:when test="//loginform/@action='openid'">
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_login']" /> <xsl:value-of select="$site_strings[@id='path_login']" />
</xsl:attribute> </xsl:attribute>
<fieldset> <fieldset>
<input name="action" type="hidden" value="openid" /> <input name="action" type="hidden" value="openid" />
@ -31,7 +31,7 @@
<br /> <br />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_login']" /> <xsl:value-of select="$site_strings[@id='path_login']" />
</xsl:attribute> </xsl:attribute>
login with normal account login with normal account
</a> </a>
@ -41,7 +41,7 @@
<xsl:otherwise> <xsl:otherwise>
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_login']" /> <xsl:value-of select="$site_strings[@id='path_login']" />
</xsl:attribute> </xsl:attribute>
<fieldset> <fieldset>
<input name="action" type="hidden" value="login" /> <input name="action" type="hidden" value="login" />
@ -61,7 +61,7 @@
<br /> <br />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_login-openid']" /> <xsl:value-of select="$site_strings[@id='path_login-openid']" />
</xsl:attribute> </xsl:attribute>
login with openid login with openid
</a> </a>

View file

@ -12,7 +12,7 @@
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_register']" /> <xsl:value-of select="$site_strings[@id='path_register']" />
</xsl:attribute> </xsl:attribute>
<fieldset> <fieldset>
<xsl:value-of select="$locale_strings[@id='username']" />: <xsl:value-of select="$locale_strings[@id='username']" />:

View file

@ -78,7 +78,7 @@
</xsl:template> </xsl:template>
<xsl:template name="pagination-arrows"> <xsl:template name="pagination-arrows">
<xsl:variable name="query_string" select="concat($site_strings[@id='page_results'], //results/@query, '&amp;pagesize=', //results/@pagesize)" /> <xsl:variable name="query_string" select="concat($site_strings[@id='path_results'], //results/@query, '&amp;pagesize=', //results/@pagesize)" />
<div> <div>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">

View file

@ -17,7 +17,7 @@
<form method="POST"> <form method="POST">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_settings']" /> <xsl:value-of select="$site_strings[@id='path_settings']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='settings_instruction_locale']" /> <xsl:value-of select="$locale_strings[@id='settings_instruction_locale']" />

View file

@ -26,7 +26,7 @@
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_upload']" /> <xsl:value-of select="$site_strings[@id='path_upload']" />
</xsl:attribute> </xsl:attribute>
<input name="DC.Creator" type="hidden"> <input name="DC.Creator" type="hidden">
@ -125,7 +125,7 @@
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_upload']" /> <xsl:value-of select="$site_strings[@id='path_upload']" />
</xsl:attribute> </xsl:attribute>
<input name="DC.Title" type="hidden"> <input name="DC.Title" type="hidden">
@ -216,7 +216,7 @@
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_upload']" /> <xsl:value-of select="$site_strings[@id='path_upload']" />
</xsl:attribute> </xsl:attribute>
<input name="DC.Title" type="hidden"> <input name="DC.Title" type="hidden">
@ -327,7 +327,7 @@
</span> </span>
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_upload']" /> <xsl:value-of select="$site_strings[@id='path_upload']" />
</xsl:attribute> </xsl:attribute>
<input name="DC.Title" type="hidden"> <input name="DC.Title" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
@ -466,7 +466,7 @@
</span> </span>
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_upload']" /> <xsl:value-of select="$site_strings[@id='path_upload']" />
</xsl:attribute> </xsl:attribute>
<input name="DC.Title" type="hidden"> <input name="DC.Title" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
@ -633,7 +633,7 @@
</form> </form>
<form method="post" enctype="multipart/form-data"> <form method="post" enctype="multipart/form-data">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_uploader']" /> <xsl:value-of select="$site_strings[@id='path_uploader']" />
</xsl:attribute> </xsl:attribute>
<input name="DC.Title" type="hidden"> <input name="DC.Title" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">