Translation & RTL

University is a WPML compatible and multi-language ready theme. To translate this theme, please select one in two ways below:

1. Translate from parent theme

  • Download and install this tool POEdit
  • Open POEdit and load [/university/languages/university.po]
  • Translate the text and save the file
  • A file named university.mo is created. Save it in /university/languages/ folder. Rename it with Code Name of your language. For example, de_DE.mo for German – Deutsche. See language code list here https://codex.wordpress.org/WordPress_in_Your_Language
  • (For WordPress 3.x)Open [{wordpress root}/wp_config.php] and find this line define(‘WPLANG’, ”);. Change it with your language code, for example define(‘WPLANG’, ‘de_DE’);
  • (For WordPress 4.x) Go to Settings > General and change your site language

Refer video here for wordpress 3x

httpss://www.youtube.com/watch?v=jwc0uLbvb7c

  • University also supports RTL – Right To Left languages. If your language is RTL, go to Appearance > Theme Options > General > RTL mode and check Enable RTL

2. Translate from child theme

  • Copy the language folder from themes\university to themes\university-child
  • Make a new translation follow the above steps.
  • Copy this code to themes\university-child\functions.php, in which cactusthemes‘ is the text domain of University theme
function wpdocs_child_theme_setup() { load_child_theme_textdomain( 'cactusthemes', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'wpdocs_child_theme_setup' );
  • Save the functions.php file.
  • For WordPress 4.0 and above, go to Settings > General and choose Site Language

3.Use Translation to change a word

You can use Translation to change the word that the theme does not provide any option to change it. More details, please read here:

https://ticket.cactusthemes.com/kb/faq.php?id=88