Skip to content

Instantly share code, notes, and snippets.

@cdsaenz
Created November 8, 2022 16:12
Show Gist options
  • Save cdsaenz/66f399221983c8441fe07e20cd06068a to your computer and use it in GitHub Desktop.
Save cdsaenz/66f399221983c8441fe07e20cd06068a to your computer and use it in GitHub Desktop.
WPML Notes

WooCommerce

  • Let products be managed automatically.
  • Edit categories in Taxonomy Translation, Product Categories.

Templates

  • Some pages I'll create a template (ie template-contact.php) with __('') strings inside
  • Pages with lot of text i'll create as template-contact_es.php etc loaded automatically by a function. The template will be just one which will invoke such function.

Theme strings

  • The theme domain strings will be translated in "String Translation"

Settings

  • "Translate some": instead of all might be a good idea, to avoid unnecessary credits lost in testing.
  • "Synchronize page template": I ended up unchecking it, but it was originally checked.
  • "When deleting a post, delete translations as well": might be interesting to enable.
  • Auto Generate Page URL from title
  • "Translate custom post and taxonomy base slugs (via WPML String Translation)."
  • Taxonomies set as translatable: Categories, Tags
  • Media Translation.. left as it is for now.

Pages

  • When creating new pages you will want to open the metabox to duplicate to the other languages
  • Remove pages that don't have all the "flags" with a pencil, specially those missing english
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment