Skip to content
Snippets Groups Projects
Commit c00d56ac authored by Jared Hancock's avatar Jared Hancock
Browse files

i18n: Do not translate 'b' in __($a['b'])

parent 8ee9bbba
No related branches found
No related tags found
No related merge requests found
......@@ -445,7 +445,7 @@ class OsticketConfig extends Config {
$modes = static::allTopicSortModes();
if (!isset($modes[$mode]))
throw new InvalidArgumentException(sprintf(
__('%s: Unsupport help topic sort mode'), $mode));
'%s: Unsupported help topic sort mode', $mode));
$this->update('help_topic_sort_mode', $mode);
}
......
......@@ -240,7 +240,8 @@ class i18n_Compiler extends Module {
#'Translated' =>
#'Approved' =>
'Id' => 'lang:' . $lang,
'Version' => strtotime($po_header['PO-Revision-Date']),
'Last-Revision' => $po_header['PO-Revision-Date'],
'Version' => strtotime($po_header['PO-Revision-Date']) / 10000,
);
$phar->addFromString(
'MANIFEST.php',
......@@ -315,6 +316,9 @@ class i18n_Compiler extends Module {
case '.':
$string['constant'] = false;
break;
case '[':
// Not intended to be translated — array index
return null;
default:
return array($string, $T);
}
......@@ -348,6 +352,7 @@ class i18n_Compiler extends Module {
$args['comments'] = array_merge(
@$args['comments'] ?: array(), $string['comments']);
// Handle the terminating token from ::__read_next_string()
switch ($T[0]) {
case ')':
return $args;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment