| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 2684 lines (99 kb) |
| Included or required: | 10 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| locale_languages_overview_form() X-Ref |
| User interface for the language overview screen. |
| theme_locale_languages_overview_form($form) X-Ref |
| Theme the language overview form. |
| locale_languages_overview_form_submit($form, &$form_state) X-Ref |
| Process language overview form submissions, updating existing languages. |
| locale_languages_add_screen() X-Ref |
| User interface for the language addition screen. |
| locale_languages_predefined_form() X-Ref |
| Predefined language setup form. |
| locale_languages_custom_form() X-Ref |
| Custom language addition form. |
| locale_languages_edit_form(&$form_state, $langcode) X-Ref |
| Editing screen for a particular language. param: $langcode |
| _locale_languages_common_controls(&$form, $language = NULL) X-Ref |
| Common elements of the language addition and editing form. param: $form param: $language |
| locale_languages_predefined_form_validate($form, &$form_state) X-Ref |
| Validate the language addition form. |
| locale_languages_predefined_form_submit($form, &$form_state) X-Ref |
| Process the language addition form submission. |
| locale_languages_edit_form_validate($form, &$form_state) X-Ref |
| Validate the language editing form. Reused for custom language addition too. |
| locale_languages_edit_form_submit($form, &$form_state) X-Ref |
| Process the language editing form submission. |
| locale_languages_delete_form(&$form_state, $langcode) X-Ref |
| User interface for the language deletion confirmation screen. |
| locale_languages_delete_form_submit($form, &$form_state) X-Ref |
| Process language deletion submissions. |
| locale_languages_configure_form() X-Ref |
| Setting for language negotiation options |
| locale_languages_configure_form_submit($form, &$form_state) X-Ref |
| Submit function for language negotiation settings. |
| locale_translate_overview_screen() X-Ref |
| Overview screen for translations. |
| locale_translate_seek_screen() X-Ref |
| String search screen. |
| locale_translate_seek_form() X-Ref |
| User interface for the string search screen. |
| locale_translate_import_form() X-Ref |
| User interface for the translation import screen. |
| locale_translate_import_form_submit($form, &$form_state) X-Ref |
| Process the locale import form submission. |
| locale_translate_export_screen() X-Ref |
| User interface for the translation export screen. |
| locale_translate_export_po_form(&$form_state, $names) X-Ref |
| Form to export PO files for the languages provided. param: $names |
| locale_translate_export_pot_form() X-Ref |
| Translation template export form. |
| locale_translate_export_po_form_submit($form, &$form_state) X-Ref |
| Process a translation (or template) export form submission. |
| locale_translate_edit_form(&$form_state, $lid) X-Ref |
| User interface for string editing. |
| locale_string_is_safe($string) X-Ref |
| Check that a string is safe to be added or imported as a translation. This test can be used to detect possibly bad translation strings. It should not have any false positives. But it is only a test, not a transformation, as it destroys valid HTML. We cannot reliably filter translation strings on inport becuase some strings are irreversibly corrupted. For example, a & in the translation would get encoded to & by filter_xss() before being put in the database, and thus would be displayed incorrectly. The allowed tag list is like filter_xss_admin(), but omitting div and img as not needed for translation and likely to cause layout issues (div) or a possible attack vector (img). |
| locale_translate_edit_form_validate($form, &$form_state) X-Ref |
| Validate string editing form submissions. |
| locale_translate_edit_form_submit($form, &$form_state) X-Ref |
| Process string editing form submissions. Saves all translations of one string submitted from a form. |
| locale_translate_delete_page($lid) X-Ref |
| String deletion confirmation page. |
| locale_translate_delete_form(&$form_state, $source) X-Ref |
| User interface for the string deletion confirmation screen. |
| locale_translate_delete_form_submit($form, &$form_state) X-Ref |
| Process string deletion submissions. |
| locale_add_language($langcode, $name = NULL, $native = NULL, $direction = LANGUAGE_LTR, $domain = '', $prefix = '', $enabled = TRUE, $default = FALSE) X-Ref |
| API function to add a language. param: $langcode param: $name param: $native param: $direction param: $domain param: $prefix param: $enabled param: $default |
| _locale_import_po($file, $langcode, $mode, $group = NULL) X-Ref |
| Parses Gettext Portable Object file information and inserts into database param: $file param: $langcode param: $mode param: $group |
| _locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = 'default') X-Ref |
| Parses Gettext Portable Object file into an array param: $op param: $file param: $mode param: $lang param: $group |
| _locale_import_message($message, $file, $lineno = NULL) X-Ref |
| Sets an error message occurred during locale file parsing. param: $message param: $file param: $lineno |
| _locale_import_one_string($op, $value = NULL, $mode = NULL, $lang = NULL, $file = NULL, $group = 'default') X-Ref |
| Imports a string into the database param: $op param: $value param: $mode param: $lang param: $file param: $group |
| _locale_import_one_string_db(&$report, $langcode, $source, $translation, $textgroup, $location, $mode, $plid = NULL, $plural = NULL) X-Ref |
| Import one string into the database. param: $report param: $langcode param: $source param: $translation param: $textgroup param: $location param: $mode param: $plid param: $plural return: |
| _locale_import_parse_header($header) X-Ref |
| Parses a Gettext Portable Object file header param: $header return: |
| _locale_import_parse_plural_forms($pluralforms, $filename) X-Ref |
| Parses a Plural-Forms entry from a Gettext Portable Object file header param: $pluralforms param: $filename return: |
| _locale_import_parse_arithmetic($string) X-Ref |
| Parses and sanitizes an arithmetic formula into a PHP expression While parsing, we ensure, that the operators have the right precedence and associativity. param: $string return: |
| _locale_import_tokenize_formula($formula) X-Ref |
| Backward compatible implementation of token_get_all() for formula parsing param: $string return: |
| _locale_import_append_plural($entry, $key) X-Ref |
| Modify a string to contain proper count indices This is a callback function used via array_map() param: $entry param: $key |
| _locale_import_shorten_comments($comment) X-Ref |
| Generate a short, one string version of the passed comment array param: $comment return: |
| _locale_import_parse_quoted($string) X-Ref |
| Parses a string in quotes param: $string return: |
| _locale_parse_js_file($filepath) X-Ref |
| Parses a JavaScript file, extracts strings wrapped in Drupal.t() and Drupal.formatPlural() and inserts them into the database. |
| _locale_export_get_strings($language = NULL, $group = 'default') X-Ref |
| Generates a structured array of all strings with translations in $language, if given. This array can be used to generate an export of the string in the database. param: $language param: $group |
| _locale_export_po_generate($language = NULL, $strings = array() X-Ref |
| Generates the PO(T) file contents for given strings. param: $language param: $strings param: $header |
| _locale_export_po($language = NULL, $output = NULL) X-Ref |
| Write a generated PO or POT file to the output. param: $language param: $output |
| _locale_export_string($str) X-Ref |
| Print out a string on multiple lines |
| _locale_export_wrap($str, $len) X-Ref |
| Custom word wrapping for Portable Object (Template) files. |
| _locale_export_remove_plural($entry) X-Ref |
| Removes plural index information from a string |
| _locale_translate_seek() X-Ref |
| Perform a string search and display results in a table |
| _locale_translate_seek_query() X-Ref |
| Build array out of search criteria specified in request variables |
| _locale_invalidate_js($langcode = NULL) X-Ref |
| Force the JavaScript translation file(s) to be refreshed. This function sets a refresh flag for a specified language, or all languages except English, if none specified. JavaScript translation files are rebuilt (with locale_update_js_files()) the next time a request is served in that language. param: $langcode return: |
| _locale_rebuild_js($langcode = NULL) X-Ref |
| (Re-)Creates the JavaScript translation file for a language. param: $language |
| _locale_translate_language_list($translation, $limit_language) X-Ref |
| List languages in search result table |
| _locale_prepare_predefined_list() X-Ref |
| Prepares the language code list for a select form item with only the unsupported ones |
| _locale_get_predefined_list() X-Ref |
| Some of the common languages with their English and native names Based on ISO 639 and http://people.w3.org/rishida/names/languages.html |
| locale_batch_by_language($langcode, $finished = NULL, $skip = array() X-Ref |
| Prepare a batch to import translations for all enabled modules in a given language. param: $langcode param: $finished param: $skip return: |
| locale_batch_by_component($components, $finished = '_locale_batch_system_finished') X-Ref |
| Prepare a batch to run when installing modules or enabling themes. This batch will import translations for the newly added components in all the languages already set up on the site. param: $components param: $finished |
| _locale_batch_build($files, $finished = NULL, $components = array() X-Ref |
| Build a locale batch from an array of files. param: $files param: $finished param: $components return: |
| _locale_batch_import($filepath, &$context) X-Ref |
| Perform interface translation import as a batch step. param: $filepath param: $results |
| _locale_batch_system_finished($success, $results) X-Ref |
| Finished callback of system page locale import batch. Inform the user of translation files imported. |
| _locale_batch_language_finished($success, $results) X-Ref |
| Finished callback of language addition locale import batch. Inform the user of translation files imported. |
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |