Skip to content

Commit

Permalink
add missing translation subject for LadyLourdes Spanish
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Jul 19, 2024
1 parent dca7893 commit 4fef08a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion data/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -3480,7 +3480,7 @@
"main_shrine": "Basílica de Nuestra Señora de Guadalupe, Ciudad de México, México"
},
"LadyLourdes_585": {
"subject": "",
"subject": "Bienaventurada Virgen María de Lourdes",
"places": "Lourdes (Francia)",
"place_of_death": "N/D",
"place_of_birth": "N/D",
Expand Down
1 change: 1 addition & 0 deletions src/AnniversaryCalculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ private function readData()
) {
$englishResultsUsed = true;
$rowLocalizedData->$rowProperty = $translationDataEnglish->$label->$rowProperty;
$this->RESPONSE->messages[] = "Using English translation for $label.$rowProperty";
}
}

Expand Down
46 changes: 23 additions & 23 deletions src/AnniversaryCalculator/Enums/AnnivType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

class AnnivType
{
public const BIRTH = "birth";
public const DEATH = "death";
public const CANONIZATION = "canonization";
public const DOCTOR = "doctor";
public const DEDICATION = "dedication";
public const TRANSLATION = "translation";
public const DOGMA = "dogma";
public const APPARITION = "apparition";
public const BIRTH = "birth";
public const DEATH = "death";
public const CANONIZATION = "canonization";
public const DOCTOR = "doctor";
public const DEDICATION = "dedication";
public const TRANSLATION = "translation";
public const DOGMA = "dogma";
public const APPARITION = "apparition";
public const PONTIFICAL_INCORONATION = "pontifical_incoronation";
public const ECUMENICAL_COUNCIL = "church_council";
public const ENCYCLICAL = "encyclical";
public const OTHER = "other";
public const ECUMENICAL_COUNCIL = "church_council";
public const ENCYCLICAL = "encyclical";
public const OTHER = "other";
private array $GTXT;

public static array $values = [
Expand All @@ -36,19 +36,19 @@ class AnnivType
public function __construct()
{
$this->GTXT = [
self::BIRTH => strtoupper(_("birth")),
self::DEATH => strtoupper(_("death")),
self::CANONIZATION => strtoupper(_("canonization")),
self::DOCTOR => strtoupper(_("doctor")),
self::DEDICATION => strtoupper(_("dedication")),
self::BIRTH => strtoupper(_("birth")),
self::DEATH => strtoupper(_("death")),
self::CANONIZATION => strtoupper(_("canonization")),
self::DOCTOR => strtoupper(_("doctor")),
self::DEDICATION => strtoupper(_("dedication")),
/**translators: term "translation" refers to the transferral of the relics of a saint */
self::TRANSLATION => strtoupper(_("translation")),
self::DOGMA => strtoupper(_("dogma")),
self::APPARITION => strtoupper(_("apparition")),
self::PONTIFICAL_INCORONATION => strtoupper(_("pontifical incoronation")),
self::ECUMENICAL_COUNCIL => strtoupper(_("ecumenical council")),
self::ENCYCLICAL => strtoupper(_("encyclical")),
self::OTHER => strtoupper(_("other"))
self::TRANSLATION => strtoupper(_("translation")),
self::DOGMA => strtoupper(_("dogma")),
self::APPARITION => strtoupper(_("apparition")),
self::PONTIFICAL_INCORONATION => strtoupper(_("pontifical incoronation")),
self::ECUMENICAL_COUNCIL => strtoupper(_("ecumenical council")),
self::ENCYCLICAL => strtoupper(_("encyclical")),
self::OTHER => strtoupper(_("other"))
];
}

Expand Down

0 comments on commit 4fef08a

Please sign in to comment.