Title: Plugin translation
Last modified: August 21, 2016

---

# Plugin translation

 *  Resolved [molina_wind](https://wordpress.org/support/users/molina_wind/)
 * (@molina_wind)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-translation-7/)
 * Hi,
    I’m translating the plugin into spanish by modifying code. Everything is
   already translated unless the “4 minutes ago” text. Where can I edit this? Thanks
   in advance
 * [http://wordpress.org/plugins/simple-ajax-chat/](http://wordpress.org/plugins/simple-ajax-chat/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-translation-7/#post-4035313)
 * That’s in the JavaScript file (I think..) – will have to investigate if it’s 
   translatable or not..
 *  Thread Starter [molina_wind](https://wordpress.org/support/users/molina_wind/)
 * (@molina_wind)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-translation-7/#post-4035332)
 * Thanks for your help Jeff.
    I found something in “simple-ajax-chat-form.php”
 * I edit this way:
 * <div id=”sac-latest-message”><span><?php _e(‘Último mensaje:’, ‘sac’); ?></span
   > <em id=”responseTime”> hace <?php echo sac_time_since($r->time); ?></div>
    
   <ul id=”sac-messages”>
 * So text in now PARTIALLY in spanish before sending a message. But once a message
   is sent I have the “0 minutes ago” text again.
 *  Thread Starter [molina_wind](https://wordpress.org/support/users/molina_wind/)
 * (@molina_wind)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-translation-7/#post-4035342)
 * I guess I did it editing:
    “simple-ajax-chat-core.php”
 * // time since entry
    function sac_time_since($original) { $chunks = array( //
   unix time (segundos) array(60 * 60 * 24 * 365 , ‘año’), array(60 * 60 * 24 * 
   30 , ‘mes’), array(60 * 60 * 24 * 7, ‘semana’), array(60 * 60 * 24 , ‘día’), 
   array(60 * 60 , ‘hora’), array(60 , ‘minuto’),
 * I still need to find how to modify “ago” word showed after message is published.
 *  Thread Starter [molina_wind](https://wordpress.org/support/users/molina_wind/)
 * (@molina_wind)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-translation-7/#post-4035343)
 * Done!
 * $loop = $id .”—” . $name . “—” . $text . “—” . sac_time_since($time) . ” atrás—”.
   $url . “—“;
 * Hope this custom solutions helps someone else.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-translation-7/#post-4035650)
 * These are all localized in the latest version of the plugin (20131105). Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Plugin translation’ is closed to new replies.

 * ![](https://ps.w.org/simple-ajax-chat/assets/icon-256x256.png?rev=1473439)
 * [Simple Ajax Chat – Add a Fast, Secure Chat Box](https://wordpress.org/plugins/simple-ajax-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-ajax-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-ajax-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-ajax-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-ajax-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-ajax-chat/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-translation-7/#post-4035650)
 * Status: resolved