Skip to content

Commit

Permalink
move Our Lady of Guadalupe to Wider Region
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed May 9, 2022
1 parent 7395ef4 commit e5d010f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 20 deletions.
11 changes: 11 additions & 0 deletions LitCalNationalAndRegionalData.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@ private function writeNationalCalendar() {
if( !file_exists( $path ) ) {
mkdir( $path, 0755, true );
}
$translationJSON = new stdClass();
foreach( $this->DATA->LitCal as $CalEvent ) {
$translationJSON->{ $CalEvent->Festivity->tag } = '';
}
if( count( $this->DATA->Metadata->Languages ) > 0 ) {
foreach( $this->DATA->Metadata->Languages as $iso ) {
if( !file_exists( "nations/{$widerRegion}/{$iso}.json" ) ) {
file_put_contents( "nations/{$widerRegion}/{$iso}.json", json_encode( $translationJSON, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE ) );
}
}
}
}
$data = json_encode( $this->DATA, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE );
file_put_contents( "nations/{$this->DATA->Metadata->WiderRegion}.json", $data . PHP_EOL );
Expand Down
18 changes: 0 additions & 18 deletions data/propriumdesanctis_USA_2011/propriumdesanctis_USA_2011.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,23 +268,5 @@
"ALLELUIA_VERSE": "",
"GOSPEL": ""
}
},
{
"MONTH": 12,
"DAY": 12,
"TAG": "LadyGuadalupe",
"NAME": "Our Lady of Guadalupe",
"GRADE": 4,
"DISPLAYGRADE": "",
"COMMON": "Proper",
"CALENDAR": "",
"COLOR": "white",
"READINGS": {
"FIRST_READING": "",
"RESPONSORIAL_PSALM": "",
"SECOND_READING": "",
"ALLELUIA_VERSE": "",
"GOSPEL": ""
}
}
]
3 changes: 3 additions & 0 deletions nations/AMERICAS/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"LadyGuadalupe": "[ USA ] Our Lady of Guadalupe"
}
3 changes: 3 additions & 0 deletions nations/AMERICAS/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"LadyGuadalupe": ""
}
3 changes: 3 additions & 0 deletions nations/AMERICAS/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"LadyGuadalupe": ""
}
3 changes: 3 additions & 0 deletions nations/AMERICAS/pt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"LadyGuadalupe": ""
}
5 changes: 3 additions & 2 deletions nations/Americas.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
"IsMultilingual": true,
"Languages": [
"en",
"es",
"pt"
"fr",
"pt",
"es"
],
"WiderRegion": "Americas"
}
Expand Down

0 comments on commit e5d010f

Please sign in to comment.