Skip to content

Commit

Permalink
[PepperBridgeAbstract,DealabsBridge,HotUKDealsBridge,MydealsBridge] M…
Browse files Browse the repository at this point in the history
…ove as much as possible to JSON (#4032)

As the website use more and more JSON, and JSON is a machine readable
format, I migrated as much as possible to the JSON.

This simplifies the Abstract class a lot, and the Bridge classes need
less language specifi strings.
  • Loading branch information
sysadminstory committed Mar 28, 2024
1 parent db984d8 commit be44575
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 333 deletions.
42 changes: 2 additions & 40 deletions bridges/DealabsBridge.php
Expand Up @@ -1915,52 +1915,14 @@ class DealabsBridge extends PepperBridgeAbstract
'thread-error' => 'Impossible de déterminer l\'ID de la discussion. Vérifiez l\'URL que vous avez entré',
'no-results' => 'Aucun résultat',
'currency' => '€',
'relative-date-indicator' => [
'il y a',
],
'price' => 'Prix',
'shipping' => 'Livraison',
'origin' => 'Origine',
'discount' => 'Réduction',
'title-keyword' => 'Recherche',
'title-group' => 'Groupe',
'title-talk' => 'Surveillance Discussion',
'local-months' => [
'janvier',
'février',
'mars',
'avril',
'mai',
'juin',
'juillet',
'août',
'septembre',
'octobre',
'novembre',
'décembre'
],
'local-time-relative' => [
'il y a ',
'min',
'h',
'jour',
'jours',
'mois',
'ans',
'et '
],
'date-prefixes' => [
'Actualisé ',
],
'relative-date-alt-prefixes' => [
'Actualisé ',
],
'relative-date-ignore-suffix' => [
],

'localdeal' => [
'Local',
'Pays d\'expédition'
],
'deal-type' => 'Type de deal',
'localdeal' => 'Deal Local',
];
}
51 changes: 2 additions & 49 deletions bridges/HotUKDealsBridge.php
Expand Up @@ -3279,61 +3279,14 @@ class HotUKDealsBridge extends PepperBridgeAbstract
'thread-error' => 'Unable to determine the thread ID. Check the URL you entered',
'no-results' => 'no results',
'currency' => '£',
'relative-date-indicator' => [
'ago',
],
'price' => 'Price',
'shipping' => 'Shipping',
'origin' => 'Origin',
'discount' => 'Discount',
'title-keyword' => 'Search',
'title-group' => 'Group',
'title-talk' => 'Discussion Monitoring',
'local-months' => [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Occ',
'Nov',
'Dec',
'st',
'nd',
'rd',
'th'
],
'local-time-relative' => [
'Posted ',
'm',
'h,',
'day',
'days',
'month',
'year',
'and '
],
'date-prefixes' => [
'Posted ',
'Found ',
'Refreshed ',
'Made hot '
],
'relative-date-alt-prefixes' => [
'Made hot ',
'Refreshed ',
'Last updated '
],
'relative-date-ignore-suffix' => [
'/by.*$/'
],
'localdeal' => [
'Local',
'Expires'
]
'deal-type' => 'Deal Type',
'localdeal' => 'Local deal',
];
}
50 changes: 2 additions & 48 deletions bridges/MydealsBridge.php
Expand Up @@ -2026,60 +2026,14 @@ class MydealsBridge extends PepperBridgeAbstract
'thread-error' => 'Die ID der Diskussion kann nicht ermittelt werden. Überprüfen Sie die eingegebene URL',
'no-results' => 'keine Ergebnisse',
'currency' => '€',
'relative-date-indicator' => [
'vor',
'seit'
],
'price' => 'Preis',
'shipping' => 'Versand',
'origin' => 'Ursprung',
'discount' => 'Rabatte',
'title-keyword' => 'Suche',
'title-group' => 'Gruppe',
'title-talk' => 'Überwachung Diskussion',
'local-months' => [
'Jan',
'Feb',
'Mär',
'Apr',
'Mai',
'Jun',
'Jul',
'Aug',
'Sep',
'Okt',
'Nov',
'Dez',
'.'
],
'local-time-relative' => [
'eingestellt vor ',
'm',
'h,',
'day',
'days',
'month',
'year',
'and '
],
'date-prefixes' => [
'eingestellt am ',
'lokal ',
'aktualisiert ',
],
'relative-date-alt-prefixes' => [
'aktualisiert vor ',
'kommentiert vor ',
'eingestellt vor ',
'heiß seit ',
'vor '
],
'relative-date-ignore-suffix' => [
'/von.*$/'
],
'localdeal' => [
'Lokal ',
'Läuft bis '
]
'deal-type' => 'Angebotsart',
'localdeal' => 'Lokales Angebot',
];
}

0 comments on commit be44575

Please sign in to comment.