diff --git a/app/assets/javascripts/modeling.js.jsx b/app/assets/javascripts/modeling.js.jsx
index f8b0f40d..074a2817 100644
--- a/app/assets/javascripts/modeling.js.jsx
+++ b/app/assets/javascripts/modeling.js.jsx
@@ -1,6 +1,6 @@
/** @jsx React.DOM */
-(function($) {
+(function($, I18n) {
// Console-polyfill. MIT license.
// https://github.com/paulmillr/console-polyfill
// Make it safe to do console.log() always.
@@ -120,11 +120,10 @@
var equippedClosetId = equippedByZone[zoneId].closet_obj_id;
var equippedObjectId = closetItems[equippedClosetId].obj_info_id;
if (itemsById.hasOwnProperty(equippedObjectId)) {
- // TODO: i18n title
customization.statusByItemId[equippedObjectId] = "success";
itemsById[equippedObjectId].el.find("span[data-body-id=" +
customization.custom_pet.body_id + "]").addClass("modeled")
- .attr("title", "You just finished modeling this—thanks so much!");
+ .attr("title", I18n.modeledBodyTitle);
}
});
this._customizationsByPetId[customization.custom_pet.name] = customization;
@@ -294,18 +293,10 @@
}
var itemName = this.props.item.name;
var imageSrc = "http://pets.neopets.com/cpn/" + petName + "/1/1.png";
- // TODO: i18n
- var title = "Submit " + petName + " as a model, especially if they're " +
- "wearing the " + itemName + "!";
- if (status === "success") {
- var statusMessage = "Thanks! <3";
- } else if (status === "unworn") {
- var statusMessage = "Not wearing this item.";
- } else if (status === "error") {
- var statusMessage = "Couldn't load. Try again?";
- } else {
- var statusMessage ="";
- }
+ var title = I18n.pet.title
+ .replace(/%{pet}/g, petName)
+ .replace(/%{item}/g, itemName);
+ var statusMessage = I18n.pet.status[status] || "";
return