Translating some strings in files located in wp-includes
-
Hi guys,
For our intranet I need to translate some strings in code found in files located in wp-includes into the local language. For example:
Found in: class-wp-locale.php
$this->weekday[0] = /* translators: weekday */ __('Sunday'); $this->weekday[1] = /* translators: weekday */ __('Monday'); $this->weekday[2] = /* translators: weekday */ __('Tuesday');
$this->month['01'] = /* translators: month name */ __( 'January' ); $this->month['02'] = /* translators: month name */ __( 'February' ); $this->month['03'] = /* translators: month name */ __( 'March' );
I haven’t modified them because I dunno if these strings are needed somewhere else and how my translating them would affect the functionality of the template. I have tried the Loco Translate plugin but it doesn’t translate these files. Can I modify that, since it’s not advisable to modify code files? Or how can I go around this?
TIA
- The topic ‘Translating some strings in files located in wp-includes’ is closed to new replies.