Skip to content
Permalink
Browse files

Updated bible book names to official English as base for i18n

  • Loading branch information
tobias-klein committed Sep 7, 2019
1 parent ceb9556 commit 92ac9bd0648811599909b9ba167ca5c5e718216b
BIN -8 KB (92%) ezra.sqlite
Binary file not shown.
@@ -90,17 +90,17 @@
short_title : "Jdg" },
{ long_title : 'Ruth',
short_title : "Rut" },
{ long_title : '1 Samuel',
{ long_title : 'I Samuel',
short_title : "1Sa" },
{ long_title : '2 Samuel',
{ long_title : 'II Samuel',
short_title : "2Sa" },
{ long_title : '1 Kings',
{ long_title : 'I Kings',
short_title : "1Ki" },
{ long_title : '2 Kings',
{ long_title : 'II Kings',
short_title : "2Ki" },
{ long_title : '1 Chronicles',
{ long_title : 'I Chronicles',
short_title : "1Ch" },
{ long_title : '2 Chronicles',
{ long_title : 'II Chronicles',
short_title : "2Ch" },
{ long_title : 'Ezra',
short_title : "Ezr" },
@@ -164,9 +164,9 @@
short_title : "Act" },
{ long_title : 'Romans',
short_title : "Rom" },
{ long_title : '1 Corinthians',
{ long_title : 'I Corinthians',
short_title : "1Co" },
{ long_title : '2 Corinthians',
{ long_title : 'II Corinthians',
short_title : "2Co" },
{ long_title : 'Galatians',
short_title : "Gal" },
@@ -176,13 +176,13 @@
short_title : "Phi" },
{ long_title : 'Colossians',
short_title : "Col" },
{ long_title : '1 Thessalonians',
{ long_title : 'I Thessalonians',
short_title : "1Th" },
{ long_title : '2 Thessalonians',
{ long_title : 'II Thessalonians',
short_title : "2Th" },
{ long_title : '1 Timothy',
{ long_title : 'I Timothy',
short_title : "1Ti" },
{ long_title : '2 Timothy',
{ long_title : 'II Timothy',
short_title : "2Ti" },
{ long_title : 'Titus',
short_title : "Tit" },
@@ -192,19 +192,19 @@
short_title : "Heb" },
{ long_title : 'James',
short_title : "Jam" },
{ long_title : '1 Peter',
{ long_title : 'I Peter',
short_title : "1Pe" },
{ long_title : '2 Peter',
{ long_title : 'II Peter',
short_title : "2Pe" },
{ long_title : '1 John',
{ long_title : 'I John',
short_title : "1Jo" },
{ long_title : '2 John',
{ long_title : 'II John',
short_title : "2Jo" },
{ long_title : '3 John',
{ long_title : 'III John',
short_title : "3Jo" },
{ long_title : 'Jude',
short_title : "Jud" },
{ long_title : 'Revelation',
{ long_title : 'Revelation of John',
short_title : "Rev" }
];
@@ -0,0 +1,49 @@
'use strict';

var bibleBookLongTitleUpdates =
[
{ shortTitle: 'Exo', oldLongTitle: 'Exodus ' , newLongTitle: 'Exodus' },
{ shortTitle: '1Sa', oldLongTitle: '1 Samuel' , newLongTitle: 'I Samuel' },
{ shortTitle: '2Sa', oldLongTitle: '2 Samuel' , newLongTitle: 'II Samuel' },
{ shortTitle: '1Ki', oldLongTitle: '1 Kings' , newLongTitle: 'I Kings' },
{ shortTitle: '2Ki', oldLongTitle: '2 Kings' , newLongTitle: 'II Kings' },
{ shortTitle: '1Ch', oldLongTitle: '1 Chronicles' , newLongTitle: 'I Chronicles' },
{ shortTitle: '2Ch', oldLongTitle: '2 Chronicles' , newLongTitle: 'II Chronicles' },
{ shortTitle: '1Co', oldLongTitle: '1 Corinthians' , newLongTitle: 'I Corinthians' },
{ shortTitle: '2Co', oldLongTitle: '2 Corinthians' , newLongTitle: 'II Corinthians' },
{ shortTitle: '1Th', oldLongTitle: '1 Thessalonians' , newLongTitle: 'I Thessalonians' },
{ shortTitle: '2Th', oldLongTitle: '2 Thessalonians' , newLongTitle: 'II Thessalonians' },
{ shortTitle: '1Ti', oldLongTitle: '1 Timothy' , newLongTitle: 'I Timothy' },
{ shortTitle: '2Ti', oldLongTitle: '2 Timothy' , newLongTitle: 'II Timothy' },
{ shortTitle: '1Pe', oldLongTitle: '1 Peter' , newLongTitle: 'I Peter' },
{ shortTitle: '2Pe', oldLongTitle: '2 Peter' , newLongTitle: 'II Peter' },
{ shortTitle: '1Jo', oldLongTitle: '1 John' , newLongTitle: 'I John' },
{ shortTitle: '2Jo', oldLongTitle: '2 John' , newLongTitle: 'II John' },
{ shortTitle: '3Jo', oldLongTitle: '3 John' , newLongTitle: 'III John' },
{ shortTitle: 'Rev', oldLongTitle: 'Revelation' , newLongTitle: 'Revelation of John' }
]

module.exports = {
up: (queryInterface, Sequelize) => {
var updates = [];

for (var i = 0; i < bibleBookLongTitleUpdates.length; i++) {
var shortTitle = bibleBookLongTitleUpdates[i].shortTitle;
var newLongTitle = bibleBookLongTitleUpdates[i].newLongTitle;
var query = "UPDATE BibleBooks SET longTitle='" + newLongTitle + "' WHERE shortTitle='" + shortTitle + "'";
var updateAction = queryInterface.sequelize.query(query);

//console.log(query);
updates.push(updateAction);
}

return Promise.all(
updates
);
},

down: (queryInterface, Sequelize) => {
return Promise.all([
]);
}
};
@@ -21,72 +21,72 @@
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.bulkInsert('BibleBooks', [
{ number: 1, shortTitle: 'Gen', longTitle: 'Genesis' },
{ number: 2, shortTitle: 'Exo', longTitle: 'Exodus ' },
{ number: 3, shortTitle: 'Lev', longTitle: 'Leviticus' },
{ number: 4, shortTitle: 'Num', longTitle: 'Numbers' },
{ number: 5, shortTitle: 'Deu', longTitle: 'Deuteronomy' },
{ number: 6, shortTitle: 'Jos', longTitle: 'Joshua' },
{ number: 7, shortTitle: 'Jdg', longTitle: 'Judges' },
{ number: 8, shortTitle: 'Rut', longTitle: 'Ruth' },
{ number: 9, shortTitle: '1Sa', longTitle: '1 Samuel' },
{ number: 10, shortTitle: '2Sa', longTitle: '2 Samuel' },
{ number: 11, shortTitle: '1Ki', longTitle: '1 Kings' },
{ number: 12, shortTitle: '2Ki', longTitle: '2 Kings' },
{ number: 13, shortTitle: '1Ch', longTitle: '1 Chronicles' },
{ number: 14, shortTitle: '2Ch', longTitle: '2 Chronicles' },
{ number: 15, shortTitle: 'Ezr', longTitle: 'Ezra' },
{ number: 16, shortTitle: 'Neh', longTitle: 'Nehemiah' },
{ number: 17, shortTitle: 'Est', longTitle: 'Esther' },
{ number: 18, shortTitle: 'Job', longTitle: 'Job' },
{ number: 19, shortTitle: 'Psa', longTitle: 'Psalms' },
{ number: 20, shortTitle: 'Pro', longTitle: 'Proverbs' },
{ number: 21, shortTitle: 'Ecc', longTitle: 'Ecclesiastes' },
{ number: 22, shortTitle: 'Sol', longTitle: 'Song of Solomon' },
{ number: 23, shortTitle: 'Isa', longTitle: 'Isaiah' },
{ number: 24, shortTitle: 'Jer', longTitle: 'Jeremiah' },
{ number: 25, shortTitle: 'Lam', longTitle: 'Lamentations' },
{ number: 26, shortTitle: 'Eze', longTitle: 'Ezekiel' },
{ number: 27, shortTitle: 'Dan', longTitle: 'Daniel' },
{ number: 28, shortTitle: 'Hos', longTitle: 'Hosea' },
{ number: 29, shortTitle: 'Joe', longTitle: 'Joel' },
{ number: 30, shortTitle: 'Amo', longTitle: 'Amos' },
{ number: 31, shortTitle: 'Oba', longTitle: 'Obadiah' },
{ number: 32, shortTitle: 'Jon', longTitle: 'Jonah' },
{ number: 33, shortTitle: 'Mic', longTitle: 'Micah' },
{ number: 34, shortTitle: 'Nah', longTitle: 'Nahum' },
{ number: 35, shortTitle: 'Hab', longTitle: 'Habakkuk' },
{ number: 36, shortTitle: 'Zep', longTitle: 'Zephaniah' },
{ number: 37, shortTitle: 'Hag', longTitle: 'Haggai' },
{ number: 38, shortTitle: 'Zec', longTitle: 'Zechariah' },
{ number: 39, shortTitle: 'Mal', longTitle: 'Malachi' },
{ number: 40, shortTitle: 'Mat', longTitle: 'Matthew' },
{ number: 41, shortTitle: 'Mar', longTitle: 'Mark' },
{ number: 42, shortTitle: 'Luk', longTitle: 'Luke' },
{ number: 43, shortTitle: 'Joh', longTitle: 'John' },
{ number: 44, shortTitle: 'Act', longTitle: 'Acts' },
{ number: 45, shortTitle: 'Rom', longTitle: 'Romans' },
{ number: 46, shortTitle: '1Co', longTitle: '1 Corinthians' },
{ number: 47, shortTitle: '2Co', longTitle: '2 Corinthians' },
{ number: 48, shortTitle: 'Gal', longTitle: 'Galatians' },
{ number: 49, shortTitle: 'Eph', longTitle: 'Ephesians' },
{ number: 50, shortTitle: 'Phi', longTitle: 'Philippians' },
{ number: 51, shortTitle: 'Col', longTitle: 'Colossians' },
{ number: 52, shortTitle: '1Th', longTitle: '1 Thessalonians' },
{ number: 53, shortTitle: '2Th', longTitle: '2 Thessalonians' },
{ number: 54, shortTitle: '1Ti', longTitle: '1 Timothy' },
{ number: 55, shortTitle: '2Ti', longTitle: '2 Timothy' },
{ number: 56, shortTitle: 'Tit', longTitle: 'Titus' },
{ number: 57, shortTitle: 'Phm', longTitle: 'Philemon' },
{ number: 58, shortTitle: 'Heb', longTitle: 'Hebrews' },
{ number: 59, shortTitle: 'Jam', longTitle: 'James' },
{ number: 60, shortTitle: '1Pe', longTitle: '1 Peter' },
{ number: 61, shortTitle: '2Pe', longTitle: '2 Peter' },
{ number: 62, shortTitle: '1Jo', longTitle: '1 John' },
{ number: 63, shortTitle: '2Jo', longTitle: '2 John' },
{ number: 64, shortTitle: '3Jo', longTitle: '3 John' },
{ number: 65, shortTitle: 'Jud', longTitle: 'Jude' },
{ number: 66, shortTitle: 'Rev', longTitle: 'Revelation' }
{ id: 1, number: 1, shortTitle: 'Gen', longTitle: 'Genesis' },
{ id: 2, number: 2, shortTitle: 'Exo', longTitle: 'Exodus' },
{ id: 3, number: 3, shortTitle: 'Lev', longTitle: 'Leviticus' },
{ id: 4, number: 4, shortTitle: 'Num', longTitle: 'Numbers' },
{ id: 5, number: 5, shortTitle: 'Deu', longTitle: 'Deuteronomy' },
{ id: 6, number: 6, shortTitle: 'Jos', longTitle: 'Joshua' },
{ id: 7, number: 7, shortTitle: 'Jdg', longTitle: 'Judges' },
{ id: 8, number: 8, shortTitle: 'Rut', longTitle: 'Ruth' },
{ id: 9, number: 9, shortTitle: '1Sa', longTitle: 'I Samuel' },
{ id: 10, number: 10, shortTitle: '2Sa', longTitle: 'II Samuel' },
{ id: 11, number: 11, shortTitle: '1Ki', longTitle: 'I Kings' },
{ id: 12, number: 12, shortTitle: '2Ki', longTitle: 'II Kings' },
{ id: 13, number: 13, shortTitle: '1Ch', longTitle: 'I Chronicles' },
{ id: 14, number: 14, shortTitle: '2Ch', longTitle: 'II Chronicles' },
{ id: 15, number: 15, shortTitle: 'Ezr', longTitle: 'Ezra' },
{ id: 16, number: 16, shortTitle: 'Neh', longTitle: 'Nehemiah' },
{ id: 17, number: 17, shortTitle: 'Est', longTitle: 'Esther' },
{ id: 18, number: 18, shortTitle: 'Job', longTitle: 'Job' },
{ id: 19, number: 19, shortTitle: 'Psa', longTitle: 'Psalms' },
{ id: 20, number: 20, shortTitle: 'Pro', longTitle: 'Proverbs' },
{ id: 21, number: 21, shortTitle: 'Ecc', longTitle: 'Ecclesiastes' },
{ id: 22, number: 22, shortTitle: 'Sol', longTitle: 'Song of Solomon' },
{ id: 23, number: 23, shortTitle: 'Isa', longTitle: 'Isaiah' },
{ id: 24, number: 24, shortTitle: 'Jer', longTitle: 'Jeremiah' },
{ id: 25, number: 25, shortTitle: 'Lam', longTitle: 'Lamentations' },
{ id: 26, number: 26, shortTitle: 'Eze', longTitle: 'Ezekiel' },
{ id: 27, number: 27, shortTitle: 'Dan', longTitle: 'Daniel' },
{ id: 28, number: 28, shortTitle: 'Hos', longTitle: 'Hosea' },
{ id: 29, number: 29, shortTitle: 'Joe', longTitle: 'Joel' },
{ id: 30, number: 30, shortTitle: 'Amo', longTitle: 'Amos' },
{ id: 31, number: 31, shortTitle: 'Oba', longTitle: 'Obadiah' },
{ id: 32, number: 32, shortTitle: 'Jon', longTitle: 'Jonah' },
{ id: 33, number: 33, shortTitle: 'Mic', longTitle: 'Micah' },
{ id: 34, number: 34, shortTitle: 'Nah', longTitle: 'Nahum' },
{ id: 35, number: 35, shortTitle: 'Hab', longTitle: 'Habakkuk' },
{ id: 36, number: 36, shortTitle: 'Zep', longTitle: 'Zephaniah' },
{ id: 37, number: 37, shortTitle: 'Hag', longTitle: 'Haggai' },
{ id: 38, number: 38, shortTitle: 'Zec', longTitle: 'Zechariah' },
{ id: 39, number: 39, shortTitle: 'Mal', longTitle: 'Malachi' },
{ id: 40, number: 40, shortTitle: 'Mat', longTitle: 'Matthew' },
{ id: 41, number: 41, shortTitle: 'Mar', longTitle: 'Mark' },
{ id: 42, number: 42, shortTitle: 'Luk', longTitle: 'Luke' },
{ id: 43, number: 43, shortTitle: 'Joh', longTitle: 'John' },
{ id: 44, number: 44, shortTitle: 'Act', longTitle: 'Acts' },
{ id: 45, number: 45, shortTitle: 'Rom', longTitle: 'Romans' },
{ id: 46, number: 46, shortTitle: '1Co', longTitle: 'I Corinthians' },
{ id: 47, number: 47, shortTitle: '2Co', longTitle: 'II Corinthians' },
{ id: 48, number: 48, shortTitle: 'Gal', longTitle: 'Galatians' },
{ id: 49, number: 49, shortTitle: 'Eph', longTitle: 'Ephesians' },
{ id: 50, number: 50, shortTitle: 'Phi', longTitle: 'Philippians' },
{ id: 51, number: 51, shortTitle: 'Col', longTitle: 'Colossians' },
{ id: 52, number: 52, shortTitle: '1Th', longTitle: 'I Thessalonians' },
{ id: 53, number: 53, shortTitle: '2Th', longTitle: 'II Thessalonians' },
{ id: 54, number: 54, shortTitle: '1Ti', longTitle: 'I Timothy' },
{ id: 55, number: 55, shortTitle: '2Ti', longTitle: 'II Timothy' },
{ id: 56, number: 56, shortTitle: 'Tit', longTitle: 'Titus' },
{ id: 57, number: 57, shortTitle: 'Phm', longTitle: 'Philemon' },
{ id: 58, number: 58, shortTitle: 'Heb', longTitle: 'Hebrews' },
{ id: 59, number: 59, shortTitle: 'Jam', longTitle: 'James' },
{ id: 60, number: 60, shortTitle: '1Pe', longTitle: 'I Peter' },
{ id: 61, number: 61, shortTitle: '2Pe', longTitle: 'II Peter' },
{ id: 62, number: 62, shortTitle: '1Jo', longTitle: 'I John' },
{ id: 63, number: 63, shortTitle: '2Jo', longTitle: 'II John' },
{ id: 64, number: 64, shortTitle: '3Jo', longTitle: 'III John' },
{ id: 65, number: 65, shortTitle: 'Jud', longTitle: 'Jude' },
{ id: 66, number: 66, shortTitle: 'Rev', longTitle: 'Revelation of John' }
], {});
},

0 comments on commit 92ac9bd

Please sign in to comment.
You can’t perform that action at this time.