Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorsofusarni
    • CommentTimeJun 8th 2006
     
    I just discovered Plogger and I like it alot.

    I am trying to personalize it and I am doing OK. I am not, however, an English speaking person and neither are the people that visit my site so I have been changing it from English to Icelandic.

    I have, however, stumbled into a problem.

    In the file "gallery.php" there is a code that says:

    $output .= $row["name"].'
    <br /><div class="meta-header">('.$num_albums.' album';
    if ($num_albums != 1) $output .= 's';
    $output .= ')</div></div>
    </li>';

    This places the letter 's' after the word 'album' if the collection contains more than one album. But in my language, I need to change the whole word if the collection contains only one album.

    Example:

    One picture: safn
    Many pictures: söfn

    I know that it is a rather simple php code to be written but I have been trying but I cannot do it.

    Any suggestions?
    • CommentAuthorjack
    • CommentTimeJun 11th 2006
     
    There will be a multi-langauge file when Plogger is officially released, but I don't know if it will handle this 'problem'. And I'm not sure if I understand this code correctly (I always have trouble putting the apostrophes in the right place), but perhaps you could try this:

    $output .= $row["name"].'
    <br /><div class="meta-header">
    ('.$num_albums;
    if ($num_albums != 1) {
    $output .= 'söfn';
    } else {
    $output .= 'safn';
    }
    $output .= ')
    </div></div>
    </li>';