Encoding bug
-
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) . "…" : $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') . "…" : $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 …
- The topic ‘Encoding bug’ is closed to new replies.