1
0
Fork 0

photo lockview not working, temp fix for po2php

This commit is contained in:
Friendika 2011-05-10 20:10:13 -07:00
parent 2fffec912c
commit 5eea0d5ecb
3 changed files with 5 additions and 5 deletions

View file

@ -70,9 +70,9 @@ function register_post(&$a) {
$err = ''; $err = '';
if(strlen($username) > 48) if(mb_strlen($username) > 48)
$err .= t('Please use a shorter name.') . EOL; $err .= t('Please use a shorter name.') . EOL;
if(strlen($username) < 3) if(mb_strlen($username) < 3)
$err .= t('Name too short.') . EOL; $err .= t('Name too short.') . EOL;
// I don't really like having this rule, but it cuts down // I don't really like having this rule, but it cuts down

View file

@ -35,7 +35,7 @@ function po2php_run($argv, $argc) {
if ($l[0]=="#") $l=""; if ($l[0]=="#") $l="";
if (substr($l,0,15)=='"Plural-Forms: '){ if (substr($l,0,15)=='"Plural-Forms: '){
$match=Array(); $match=Array();
preg_match("|nplurals=([0-9]*); *plural=(.*)|", $l, $match); preg_match("|nplurals=([0-9]*); *plural=(.*);|", $l, $match);
$cond = str_replace('n','$n',$match[2]); $cond = str_replace('n','$n',$match[2]);
$out .= 'function string_plural_select($n){'."\n"; $out .= 'function string_plural_select($n){'."\n";
$out .= ' return '.$cond.';'."\n"; $out .= ' return '.$cond.';'."\n";

View file

@ -4,10 +4,10 @@
<div id="photo-edit-link-wrap"> <div id="photo-edit-link-wrap">
{{ if $tools }} {{ if $tools }}
<a id="photo-edit-link" href="$tools.edit.0">$tools.edit.1</a> <a id="photo-edit-link" href="$tools.edit.0">$tools.edit.1</a>
- |
<a id="photo-toprofile-link" href="$tools.profile.0">$tools.profile.1</a> <a id="photo-toprofile-link" href="$tools.profile.0">$tools.profile.1</a>
{{ endif }} {{ endif }}
{{ if $lock }} - <img src="images/lock_icon.gif" class="lockview" alt="$lock" onclick="lockview(event,'photo$id');" /> {{ endif }} {{ if $lock }} | <img src="images/lock_icon.gif" class="lockview" alt="$lock" onclick="lockview(event,'photo/$id');" /> {{ endif }}
</div> </div>
{{ if $prevlink }}<div id="photo-prev-link"><a href="$prevlink.0">$prevlink.1</a></div>{{ endif }} {{ if $prevlink }}<div id="photo-prev-link"><a href="$prevlink.0">$prevlink.1</a></div>{{ endif }}