Title: Add language string in WordPress
Last modified: August 22, 2016

---

# Add language string in WordPress

 *  [sicogary](https://wordpress.org/support/users/sicogary/)
 * (@sicogary)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/add-language-string-in-wordpress/)
 * Hello there,
 * Basically I want to change the words “Previous post” and “Next Post” for “Previous
   Work” and “Next work” in this site: [http://fontaneriaborja.com/en/portfolio-view/solar-panels-swimming-pool/](http://fontaneriaborja.com/en/portfolio-view/solar-panels-swimming-pool/)
 * I have gone into /wp-content/themes/CherryFramework/loop/loop-single-portfolio.
   php and found this code:
 *     ```
       <!--BEGIN .pager .single-pager -->
       	<ul class="pager single-pager">
       	<?php if (get_previous_post()) : ?>
       		<li class="previous"><?php previous_post_link('%link', theme_locals("prev_post")) ?>
       	<?php endif; ?>
   
       	<?php if (get_next_post()) : ?>
       		<li class="next"><?php next_post_link('%link', theme_locals("next_post")) ?>
       	<?php endif; ?>
       	<!--END .pager .single-pager -->
       ```
   
 * I believe that **theme_locals(“prev_post”)** and **theme_locals(“next_post”)**
   are the strings that call the text.
 * Ideally what I would like to do is to change and add a new string for something
   like theme_locals(“prev_work”) and theme_locals(“next_work”) that would generate
   two new translations to my .po files. However, is here where I get stuck.
 * It is a multi language WordPress 4.1.1 site using Polylang and a theme from Template
   Monster with the cherry plugin.
 * I have already searched around with no luck to understand how this works. So 
   any help would be really appreciated.
 * Thank you for your time and thanks in advance to all of you.
 * Best
 * P.S.: I am a beginner in terms of web development.

Viewing 1 replies (of 1 total)

 *  Thread Starter [sicogary](https://wordpress.org/support/users/sicogary/)
 * (@sicogary)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/add-language-string-in-wordpress/#post-5866671)
 * Hi guys,
 * This has been answered here:
 * [http://stackoverflow.com/questions/28883951/how-to-add-a-new-language-string-in-wordpress/28884919?noredirect=1#comment46032429_28884919](http://stackoverflow.com/questions/28883951/how-to-add-a-new-language-string-in-wordpress/28884919?noredirect=1#comment46032429_28884919)
 * I hope this helps.
 * Best

Viewing 1 replies (of 1 total)

The topic ‘Add language string in WordPress’ is closed to new replies.

## Tags

 * [language](https://wordpress.org/support/topic-tag/language/)
 * [strings](https://wordpress.org/support/topic-tag/strings/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [sicogary](https://wordpress.org/support/users/sicogary/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/add-language-string-in-wordpress/#post-5866671)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
