Skip to content

Commit

Permalink
Prepare pageCaptions variable for localization
Browse files Browse the repository at this point in the history
  • Loading branch information
madman-bob committed Sep 15, 2017
1 parent 6a908ac commit 99aa865
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion POV Cam/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],
"js": [
"timelines.js",
"page-captions.js",
"page-captions/en.js",

"next-page-links.js",
"arrow-navigation.js",
Expand Down
2 changes: 1 addition & 1 deletion POV Cam/next-page-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class DestinationLink {
}

get pageCaption() {
return pageCaptions[this.pageNo];
return pageCaptions["en"][this.pageNo];
}

createLinkElement(caption) {
Expand Down
4 changes: 3 additions & 1 deletion POV Cam/page-captions.js → POV Cam/page-captions/en.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
var pageCaptions = {
var pageCaptions = {};

pageCaptions["en"] = {
1901: "Homestuck",
1902: "Enter name.",
1903: "Try again.",
Expand Down

0 comments on commit 99aa865

Please sign in to comment.