some small fixes

git-svn-id: http://yolanda.mister-muffin.de/svn@303 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2008-04-15 21:10:09 +00:00
parent ced190b5c9
commit 2b2f4a64d5
4 changed files with 13 additions and 10 deletions

View file

@ -71,6 +71,8 @@
<string id="error_upload_duplicate">Video has already been uploaded</string> <string id="error_upload_duplicate">Video has already been uploaded</string>
<string id="error_upload_file_too_small">The filesize of the video you uploaded is too small</string> <string id="error_upload_file_too_small">The filesize of the video you uploaded is too small</string>
<string id="error_upload_file_too_big">The filesize of the video you uploaded is too big</string> <string id="error_upload_file_too_big">The filesize of the video you uploaded is too big</string>
<string id="error_upload_video_width_too_small">The width of the video you uploaded is too small</string>
<string id="error_upload_video_height_too_small">The height of the video you uploaded is too small</string>
<string id=""></string> <string id=""></string>
<!-- information --> <!-- information -->

View file

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<languages> <languages>
<lang>
<short></short>
<name lang="en">Undefined</name>
</lang>
<lang> <lang>
<short>aa</short> <short>aa</short>
<name lang="en">Afar</name> <name lang="en">Afar</name>

View file

@ -28,7 +28,7 @@ if($userinfo->{'username'})
@unique{ @subject } = (); @unique{ @subject } = ();
foreach $tag (keys %unique) foreach $tag (keys %unique)
{ {
if(length($tag) >= 3) if(length($tag) >= $config->{"page_tag_lenght_min"})
{ {
$subject.=$tag." "; $subject.=$tag." ";
} }

View file

@ -274,19 +274,16 @@
<xsl:value-of select="$locale_strings[@id='instruction_language']" /> <xsl:value-of select="$locale_strings[@id='instruction_language']" />
<br /> <br />
<!-- somehow one cannot access DC.Language from inside the for-each... -->
<xsl:variable name="language" select="//uploadform/@DC.Language" />
<select name="DC.Language" size="1"> <select name="DC.Language" size="1">
<xsl:for-each select="$language_strings"> <xsl:for-each select="$language_strings">
<option> <option>
<xsl:variable name="short" select="short" /> <xsl:variable name="short" select="short" />
<xsl:if test="//uploadform/@DC.Language=short"> <xsl:if test="$short=$language">
<!-- never executed, plz fix --> <xsl:attribute name="selected">selected</xsl:attribute>
<xsl:attribute name="selected">
selected
</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:attribute name="value"> <xsl:attribute name="value"><xsl:value-of select="$short" /></xsl:attribute>
<xsl:value-of select="$short" />
</xsl:attribute>
<xsl:value-of select="name[@lang='en']" /><!-- language hardcoded to en - plz fix this --> <xsl:value-of select="name[@lang='en']" /><!-- language hardcoded to en - plz fix this -->
(<xsl:value-of select="name[@lang=$short]" />) (<xsl:value-of select="name[@lang=$short]" />)
</option> </option>