You are here

function lingotek_notify_if_no_languages_added in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.6 lingotek.util.inc \lingotek_notify_if_no_languages_added()
3 calls to lingotek_notify_if_no_languages_added()
lingotek_admin_configuration_view in ./lingotek.admin.inc
lingotek_bulk_grid_form in ./lingotek.bulk_grid.inc
lingotek_dashboard in ./lingotek.dashboard.inc
Tab: Dashboard - The main Lingotek dashboard page.

File

./lingotek.util.inc, line 2659
Utility functions.

Code

function lingotek_notify_if_no_languages_added() {

  // if no languages have been enabled for Lingotek Translation,
  // add a warning message.
  $target_locales = lingotek_get_target_locales();
  if (empty($target_locales)) {
    drupal_set_message(t('No languages are enabled yet for Lingotek Translation.  Please add one or more languages (located under "Your site Languages" on the Dashboard tab).'), 'warning');
  }
}