Ariel Lira
asked 10 years ago

Hi , I am testing dw-focus but it only supports english. Is there any spanish translation to use or expand? 
Thanks
Ariel

4 Answers
DominicStaff
answered 10 years ago

Hi,
Firstly, you can find here for the document guide on how to translate the theme: http://www.designwall.com/guide/how-to-translate-wordpress-theme/
Hope  this helps !

Ariel Lira
answered 10 years ago

Thanks for the guide Dominic. I’ve successfully translated DW-FOCUS to spanish in https://github.com/arieljlira/DW-Focus/blob/master/languages/es_ES.po. You are free to use it in DW-Focus theme if you like.
Please note that original en.po file was outdated and that they were some untranslated strings in php:

===================================================================
Index: content.php
@@ -23,10 +23,10 @@
- <span class="author">by <?php the_author_posts_link(); ?> </span>
+ <span class="author"><?php _e('by', 'dw_focus');?> <?php the_author_posts_link(); ?> </span>

<span class="comments-link">
- <span>with</span>
+ <span><?php _e('with', 'dw_focus');?></span>
===================================================================
Index: footer.php
@@ -31,7 +31,7 @@
- <div class="span3"><a href="#" class="footer-toggle pull-right">Site index</a></div>
+ <div class="span3"><a href="#" class="footer-toggle pull-right"><?php _e('Site index', 'dw_focus');?></a></div>
@@ -71,8 +71,8 @@
- <p>Copyright &copy; 2012 by <a href="http://demo.designwall.com/dw-focus/" title="DW Focus" rel="nofollow">DW Focus</a>. Proudly powered by <a href="http://wordpress.org/" title="Semantic Personal Publishing Platform">WordPress</a></p>
- <p><a title="Responsive WordPress Themes for Free and Premium" href="http://designwall.com/" rel="nofollow">WordPress Theme by DesignWall</a></p>
+ <p><?php _e('Copyright &copy; 2012 by <a href="http://demo.designwall.com/dw-focus/" title="DW Focus" rel="nofollow">DW Focus</a>. Proudly powered by <a href="http://wordpress.org/" title="Semantic Personal Publishing Platform">WordPress</a>', 'dw_focus');?></p>
+ <p><?php _e('<a title="Responsive WordPress Themes for Free and Premium" href="http://designwall.com/" rel="nofollow">WordPress Theme by DesignWall</a>', 'dw_focus');?></p>
===================================================================
Index: functions.php
@@ -411,7 +411,7 @@
- echo "<li>Search</li>";
+ echo "<li>".__('Search', 'dw_focus')."</li>";
===================================================================
Ariel Lira
replied 10 years ago

Also note that in functions.php>line 337>dw_human_time_diff() you are using date() function instead of date_i18n, so dates are always in english.

– return date( get_option( 'date_format' ), $from );
+ return date_i18n( get_option( 'date_format' ), $from );
Regards,

Ariel

DominicStaff
answered 10 years ago

Awesome ! Thank for your help. We will update into the DW Focus theme 😀

Jorge Ruiz
answered 9 years ago

Hi Ariel, the Github link seems to be broken. Any chance of getting that Spanish translation for DW Focus?

Thanks,
Jorge

arieljlira
replied 9 years ago
dominic Staff
replied 9 years ago

Awesome ! Thank u so much, my friend.

Powered by DW Question & Answer Pro