C:/drupal/includes/locale.inc File Reference

Go to the source code of this file.


Enumerations

enum  LOCALE_JS_STRING
enum  LOCALE_IMPORT_OVERWRITE
enum  LOCALE_IMPORT_KEEP

Functions

 locale_languages_overview_form ()
 theme_locale_languages_overview_form ($form)
 locale_languages_overview_form_submit ($form, &$form_state)
 locale_languages_add_screen ()
 locale_languages_predefined_form ()
 locale_languages_custom_form ()
 locale_languages_edit_form (&$form_state, $langcode)
 _locale_languages_common_controls (&$form, $language=NULL)
 locale_languages_predefined_form_validate ($form, &$form_state)
 locale_languages_predefined_form_submit ($form, &$form_state)
 locale_languages_edit_form_validate ($form, &$form_state)
 locale_languages_edit_form_submit ($form, &$form_state)
 locale_languages_delete_form (&$form_state, $langcode)
 locale_languages_delete_form_submit ($form, &$form_state)
 locale_languages_configure_form ()
 locale_languages_configure_form_submit ($form, &$form_state)
 locale_translate_overview_screen ()
 locale_translate_seek_screen ()
 locale_translate_seek_form ()
 locale_translate_import_form ()
 locale_translate_import_form_submit ($form, &$form_state)
 locale_translate_export_screen ()
 locale_translate_export_po_form (&$form_state, $names)
 locale_translate_export_pot_form ()
 locale_translate_export_po_form_submit ($form, &$form_state)
 locale_translate_edit_form (&$form_state, $lid)
 locale_translate_edit_form_submit ($form, &$form_state)
 locale_translate_delete ($lid)
 locale_add_language ($langcode, $name=NULL, $native=NULL, $direction=LANGUAGE_LTR, $domain= '', $prefix= '', $enabled=TRUE, $default=FALSE)
 _locale_import_po ($file, $langcode, $mode, $group=NULL)
 _locale_import_read_po ($op, $file, $mode=NULL, $lang=NULL, $group= 'default')
 _locale_import_message ($message, $file, $lineno=NULL)
 _locale_import_one_string ($op, $value=NULL, $mode=NULL, $lang=NULL, $file=NULL, $group= 'default')
 _locale_import_one_string_db (&$report, $langcode, $source, $translation, $textgroup, $location, $mode, $plid=NULL, $plural=NULL)
 _locale_import_parse_header ($header)
 _locale_import_parse_plural_forms ($pluralforms, $filename)
 _locale_import_parse_arithmetic ($string)
 _locale_import_tokenize_formula ($formula)
 _locale_import_append_plural ($entry, $key)
 _locale_import_shorten_comments ($comment)
 _locale_import_parse_quoted ($string)
 _locale_parse_js_file ($filepath)
 _locale_export_get_strings ($language=NULL, $group= 'default')
 _locale_export_po_generate ($language=NULL, $strings=array(), $header=NULL)
 _locale_export_po ($language=NULL, $output=NULL)
 _locale_export_string ($str)
 _locale_export_wrap ($str, $len)
 _locale_export_remove_plural ($entry)
 _locale_translate_seek ()
 _locale_translate_seek_query ()
 _locale_invalidate_js ($langcode=NULL)
 _locale_rebuild_js ($langcode=NULL)
 _locale_translate_language_list ($translation, $limit_language)
 _locale_prepare_predefined_list ()
 _locale_get_predefined_list ()
 locale_batch_by_language ($langcode, $finished=NULL, $skip=array())
 locale_batch_by_component ($components, $finished= '_locale_batch_system_finished')
 _locale_batch_build ($files, $finished=NULL, $components=array())
 _locale_batch_import ($filepath, &$context)
 _locale_batch_system_finished ($success, $results)
 _locale_batch_language_finished ($success, $results)


Detailed Description

Administration functions for locale.module.

Definition in file locale.inc.


Enumeration Type Documentation

Translation import mode keeping existing translations and only inserting new strings.

Definition at line 24 of file locale.inc.

Translation import mode overwriting all existing translations if new translated version available.

Definition at line 18 of file locale.inc.

Regular expression pattern used to localize JavaScript strings.

Definition at line 12 of file locale.inc.


Function Documentation

_locale_parse_js_file ( filepath  ) 

End of "locale-api-import" Parses a JavaScript file, extracts strings wrapped in Drupal.t() and Drupal.formatPlural() and inserts them into the database.

Definition at line 1621 of file locale.inc.

References $result, db_fetch_object(), and db_query().

Here is the call graph for this function:


Generated on Mon Jun 2 15:08:06 2008 for SimpleTest by  1.5.5