How to change the number of documents (items) in WPML Translation management

If you’re translating your website into another language (or languages) using WPML and have lots of of pages, posts, products, etc., then you will likely use WPML Translation management to bulk translate multiple items at once. The current version of WPML (3.1.9.6. as of this article) provides two options – show all documents or 20 documents only. In order to change this value to something your server can handle (without getting timeouts or encountering other server issues), all you have to do is:

  1. navigate to plugins/sitepress-multilingual-cms/inc/translation-management
  2. open translation-management.class.php file
  3. in row 17, you will find the following code:

Needless to say, all you have to do is change 20 to any desired value.