Title: Translating /wp-includes/link-template.php
Last modified: February 28, 2018

---

# Translating /wp-includes/link-template.php

 *  Resolved [russclem](https://wordpress.org/support/users/russclem/)
 * (@russclem)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/translating-wp-includes-link-template-php/)
 * Okay, so I used poedit and I have a .pot file which contains the strings from/
   wp-includes/link-template.php that I want to translate.
 * Now what do I do with that .pot file to make Loco Translate see it?
 * Or is there a way that I can make Loco Translate pick up /wp-includes/link-template.
   php without doing it the way that I’m trying?
 * Cheers!

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

 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/translating-wp-includes-link-template-php/#post-10023057)
 * All files must be part of a [bundle](https://localise.biz/wordpress/plugin/faqs/term-bundle).
   link-template.php is part of the WordPress **core** bundle, so I don’t recommend
   creating a POT for just one file in this way.
 * The approach I recommend is to [download the core language pack](https://translate.wordpress.org/)
   for your language. When installed, Loco Translate will pick this up.
 * Then if you want to customize some of these translations to your liking, try 
   following [guide to overriding translations](https://localise.biz/wordpress/plugin/custom-translations).
 * If you want to generate a POT file for the whole of the WordPress core, you can
   do this within Loco Translate. But it’s not really necessary if the above approach
   works for you. If there’s some reason it doesn’t, feel free to elaborate.
 *  Thread Starter [russclem](https://wordpress.org/support/users/russclem/)
 * (@russclem)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/translating-wp-includes-link-template-php/#post-10023199)
 * The above approach won’t work because I’ve modified link-template.php myself.
 * The part I modified is line 2480:
 *     ```
       if ( $GLOBALS['wp_query']->max_num_pages > 1 ) {
       		$args = wp_parse_args( $args, array(
       			'prev_text'          => __( 'See previous posts' ),
       			'next_text'          => __( 'See newer posts' ),
       			'screen_reader_text' => __( 'Posts navigation' ),
       		) );
       ```
   
 * I want it to read:
 *     ```
       if ( $GLOBALS['wp_query']->max_num_pages > 1 ) {
       		$args = wp_parse_args( $args, array(
       			'prev_text'          => __( 'See previous deals' ),
       			'next_text'          => __( 'See newer deals' ),
       			'screen_reader_text' => __( 'Posts navigation' ),
       		) );
       ```
   
 * Is there a way to achieve this without modifying the core file?
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/translating-wp-includes-link-template-php/#post-10023227)
 * Never modify the WordPress core.
 * Also, never modify source strings as means of translation. Translate them.
 * It’s perfectly valid to translate from English to English. i.e. Translate “See
   newer posts” to “See newer deals”.
 * My earlier comments still apply. I suggest (as you appear to be British?) that
   you download the [en-GB language packs](https://translate.wordpress.org/locale/en-gb/default/wp/dev).
   Then set your site to British English. Then to change the strings as above, copy
   the core `en-GB` translation files and override the text (see earlier guide on
   how to do that).

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

The topic ‘Translating /wp-includes/link-template.php’ is closed to new replies.

 * ![](https://ps.w.org/loco-translate/assets/icon-256x256.png?rev=1000676)
 * [Loco Translate](https://wordpress.org/plugins/loco-translate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loco-translate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loco-translate/)
 * [Active Topics](https://wordpress.org/support/plugin/loco-translate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loco-translate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loco-translate/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/translating-wp-includes-link-template-php/#post-10023227)
 * Status: resolved