Skip to content

Commit

Permalink
Merge pull request #474 from bmlt-enabled/Move-QR-Code--service
Browse files Browse the repository at this point in the history
move QR code service
  • Loading branch information
otrok7 authored Apr 8, 2024
2 parents c4d301f + 40e67a6 commit 48dcdb6
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crouton.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: A tabbed based display for showing meeting information.
Author: bmlt-enabled
Author URI: https://bmlt.app
Version: 3.18.9
Version: 3.18.10
*/
/* Disallow direct access to the plugin file */
if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) {
Expand Down
2 changes: 1 addition & 1 deletion croutonjs/src/js/crouton-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ crouton_Handlebars.registerHelper('meetsHybrid', function(data, options) {
});

crouton_Handlebars.registerHelper('qrCode', function(link, options) {
return new crouton_Handlebars.SafeString("<img alt='qrcode' src='https://chart.googleapis.com/chart?chs=100x100&cht=qr&chl=" + link + "&choe=UTF-8&chld=L|0'>");
return new crouton_Handlebars.SafeString("<img alt='qrcode' src='https://quickchart.io/qr?size=100&text=" + encodeURIComponent(link) + "'>");
});

crouton_Handlebars.registerHelper('formatDataFromArray', function(arr) {
Expand Down
53 changes: 53 additions & 0 deletions croutonjs/src/js/crouton-localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,59 @@ var words;
function CroutonLocalization(language) {
this.language = language;
this.words = {
"ar": {
"days_of_the_week" : ["", "الأحد", "الاثنين", "الثلاثاء", "الأربعاء ", "الخميس", "الجمعة", "السبت"],
"weekday" : "يوم عمل",
"city" : "مدينة",
"cities" : "المدن",
"groups" : "مجموعات",
"areas" : "المناطق",
"regions": "المناطق",
"locations" : "المواقع",
"counties" : "المقاطعات",
"states" : "المقاطعات",
"postal_codes" : "الرموز البريدية",
"formats" : "الأشكال",
"map" : "خريطة",
"neighborhood": "الحي",
"near_me": "بالقرب مني",
"text_search": "البحث عن النص",
"click_search": "انقر فوق البحث",
"pan_and_zoom": "عموم + التكبير",
"languages": "اللغات",
"common_needs": "الاحتياجات المشتركة",
"meeting_count": "الاجتماعات الأسبوعية:",
"venue_types": "أنواع المكان",
"venue_type_choices": {
IN_PERSON: "شخصيا",
VIRTUAL: "افتراضي",
},
"service_body_types": {
AS: "لجنة خدمات المنطق",
RS: "لجنة خدمات الإقلي.م",
ZF: "منتدى المنطقة" ,
MA: "لجنة خدمات العاصمة",
LS: "خدمة المنتديات المحلية",
GS: "Group Support Forum",
},
'css-textalign': 'style="text-align:right;"',
'css-floatdirection': 'style="float:right;"',
"share": "مشاركة",
'tabular': "جدول",
'google_directions': 'اتجاهات جوجل للاجتماع',
"no_meetings_for_this_day": "لا توجد اجتماعات لهذا اليوم.",
'all': 'الجميع',
'menu': 'القائمة',
'search for meetings':'البحث عن الاجتماعات',
'show meetings near...': 'أظهر الاجتماعات بالقرب من...',
'filter meetings':'سرد الاجتماعات',
'visible meeting list': 'قائمة الاجتماعات المرئية',
'enter a city or zip code': 'أدخل المدينة أو الرمز البريدي',
'toggle fullscreen mode': 'تبديل وضع ملء الشاشة',
'close': "قريب",
'meeting page': "صفحة الاجتماع",
'meeting details': "تفاصيل الاجتماع"
},
"da-DK": {
"days_of_the_week": ["", "Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag"],
"weekday": 'Ugedag',
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: na, meeting list, meeting finder, maps, recovery, addiction, webservant, b
Requires at least: 4.0
Required PHP: 8.0
Tested up to: 6.4.2
Stable tag: 3.18.9
Stable tag: 3.18.10
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
crouton implements a Tabbed UI for BMLT.
Expand Down Expand Up @@ -36,6 +36,10 @@ https://demo.bmlt.app/crouton

== Changelog ==

= 3.18.10 =
* Move QR code generation to a different service.
* Arabic Translation

= 3.18.9 =
* Open Google Directions in a new tab

Expand Down

0 comments on commit 48dcdb6

Please sign in to comment.