------------------------------------------------------------
revno: 1181
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Wed 2012-04-25 22:02:09 +0200
message:
literals with __() functions
modified:
libs/Bot.php
--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk
Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'libs/Bot.php'
--- libs/Bot.php 2012-02-16 22:10:15 +0000
+++ libs/Bot.php 2012-04-25 20:02:09 +0000
@@ -181,17 +181,17 @@
* @todo remove the output of this message or use message
* class to do properly.
*/
- echo "Imported the mockup successfully.";
+ echo __("Imported the mockup successfully.");
} else {
- echo "Failed to import the mockup.";
+ echo __("Failed to import the mockup.");
}
} else {
- echo "Failed to locate the body of the document.";
+ echo __("Failed to locate the body of the document.");
}
} else {
- echo "Failed to load contents form file.";
+ echo __("Failed to load contents form file.");
}
} // end of import_mockup function
@@ -450,8 +450,7 @@
/**
* @todo replace with message class
*/
- return "no form was found for the table <b>$table_name</b> " .
- "please generate the form first";
+ return __sprintf("No form was found for the table <b>%s</b>. Please generate the form first.",$table_name);
}
$tablename = $table_info->form_table;
$form_array = $table_info->form_array;
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp