Child theme locale not loading

I am creating a child theme, but the locale is not loading, I don’t know what I am doing wrong. In the in.php file I have

class ChildBUPHealthScience extends ThemePlugin {
	/**
	 * Initialize the theme's styles, scripts and hooks. This is only run for
	 * the currently active theme.
	 *
	 * @return null
	 */
	public function init() {
		$this->setParent('healthsciencesthemeplugin');
		$this->modifyStyle('stylesheet', array('addLess' => array('styles/custom.less')));
	}

	/**
	 * Get the display name of this plugin
	 * @return string
	 */
	function getDisplayName() {
		return __("plugins.themes.ChildBUP-HealthScience.name");
	}

	/**
	 * Get the description of this plugin
	 * @return string
	 */
	function getDescription() {
		return __("plugins.themes.ChildBUP-HealthScience.description");
	}
}

in the locale/en_US/locale.xml file I have:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE locale SYSTEM "../../../../../lib/pkp/dtd/locale.dtd">
<locale name="en_US" full_name="U.S. English">

<message key="plugins.themes.ChildBUP-HealthScience.name">Health Science Child BUP</message>

<message key="plugins.themes.ChildBUP-HealthScience.description">A child theme for BUP journals, based on the Health Sciences Theme.</message>

</locale>

the folder is named ChildBUP-HealthScience and the class is ChildBUPHealthScience. Neither of them seems to be working, I get always

##plugins.themes.ChildBUP-HealthScience.name##
##plugins.themes.ChildBUP-HealthScience.description##

Found the solution: the “po” file was missing.

This topic was automatically closed after 5 days. New replies are no longer allowed.