• Resolved R J

    (@r-j-1)


    I find an encoding problems: when album name truncating (more than 14 simbols), you’ll see unexpected simbol in the end of string (see in attach).

    I modify string #240 in file app/main/profile/BPMediaAlbum.php

    Change it from

    <h3 title="<?php echo $this->name ?>"><a href="<?php echo $this->url ?>" title="<?php _e($this->description, BP_MEDIA_TXT_DOMAIN); ?>"><?php echo ( ( strlen($this->name) > 14 ) ? substr($this->name, 0, 14) . "&hellip;" : $this->name ); ?> </a><?php echo ' (' . count($this->media_entries) . ')'; ?></h3>

    to

    <h3 title="<?php echo $this->name ?>"><a href="<?php echo $this->url ?>" title="<?php _e($this->description, BP_MEDIA_TXT_DOMAIN); ?>"><?php echo ( ( strlen($this->name) > 40 ) ? mb_convert_encoding(substr($this->name, 0, 40), 'UTF-8', 'UTF-8') . "&hellip;" : $this->name ); ?> </a><?php echo ' (' . count($this->media_entries) . ')'; ?></h3>

    and this solve the problem. I think, “14” simbols in code – not flexible, you can include this to the Options page (it will be customizable).

    Another problem – I cant translate many words (yes, I create .po and .mo files in language folder).
    – “All Albums” in Media tab – translated only word “All”, so i have “Все Albums”;

    – Роман Пупкин добавил(а) Photo 4 дн. назад – I cant translate “Photo” world

    – and so on …

    http://wordpress.org/extend/plugins/buddypress-media/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Encoding bug’ is closed to new replies.