当前位置: 首页>>代码示例>>PHP>>正文


PHP return_mod_list_strings_language函数代码示例

本文整理汇总了PHP中return_mod_list_strings_language函数的典型用法代码示例。如果您正苦于以下问题:PHP return_mod_list_strings_language函数的具体用法?PHP return_mod_list_strings_language怎么用?PHP return_mod_list_strings_language使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了return_mod_list_strings_language函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getChartLabels

 /**
  * Returns the formatted chart label data for the timeperiod
  *
  * @param $chartData Array of chart data values
  * @return formatted Array of chart data values where the labels are broken down by the TimePeriod's increments
  */
 public function getChartLabels($chartData)
 {
     if (!empty($_SESSION['authenticated_user_language'])) {
         $list_strings = return_mod_list_strings_language($_SESSION['authenticated_user_language'], 'Calendar');
     } else {
         global $current_language;
         $list_strings = return_mod_list_strings_language($current_language, 'Calendar');
     }
     $timedate = TimeDate::getInstance();
     $months = array();
     $startDate = $timedate->fromDbDate($this->start_date)->setTime(0, 0, 0);
     $count = 0;
     while ($count < 3) {
         $val = $chartData;
         $month = $startDate->format('n');
         if (isset($list_strings['dom_cal_month_long'][$month])) {
             $val['label'] = $list_strings['dom_cal_month_long'][$month] . ' ' . $startDate->format('Y');
         } else {
             $val['label'] = $startDate->format($this->chart_label);
         }
         $val['start_timestamp'] = $startDate->setDate($startDate->format('Y'), $startDate->format('m'), 1)->setTime(0, 0, 0)->getTimestamp();
         $val['end_timestamp'] = $startDate->setDate($startDate->format('Y'), $startDate->format('m'), $startDate->format('t'))->setTime(23, 59, 59)->getTimestamp();
         $startDate->modify('+1 day')->setTime(0, 0, 0);
         $months[$count++] = $val;
     }
     return $months;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:33,代码来源:QuarterTimePeriod.php

示例2: fill_in_additional_detail_fields

 function fill_in_additional_detail_fields()
 {
     global $current_language;
     $mod_list_strings = return_mod_list_strings_language($current_language, "ZuckerReports");
     $intervals = $mod_list_strings["SCHEDULE_INTERVALS"];
     $this->schedule_interval_desc = $intervals[$this->schedule_interval];
     $this->assigned_user_name = get_assigned_user_name($this->assigned_user_id);
     $this->team_name = SimpleTeams::get_assigned_team_name($this);
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:9,代码来源:RunnableReport.php

示例3: get_summary_text

 function get_summary_text()
 {
     global $current_language;
     $mod_strings = return_module_language($current_language, "ZuckerListingTemplate");
     $mod_list_strings = return_mod_list_strings_language($current_language, "ZuckerListingTemplate");
     $result = "";
     $result .= ListingTemplate::get_field_display_name($this->module_name, $this->field_name);
     $result .= ", ";
     $result .= $mod_list_strings["LISTING_ORDER_TYPES"][$this->order_type];
     return $result;
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:11,代码来源:ListingTemplateOrder.php

示例4: array_merge

<?php

$mod_strings = array_merge(return_module_language("en_us", "ZuckerReports"), array('LBL_QUERY_TEMPLATE_NEW' => 'New Query Template', 'LBL_QUERY' => 'Custom Query', 'LBL_QUERY_NAME' => 'Query Name', 'LBL_QUERY_SQL' => 'Query', 'LBL_QUERY_SQL_HELP' => 'Please enter the SQL query for this report. To include parameter selection, enter a "$" followed by the parameter name, and the value will be inserted at this position on report execution.<br/><br/>The following placeholders are supported as well: <br/><b>$SUGAR_USER_ID</b> - contains the ID of the currently logged on user<br/><b>$SUGAR_USER_NAME</b> - contains the name of the currently logged on user<br/><b>$SUGAR_SESSION_ID</b> - contains the ID of the current session', 'LBL_QUERY_DESCRIPTION' => 'Description', 'LBL_ASSIGNED_USER_ID' => 'Assigned To:', 'LBL_QUERY_ONDEMAND_COLUMN_DELIMITER' => 'Column Delimiter', 'LBL_QUERY_ONDEMAND_ROW_DELIMITER' => 'Row Delimiter', 'LBL_QUERY_ONDEMAND_INCLUDE_HEADER' => 'Include Header'));
$mod_list_strings = array_merge(return_mod_list_strings_language("en_us", "ZuckerReports"), array('QUERY_EXPORT_TYPES' => array('CSV' => 'Comma Separated Values (*.csv)', 'HTML' => 'HTML (*.html)', 'SIMPLEHTML' => 'Simple HTML (*.html)', 'TABLE' => 'Inline Table'), 'COL_DELIMS' => array(',' => 'Colon (,)', ';' => 'Semicolon (;)', 'tab' => 'Tab (\\t)', '.' => 'Dot (.)'), 'ROW_DELIMS' => array('newline' => 'Newline (\\n)')));
开发者ID:omusico,项目名称:sugar_work,代码行数:4,代码来源:en_us.lang.php

示例5: array_merge

<?php

$mod_strings = array_merge(return_module_language("ge_ge", "ZuckerReports"), array('LBL_REPORT_TEMPLATE_NEW' => 'Neue JasperReports-Vorlage', 'LBL_ASSIGNED_USER_ID' => 'Zugewiesen an:', 'LBL_REPORT' => 'JasperReports', 'LBL_REPORT_NAME' => 'Vorlagenname', 'LBL_REPORT_FILENAME' => 'Berichtdatei', 'LBL_REPORT_DESCRIPTION' => 'Kommentar', 'LBL_REPORT_EXPORT_AS' => 'M&ouml;gliche Formate', 'LBL_SUBREPORTS' => 'Subreports', 'LBL_SUBREPORT' => 'Subreport hinzuf&uuml;gen', 'LBL_SUBREPORT_HELP' => 'Subreports werden in einer eigenen Datei gespeichert. Um JasperReports den Zugriff darauf zu erm&ouml;glichen, geben Sie bitte diese Dateien hier an. Wenn Sie diese schon einmal hinaufgeladen haben, brauchen Sie das nicht mehr zu machen.', 'LBL_RESOURCES' => 'Weitere Resourcen', 'LBL_RESOURCE' => 'Resource hinzuf&uuml;gen', 'LBL_RESOURCE_HELP' => 'Bilder und Scriptlets eines Berichtes werden in eigenen Dateien gespeichert. Um JasperReports den Zugriff darauf zu erm&ouml;glichen, geben Sie bitte diese Dateien hier an. Wenn Sie diese schon einmal hinaufgeladen haben, brauchen Sie das nicht mehr zu machen.', 'ERR_TEMPLATE_INVALID_FILE' => 'Es werden nur Bericht-Design-Dateien (*.jrxml) unterst&uuml;tzt'));
$mod_list_strings = array_merge(return_mod_list_strings_language("ge_ge", "ZuckerReports"), array('REPORT_EXPORT_TYPES' => array('PDF' => 'Adobe PDF (*.pdf)', 'XLS' => 'Excel (*.xls)', 'HTML' => 'HTML (*.html)', 'XML' => 'XML (extern images, *.xml)', 'XML_EMBED' => 'XML (embedded images, *.xml)')));
开发者ID:omusico,项目名称:sugar_work,代码行数:4,代码来源:ge_ge.lang.php

示例6: array_merge

<?php

$mod_strings = array_merge(return_module_language("fr_FR", "ZuckerReports"), array('LBL_REPORT_TEMPLATE_NEW' => 'Nouveau modèle de JasperReports', 'LBL_ASSIGNED_USER_ID' => 'Assigned To:', 'LBL_REPORT' => 'JasperReports', 'LBL_REPORT_NAME' => 'Nom du modèle', 'LBL_REPORT_FILENAME' => 'Fichier du modèle', 'LBL_REPORT_DESCRIPTION' => 'Description', 'LBL_REPORT_EXPORT_AS' => 'Formats autorisés', 'LBL_SUBREPORTS' => 'Sous-rapport', 'LBL_SUBREPORT' => 'Charger Sous-rapport', 'LBL_SUBREPORT_HELP' => 'Les sous-rapports sont sauvegardés dans leur propres fichiers. Pour que JasperReports puisse les charger, mettez les ici. Si vous avez déjà chargé les rapports, il n\'est pas nécessaire de les recharger.', 'LBL_RESOURCES' => 'Autres Ressources', 'LBL_RESOURCE' => 'Charger Ressources', 'LBL_RESOURCE_HELP' => 'Les images et les scriptlets sont sauvegardés dans leur propres fichiers. Pour que JasperReports puisse les charger, mettez les ici. Si vous avez déjà chargé les rapports, il n\\st pas nécessaire de les recharger.', 'ERR_TEMPLATE_INVALID_FILE' => 'Seul les rapports (*.jrxml) sont gérés'));
$mod_list_strings = array_merge(return_mod_list_strings_language("fr_FR", "ZuckerReports"), array('REPORT_EXPORT_TYPES' => array('PDF' => 'Adobe PDF (*.pdf)', 'XLS' => 'Excel (*.xls)', 'HTML' => 'HTML (*.html)', 'XML' => 'XML (images externes, *.xml)', 'XML_EMBED' => 'XML (images imbriquées, *.xml)')));
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:4,代码来源:fr_FR.lang.php

示例7: get_format_selection

 function get_format_selection()
 {
     global $current_language, $app_strings;
     $mod_strings = return_module_language($current_language, $this->module_dir);
     $mod_list_strings = return_mod_list_strings_language($current_language, $this->module_dir);
     if (isset($_REQUEST["format"])) {
         if (!array_key_exists($_REQUEST["format"], $mod_list_strings["REPORT_EXPORT_TYPES"])) {
             $_REQUEST["format"] = null;
         }
     }
     if (!isset($_REQUEST["format"])) {
         $_REQUEST["format"] = "PDF";
     }
     if ($_REQUEST["format"] == "HTML") {
         $this->report_result_type = "FORWARD";
     } else {
         $this->report_result_type = "FILE";
     }
     $export_types = $this->get_export_selection_array($_REQUEST['format']);
     return join("\n", $export_types);
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:21,代码来源:ReportTemplate.php

示例8: array_merge

<?php

$mod_strings = array_merge(return_module_language("es_es", "ZuckerReports"), array('LBL_WORD_TEMPLATE_NEW' => 'Nueva Plantilla de Office', 'LBL_WORD' => 'Plantilla de Word', 'LBL_OPENOFFICE' => 'Plantilla de OpenOffice', 'LBL_WORD_NAME' => 'Nombre de Plantilla', 'LBL_WORD_FILENAME' => 'Archivo de Plantilla', 'LBL_WORD_DESCRIPTION' => 'Descripción', 'LBL_WORD_QUERY' => 'Consulta', 'LBL_ASSIGNED_USER_ID' => 'Assigned To:', 'LBL_WORD_CREATE_WORD_TEMPLATE' => 'Combinar nueva Plantilla de Office', 'LBL_WORD_WORD_TEMPLATES' => 'Plantillas de Office Combinadas', 'LBL_WORD_ONDEMAND_SAVE_PATH' => 'Guardar en carpeta', 'ERR_TEMPLATE_INVALID_OFFICE_FILE' => 'Solo archivos de Word (*.doc) y OpenOffice/StarOffice (*.stw) son soportados', 'LBL_LOADER_SETUP' => 'Por favor instale <a href="modules/ZuckerReports/resources/ZuckerReportsLoaderSetup.msi"><strong>Cargador ZuckerReports</strong></a> para soporte de Microsoft Office y OpenOffice.'));
$mod_list_strings = array_merge(return_mod_list_strings_language("es_es", "ZuckerReports"), array('WORD_EXPORT_TYPES' => array('NewDocument' => 'Nuevo Documento', 'Print' => 'Enviar a impresora', 'Mail' => 'Enviar como e-mail', 'Fax' => 'Enviar como Fax (si su entorno lo permite)'), 'OPENOFFICE_EXPORT_TYPES' => array('Print' => 'Enviar a la impresora', 'File' => 'Guardar como un archivo')));
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:4,代码来源:es_es.lang.php

示例9: array_merge

<?php

$mod_strings = array_merge(return_module_language("fr_FR", "ZuckerReports"), array('LBL_QUERY_TEMPLATE_NEW' => 'Nouveau modèle Requètes', 'LBL_QUERY' => 'Requètes', 'LBL_QUERY_NAME' => 'Nom Requètes', 'LBL_QUERY_SQL' => 'Requètes', 'LBL_QUERY_SQL_HELP' => 'Saisir la requête SQL pour ce rapport. Saisir le nom du paramètres avec un $ devant, et la valeur associée sera insérée dans le rapport<br/><br/>The following placeholders are supported as well: <br/><b>$SUGAR_USER_ID</b> - contains the ID of the currently logged on user<br/><b>$SUGAR_USER_NAME</b> - contains the name of the currently logged on user<br/><b>$SUGAR_SESSION_ID</b> - contains the ID of the current session', 'LBL_QUERY_DESCRIPTION' => 'Description', 'LBL_ASSIGNED_USER_ID' => 'Assigned To:', 'LBL_QUERY_ONDEMAND_COLUMN_DELIMITER' => 'Délimiteur Colonne', 'LBL_QUERY_ONDEMAND_ROW_DELIMITER' => 'Délimiteur ligne', 'LBL_QUERY_ONDEMAND_INCLUDE_HEADER' => 'Inclure l\'en-tête'));
$mod_list_strings = array_merge(return_mod_list_strings_language("fr_FR", "ZuckerReports"), array('QUERY_EXPORT_TYPES' => array('CSV' => 'Liste CSV avec virgules (*.csv)', 'HTML' => 'HTML (*.html)', 'SIMPLEHTML' => 'Simple HTML (*.html)', 'TABLE' => 'Inline Table'), 'COL_DELIMS' => array(',' => 'Colonne (,)', ';' => 'Semicolonne (;)', 'tab' => 'Tab (\\t)', '.' => 'Dot (.)'), 'ROW_DELIMS' => array('newline' => 'Nouvelle ligne (\\n)')));
开发者ID:omusico,项目名称:sugar_work,代码行数:4,代码来源:fr_FR.lang.php

示例10: _getStrings

 /**
  * Load language Calendar strings
  * @internal
  * @param string $name string section to return
  * @return array
  */
 protected function _getStrings($name)
 {
     if (empty($this->_strings)) {
         $this->_strings = return_mod_list_strings_language($GLOBALS['current_language'], "Calendar");
     }
     return $this->_strings[$name];
 }
开发者ID:netconstructor,项目名称:sugarcrm_dev,代码行数:13,代码来源:SugarDateTime.php

示例11: load_ts

 function load_ts($timestamp)
 {
     //	global $mod_list_strings;
     global $current_language;
     $mod_list_strings = return_mod_list_strings_language($current_language, "Calendar");
     if (empty($timestamp)) {
         $timestamp = time();
     }
     $this->ts = $timestamp;
     global $timedate;
     $tdiff = $timedate->adjustmentForUserTimeZone();
     $date_str = date('i:G:H:j:d:t:w:z:L:W:n:m:Y:Z', $timestamp - $tdiff * 60);
     list($this->min, $this->hour, $this->zhour, $this->day, $this->zday, $this->days_in_month, $this->day_of_week, $this->day_of_year, $is_leap, $this->week, $this->month, $this->zmonth, $this->year, $this->tz_offset) = explode(':', $date_str);
     $this->tz_offset = date('Z') - $tdiff * 60;
     $this->day_of_week_short = $mod_list_strings['dom_cal_weekdays'][$this->day_of_week];
     $this->day_of_week_long = $mod_list_strings['dom_cal_weekdays_long'][$this->day_of_week];
     $this->month_short = $mod_list_strings['dom_cal_month'][$this->month];
     $this->month_long = $mod_list_strings['dom_cal_month_long'][$this->month];
     $this->days_in_year = 365;
     if ($is_leap == 1) {
         $this->days_in_year += 1;
     }
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:23,代码来源:DateTimeUtil.php

示例12: get_format_parameters

 function get_format_parameters()
 {
     global $current_language, $app_strings;
     $mod_strings = return_module_language($current_language, $this->module_dir);
     $mod_list_strings = return_mod_list_strings_language($current_language, $this->module_dir);
     $xtpl = new XTemplate('modules/ZuckerWordTemplate/OnDemand.html');
     $xtpl->assign("MOD", $mod_strings);
     $xtpl->assign("APP", $app_strings);
     $xtpl->parse("msg");
     return $xtpl->text("msg");
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:11,代码来源:WordTemplate.php

示例13: return_module_language

<?php

$mod_strings = return_module_language("nb_no", "ZuckerReports");
$mod_list_strings = return_mod_list_strings_language("nb_no", "ZuckerReports");
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:4,代码来源:nb_no.lang.php

示例14: getStringsJSON

function getStringsJSON()
{
    //set module and application string arrays based upon selected language
    // $app_strings = return_application_language($current_language);
    global $current_language;
    $currentModule = 'Calendar';
    $mod_list_strings = return_mod_list_strings_language($current_language, $currentModule);
    global $json, $global_registry_var_name;
    $str = "\n" . $global_registry_var_name . "['calendar_strings'] =\t{\"dom_cal_month_long\":" . $json->encode($mod_list_strings['dom_cal_month_long']) . ",\"dom_cal_weekdays_long\":" . $json->encode($mod_list_strings['dom_cal_weekdays_long']) . "}\n";
    if (empty($_REQUEST['module'])) {
        $_REQUEST['module'] = 'Home';
    }
    $currentModule = $_REQUEST['module'];
    $mod_strings = return_module_language($current_language, $currentModule);
    return $str . "\n" . $global_registry_var_name . "['meeting_strings'] =\t" . $json->encode($mod_strings) . "\n";
}
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:16,代码来源:json_server.php

示例15: getStringsJSON

 function getStringsJSON($module)
 {
     global $current_language;
     $currentModule = 'Calendar';
     $mod_list_strings = return_mod_list_strings_language($current_language, $currentModule);
     global $json;
     $str = "\n" . $this->global_registry_var_name . "['calendar_strings'] =  {\"dom_cal_month_long\":" . $json->encode($mod_list_strings['dom_cal_month_long']) . ",\"dom_cal_weekdays_long\":" . $json->encode($mod_list_strings['dom_cal_weekdays_long']) . "}\n";
     if (empty($module)) {
         $module = 'Home';
     }
     $currentModule = $module;
     $mod_strings = return_module_language($current_language, $currentModule);
     return $str . "\n" . $this->global_registry_var_name . "['meeting_strings'] =  " . $json->encode($mod_strings) . "\n";
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:14,代码来源:json_config.php


注:本文中的return_mod_list_strings_language函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。