Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Commit

Permalink
Getting interface strings in the localization engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrence Ryan committed Sep 24, 2012
1 parent 1f9f357 commit 00a707c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
}
});
Expand Down
4 changes: 3 additions & 1 deletion nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.