Translation & RTL

1. Make a new translation from Parent theme

Colossal is a WMPL-compatible and multi-language-ready theme. To translate this theme:

  • Download and install this tool POEdit
  • Open POEdit and load [/colossal/languages/colossal.po]
  • Translate the text and save the file
  • A file named colossal.mo is created. Save it in /colossal/languages/ folder. Rename it with Code Name of your language. For example, de_DE.mo for German – Deutsche. See language code list here http://codex.wordpress.org/WordPress_in_Your_Language
  • For WordPress 4.0 and above, go to Settings > General and choose Site Language

2. Translate from Child theme.

  • Copy the language folder from themes\colossalto themes\colossal-child
  • Make a new translation follow the above steps.
  • Copy this code to themes\colossal-child\functions.php, in which colossal‘ is the text domain of Colossal theme
/* Loads the child theme textdomain. */
function wpdocs_child_theme_setup() { load_child_theme_textdomain( 'colossal', 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. Update an Older Translation

  • Copy your existing Custom Language folder from your current theme version to the updated version’s Language folder.
  • Open your old existing .pot file in Poedit
  • Choose Catalog > Update from POT file from the menu and select your new colossal.pot file
  • The catalog will then be auto updated with all the new text strings, and your custom ones will be preserved.
  • Save your updated .pot file

RTL

Colossal also supports RTL – Right To Left languages. The remarkable is that if your language is RTL the theme will recognize it and turns theme’s direction to RTL automatically. So you don’t need to change any option.