summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-02-26 01:56:00 +0000
committerBharat Mediratta <bharat@menalto.com>2009-02-26 01:56:00 +0000
commit570255649977256d973a56ccb38c8387a2a8c992 (patch)
treeb9ac49e600a775f41df7f37f1c10605de66dab0f
parent90a066a727b7fab74ad19747e89fb0122756e0f7 (diff)
Minor style changes.
-rw-r--r--core/libraries/L10n_Scanner.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/core/libraries/L10n_Scanner.php b/core/libraries/L10n_Scanner.php
index 87fdd7e3..515aeea0 100644
--- a/core/libraries/L10n_Scanner.php
+++ b/core/libraries/L10n_Scanner.php
@@ -44,11 +44,11 @@ class L10n_Scanner_Core {
// Load the current index into memory
$this->_index_keys = array();
foreach (Database::instance()
- ->select("key")
- ->from("incoming_translations")
- ->where(array("locale" => "root"))
- ->get()
- ->as_array() as $row) {
+ ->select("key")
+ ->from("incoming_translations")
+ ->where(array("locale" => "root"))
+ ->get()
+ ->as_array() as $row) {
$this->_index_keys[$row->key] = true;
}
@@ -68,7 +68,7 @@ class L10n_Scanner_Core {
$entry = ORM::factory("incoming_translation");
$entry->key = $key;
$entry->message = serialize($message);
- $entry->locale = 'root';
+ $entry->locale = "root";
$entry->save();
$this->_index_keys[$key] = true;
@@ -140,8 +140,7 @@ class L10n_Scanner_Core {
&& is_array($second_param) && $second_param[0] == T_CONSTANT_ENCAPSED_STRING) {
$singular = self::_escape_quoted_string($first_param[1]);
$plural = self::_escape_quoted_string($first_param[1]);
- $message_handler->process_message(array("one" => $singular,
- "other" => $plural));
+ $message_handler->process_message(array("one" => $singular, "other" => $plural));
} else {
// t2() found, but inside is something which is not a string literal.
// TODO(andy_st): Call status callback with error filename/line.