You are here

function potx_test_5_page in Translation template extractor 8

Same name and namespace in other branches
  1. 6.3 tests/potx_test_5.module \potx_test_5_page()
  2. 7.3 tests/potx_test_5.module \potx_test_5_page()
  3. 7 tests/potx_test_5.module \potx_test_5_page()
  4. 7.2 tests/potx_test_5.module \potx_test_5_page()
1 string reference to 'potx_test_5_page'
potx_test_5_menu in tests/potx_test_5.module
Implementation of hook_menu()

File

tests/potx_test_5.module, line 34
File used purely to test the parser in potx.

Code

function potx_test_5_page() {
  t('This is a test string.');
  format_plural($count, '1 test string', '@count test strings');
  watchdog('test watchdog type', 'My watchdog message');
  st('Installer only test string');
  $t('Dynamic callback test string');
  t('Test string in context', array(), array(
    'context' => 'Test context',
  ));
  format_plural($count, '1 test string in context', '@count test strings in context', array(), array(
    'context' => 'Test context',
  ));
  t('');
  st('Installer string in context', array(), array(
    'context' => 'Installer context',
  ));
  $t('Dynamic string in context', array(), array(
    'context' => 'Dynamic context',
  ));
}