Permalink
Browse files

Getting interface strings in the localization engine.

  • Loading branch information...
1 parent 1f9f357 commit 00a707c04f2a1d0f048f2871655937c747b9ef76 @tpryan tpryan committed Sep 21, 2012
Showing with 5 additions and 3 deletions.
  1. +2 −2 main.js
  2. +3 −1 nls/root/strings.js
View
@@ -416,7 +416,7 @@ define(function (require, exports, module) {
$projectContainer.append(linkHtml);
- var newItemHTML = "";
+ var newItemHTML = "<p>" + Strings.NEW_DIALOG_MESSAGE + "</p>";
newItemHTML += '<input placeholder="' + Strings.NEW_DIALOG_APP_NAME + '" id="pgb-new-app-name" type="text">';
$newContainer.empty();
@@ -507,7 +507,7 @@ define(function (require, exports, module) {
// NO-OP. Probably don't have to do anything.
}
else if (action === Dialogs.DIALOG_BTN_OK) {
- showAlert("Create new project named" + val + ".", false, null, false);
+ showAlert(Strings.NEW_ALERT_MESSAGE + " <em>" + val + "</em>.", false, null, false);
updateApp(val);
}
});
View
@@ -48,5 +48,7 @@ define({
"REBUILT_SUCCESS_MESSAGE" : "Your project is finished building.",
"NEW_PROJECT_OPTION" : "Create new PhoneGap Build project",
"NEW_DIALOG_TITLE" : "New PhoneGap Build Project",
- "NEW_DIALOG_APP_NAME" : "App Name"
+ "NEW_DIALOG_MESSAGE" : "Create a new PhoneGap Build project based on the current folder.",
+ "NEW_DIALOG_APP_NAME" : "App Name",
+ "NEW_ALERT_MESSAGE" : "Created a new PhoneGap Build project named"
});

0 comments on commit 00a707c

Please sign in to comment.