Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2020.02 Release #647

Merged
merged 220 commits into from
Apr 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
220 commits
Select commit Hold shift + click to select a range
195c8f2
include terms tool code from archive
queryluke Sep 8, 2018
9474f01
terms tool integrated to lisencing, ebsco service added
queryluke Sep 8, 2018
b7c38bd
show all terms and snippets
queryluke Sep 22, 2018
0b9cab8
throw exception if terms tool service not configured
queryluke Sep 26, 2018
1c5cd3a
fix typo of $$
queryluke Sep 26, 2018
313b7dc
fix check for empty resolver
queryluke Sep 30, 2018
ff217a1
interpolate php, render all license types
queryluke Oct 3, 2018
965d548
remove unused funtions, render error message
queryluke Oct 3, 2018
3afce21
Create LICENSE.md
ialford Dec 11, 2018
0490ac1
RF86348: Adding a total for all the cost details
veggiematts Feb 6, 2019
4357788
RF86349: Adding the ability to limit and to group by organization and…
veggiematts Feb 8, 2019
7640a6e
Reset development footer to 'DEVELOPMENT'
jeffnm Feb 14, 2019
2a00ee2
Merge pull request #540 from jeffnm/release_prep_3_0_1
jeffnm Feb 14, 2019
370885e
RF86351: Add JQuery's Datatable to dashboards results
veggiematts Feb 14, 2019
05d57fc
RF86351: Add JQuery's Datatable to dashboards results
veggiematts Feb 14, 2019
9f7e2fb
RF86351: Add JQuery's Datatable to dashboards results
veggiematts Feb 14, 2019
838b859
RF86351: Add JQuery's Datatable to dashboards results
veggiematts Feb 15, 2019
a8b3b4b
RF86351: Add JQuery's Datatable to dashboards results
veggiematts Feb 15, 2019
9d3d60c
RF86350: Adding the ability to choose several options in the dashboar…
veggiematts Feb 15, 2019
6bcfd1b
RF86351: Add JQuery's Datatable to dashboards results
veggiematts Feb 15, 2019
0a39602
Merge remote-tracking branch 'biblibre/RF86348_Total_cost_details' in…
veggiematts Feb 18, 2019
f76489f
Merge remote-tracking branch 'biblibre/RF86349_Limit_group_org_and_fu…
veggiematts Feb 18, 2019
7bb47a0
Merge remote-tracking branch 'biblibre/RF86350_Multiselect_dashboards…
veggiematts Feb 18, 2019
e3c4e2e
Merge remote-tracking branch 'biblibre/RF86351_Dashboard_datatable' i…
veggiematts Feb 18, 2019
b5f11ae
Fix merge
veggiematts Feb 18, 2019
5e7fc97
Remove warning
veggiematts Feb 18, 2019
5c9e821
wip
queryluke Feb 18, 2019
d1845e7
wip
queryluke Feb 19, 2019
50b8089
Issue 360: PHP 7.2 compatibility
Feb 20, 2019
86798b7
Issue 360: PHP 7.2 compatibility
Feb 20, 2019
e193331
Issue 360: PHP 7.2 compatibility
veggiematts Feb 20, 2019
942be82
Revert "Update footer in preparation for release."
Feb 20, 2019
91cac09
The issue 387 proposed to add icons replacing the 'add' links when th…
Feb 27, 2019
01d57a5
add css class : div.ImportElement, div.addElement, div.adminHeader
Feb 28, 2019
1b61b76
Adding icons : add, update, edit, remove in organization, resources, …
Mar 1, 2019
5c9ccd7
Escape "import configuration saved" message
veggiematts Mar 4, 2019
b0e9009
Merge pull request #545 from biblibre/fix_save_mapping_message
veggiematts Mar 4, 2019
16ab20d
Icon align modifications in licensing, organizations and resources aj…
Mar 4, 2019
c7f9f80
The issue 387 asks to replace links by icons especially in the tables…
Mar 4, 2019
779b673
The issue 387 asks to replace links by icons especially in the tables…
Malmousque Mar 4, 2019
971e91d
The issue 387 asks to replace links by icons especially in the tables…
Malmousque Mar 5, 2019
3f625e8
Fix bugs : some icons was inactives in resource module. Adding icones…
Malmousque Mar 6, 2019
60fc3b7
Fix translation, typo and misplacing mentionned in PR, there is stil…
Malmousque Mar 7, 2019
d022591
Fix translation issue in licensing/js/admin.js and misplaced line in …
Malmousque Mar 7, 2019
4f8bb23
Fix licensing calendar
veggiematts Mar 8, 2019
874507a
Issue 552: Add missing field ilsID.
veggiematts Mar 12, 2019
f908dc7
556, make Authorized Sites compatible with multiple ordering
t4k Mar 12, 2019
9039c9f
Merge pull request #557 from caltechlibrary/556-resources-authorized-…
veggiematts Mar 13, 2019
11f0e68
Issue 482: Fix Resource Get Statistics button
vinny75 Mar 13, 2019
6f1d1d1
Issue 375: SUSHI server registry link
vinny75 Mar 13, 2019
145adde
Issue 480 COUNTER Release 3 for Sushi
vinny75 Mar 13, 2019
48c8bed
Issue 480 COUNTER Release 3 for Sushi
vinny75 Mar 13, 2019
3450161
Issue 525 report.php: typos in CSS definition
vinny75 Mar 14, 2019
37c10f0
Merge pull request #560 from vinny75/vinny75-issue-525
veggiematts Mar 14, 2019
c22c091
In the ressource module the add icon appearsnext to the headings and …
Malmousque Mar 14, 2019
b330b2b
Merge pull request #559 from vinny75/vinny75-issue-375
veggiematts Mar 14, 2019
7b7945c
The 'add an email' and the 'add day' text in alert settings ressource…
Malmousque Mar 14, 2019
f2e8970
Issue 508: Misleading error message when importing
vinny75 Mar 18, 2019
44c9925
Issue 508: Misleading error message when importing
vinny75 Mar 18, 2019
90585c6
delete unselected but imported
queryluke Mar 19, 2019
b42098e
view titles more visible, dropdown menu
queryluke Mar 19, 2019
25cf1ce
select & deselect working
queryluke Mar 20, 2019
c6ac951
packages complete
queryluke Mar 20, 2019
fc48a3e
Remplacing the 'Update' by 'Edit' as well as corresponding icons, ico…
Malmousque Mar 28, 2019
a589926
New 'import fund' icon in resources -admin
Malmousque Mar 29, 2019
24a739e
Change 'import fund' black icon to color
Malmousque Mar 29, 2019
9bd7dba
delete icons .svg and blue
Malmousque Mar 29, 2019
b678414
Change the 'Upload' title of pop up windows into 'Edit', harmonizatio…
Malmousque Mar 29, 2019
ae0583e
Revert "Update footer in preparation for release."
Malmousque Apr 1, 2019
dbcb7b4
improved ajax submission - stay on current search page
queryluke Apr 2, 2019
4a2bfb4
Merge pull request #546 from biblibre/issue_387_remplacingLinksByIcons
veggiematts Apr 3, 2019
569a7d3
working mvp
queryluke Apr 3, 2019
43f35f7
fix title status not showing up
queryluke Apr 8, 2019
6329029
back to current page on title cancel
queryluke Apr 8, 2019
701b56b
view in coral message
queryluke Apr 8, 2019
45bb8d7
use ban for delete and warning for import
queryluke Apr 8, 2019
6051c7a
Issue 311: Numbers internationalization
veggiematts Apr 10, 2019
31aa5a7
Issue 311: Numbers internationalization, Follow-up
veggiematts Apr 11, 2019
240def3
ILS Connection: use a dropdown list when searching an ILS vendor
veggiematts Apr 12, 2019
9d1b8fa
ILS Connection: use a dropdown list when searching an ILS vendor
veggiematts Apr 12, 2019
1d97d48
Merge pull request #553 from biblibre/Issue_552_Add_missing_field_ilsID
veggiematts Apr 17, 2019
ad0cfb4
Merge pull request #577 from biblibre/dropdown_for_ils_vendors
veggiematts Apr 17, 2019
13ada0f
Merge pull request #562 from vinny75/vinny75-issue508
veggiematts Apr 18, 2019
3ffc5a8
Issue 508: Misleading error message when importing usage statistics
veggiematts Apr 18, 2019
bc11cbe
Merge pull request #580 from biblibre/Issue_508
veggiematts Apr 18, 2019
56d1b4c
Merge pull request #541 from biblibre/Issue_360_php_compat
jeffnm Apr 22, 2019
41776b3
fix icon not triggering dropdown
queryluke Apr 22, 2019
ba20e83
Issue 581: Specify datepickers date format in common/configuration.ini
veggiematts Apr 25, 2019
26e8fce
Merge pull request #582 from biblibre/Issue_581_datepicker_date_format
jeffnm Apr 29, 2019
1e88f14
RF86350: Adding the ability to choose several options in the dashboar…
veggiematts Apr 30, 2019
d93f83c
Merge branch 'RF86350_Multiselect_dashboards' into wip_stockholm
veggiematts Apr 30, 2019
f4ea482
Merge remote-tracking branch 'biblibre/Issue_311_Numbers_internationa…
veggiematts May 2, 2019
e2661d9
Issue 311: Numbers internationalization, Follow-up
veggiematts May 2, 2019
3a879e9
RF86350: Adding the ability to choose several options in the dashboar…
veggiematts May 3, 2019
39aee99
RF86350: Adding the ability to choose several options in the dashboar…
veggiematts May 3, 2019
b50c03a
Merge branch 'RF86350_Multiselect_dashboards' into wip_stockholm
veggiematts May 3, 2019
d50cd78
Fix merge between RF86349 and RF86350
veggiematts May 3, 2019
2a99527
RF86351: Add JQuery's Datatable to dashboards results
veggiematts May 3, 2019
5f279e6
Merge branch 'RF86351_Dashboard_datatable' into wip_stockholm
veggiematts May 3, 2019
b7a6e30
RF86351: Add JQuery's Datatable to dashboards results
veggiematts May 3, 2019
1b4c3e1
RF86351: Add JQuery's Datatable to dashboards results
veggiematts May 3, 2019
030040c
Merge branch 'RF86351_Dashboard_datatable' into wip_stockholm
veggiematts May 3, 2019
fd11f5c
RF86351: Add JQuery's Datatable to dashboards results
veggiematts May 6, 2019
b6c13f9
RF86351: Add JQuery's Datatable to dashboards results
veggiematts May 6, 2019
f0a78bb
Merge branch 'RF86351_Dashboard_datatable' into wip_stockholm
veggiematts May 6, 2019
21d45ea
RF86351: Add JQuery's Datatable to dashboards results
veggiematts May 6, 2019
639c94e
Merge branch 'RF86351_Dashboard_datatable' into wip_stockholm
veggiematts May 6, 2019
8c406b9
Fix number of total and subtotal rows
veggiematts May 7, 2019
a76a2e9
Merge pull request #517 from ialford/patch-1
jeffnm May 7, 2019
70e8211
Merge pull request #564 from vinny75/vinny75-issue-480
jeffnm May 7, 2019
49b50cf
Issue 311: Numbers internationalization, Follow-up
veggiematts May 9, 2019
39bb2c2
Issue 311: Numbers internationalization, Follow-up
veggiematts May 9, 2019
2d7bad0
Issue 311: Numbers internationalization, Follow-up
veggiematts May 9, 2019
4290656
Issue 311: Numbers internationalization, Follow-up
veggiematts May 9, 2019
4544ebd
Fix merge issue from PR 577: ILS Connection: use a dropdown list when…
veggiematts May 15, 2019
356e936
[wip]
queryluke May 22, 2019
087f2dc
new stripNamespaces function
queryluke May 22, 2019
abaf26d
Add a vendor as active when using Coral/Koha vendors synchronization.
veggiematts May 23, 2019
4835f84
Fix RF86348 merge: take cost details multi select into account
veggiematts May 28, 2019
46b666c
RF86350: Adding the ability to choose several options in the dashboar…
veggiematts May 29, 2019
fd0bd8d
RF86348: Adding a total for all the cost details
veggiematts May 29, 2019
6f88cdb
RF86350: Adding the ability to choose several options in the dashboar…
veggiematts May 29, 2019
a9f9d04
RF86351: Add JQuery's Datatable to dashboards results
veggiematts Aug 23, 2019
1bd092e
Merge branch 'RF86351_Dashboard_datatable' into wip_stockholm
veggiematts Aug 23, 2019
5a9a5d9
Fix licensing calendar
veggiematts Aug 23, 2019
2fda8e7
Issue 578: Get a brand new token if the server doesn't provide a refr…
veggiematts Sep 12, 2019
c1fc850
improved selective joins
queryluke Sep 17, 2019
aef71f1
Merge pull request #600 from biblibre/Issue_578_OAuth_Refresh_token
veggiematts Sep 30, 2019
6ffdeaf
Issue 311: Numbers internationalization, Follow-up
veggiematts Oct 1, 2019
455ad97
Issue 599: Fix dashboards sums for resources with multiple subjects.
veggiematts Oct 1, 2019
0c78faa
Issue 311: Numbers internationalization, Follow-up
veggiematts Oct 1, 2019
2407dbd
Issue 311: Numbers internationalization, Follow-up
veggiematts Oct 1, 2019
e110fc3
Issue 311: Numbers internationalization, Follow-up
veggiematts Oct 2, 2019
5a187f1
Issue 311: Numbers internationalization, Follow-up
veggiematts Oct 3, 2019
46fbf5b
fix isbn search
queryluke Oct 8, 2019
e0265be
Merge pull request #611 from queryluke/sirsi-sushi-issues
andyp-uk Oct 24, 2019
8276355
Merge branch 'development' into terms-tool
queryluke Nov 18, 2019
a944828
remove collision with protected Object name in php 7.2
queryluke Nov 18, 2019
47db864
echo expression note
queryluke Nov 18, 2019
58062e8
Merge branch 'development' into wip_stockholm
veggiematts Nov 21, 2019
6c249a0
Merge pull request #598 from biblibre/wip_stockholm
veggiematts Nov 21, 2019
d206a50
Merge branch 'development' into Issue_599_Subjects_wrong_sum
veggiematts Nov 21, 2019
3f2a0c6
Merge pull request #603 from biblibre/Issue_599_Subjects_wrong_sum
veggiematts Nov 21, 2019
fd7242d
Merge pull request #588 from biblibre/add_vendor_active
veggiematts Nov 21, 2019
e21f6f0
cherrypick #582 PR changes
queryluke Dec 1, 2019
c156f78
add datepicker config to configuration sample
queryluke Dec 1, 2019
7ca8102
create js string to php date functions
queryluke Dec 1, 2019
f561a4c
update instances of strtotime from input forms
queryluke Dec 1, 2019
42a080c
fix typo in css class
queryluke Dec 4, 2019
f200dd9
remove extraneous newlines
queryluke Dec 4, 2019
e486d71
fix search by date issues
queryluke Dec 6, 2019
62b065a
Merge branch '581_datepicker_bugfixes' into sirsidynix-datepicker-bugs
queryluke Dec 6, 2019
c71f363
Merge branch 'erm-67-incorrect-search-by-date' into sirsidynix-datepi…
queryluke Dec 6, 2019
987fae6
Merge pull request #619 from queryluke/sirsidynix-datepicker-bugs
andyp-uk Dec 11, 2019
d778fe7
Issue 458: Coral silently fails on too large file uploads
veggiematts Nov 27, 2019
0a34ae6
Issue 458: Coral silently fails on too large file uploads
veggiematts Nov 27, 2019
35ec64b
Issue 458: Coral silently fails on too large file uploads
veggiematts Dec 10, 2019
8c21358
Issue 458: Coral silently fails on too large file uploads
veggiematts Dec 11, 2019
22b1ef9
Issue 458: Coral silently fails on too large file uploads
veggiematts Dec 11, 2019
8605767
Issue 458: Coral silently fails on too large file uploads
veggiematts Dec 12, 2019
ff70de9
Merge pull request #612 from queryluke/improved-selective-joins
andyp-uk Dec 13, 2019
bc34567
Issue 311: Numbers internationalization
veggiematts Apr 10, 2019
734e086
Issue 311: Numbers internationalization, Follow-up
veggiematts Apr 11, 2019
3885203
Issue 311: Numbers internationalization, Follow-up
veggiematts May 2, 2019
d2ef78d
Issue 311: Numbers internationalization, Follow-up
veggiematts May 9, 2019
f9d3349
Issue 311: Numbers internationalization, Follow-up
veggiematts May 9, 2019
8315061
Issue 311: Numbers internationalization, Follow-up
veggiematts May 9, 2019
d5aaa10
Issue 311: Numbers internationalization, Follow-up
veggiematts May 9, 2019
ae2c5cc
Issue 311: Numbers internationalization, Follow-up
veggiematts Oct 1, 2019
dfae30f
Issue 311: Numbers internationalization, Follow-up
veggiematts Oct 1, 2019
960465d
Issue 311: Numbers internationalization, Follow-up
veggiematts Oct 1, 2019
4de1c69
Issue 311: Numbers internationalization, Follow-up
veggiematts Oct 2, 2019
6118c70
Issue 311: Numbers internationalization, Follow-up
veggiematts Oct 3, 2019
53cafde
Issue 311: Numbers internationalization, Follow-up
veggiematts Jan 6, 2020
0754d0f
Merge branch 'Issue_311_Numbers_internationalization' of https://gith…
veggiematts Jan 8, 2020
05997b4
Issue 311: Numbers internationalization, Follow-up
veggiematts Jan 8, 2020
a80ca0d
Issue 311: Numbers internationalization, Follow-up
veggiematts Jan 8, 2020
c6eca51
Merge pull request #576 from biblibre/Issue_311_Numbers_international…
veggiematts Jan 8, 2020
6de85e2
Merge pull request #620 from biblibre/Issue_458_File_upload_rebased
veggiematts Jan 8, 2020
484ec12
Issue 601: Keep search parameters in resource module
veggiematts Jan 14, 2020
c2c6212
Issue 601: Keep search parameters in resource module
veggiematts Jan 14, 2020
13f957d
Issue 365: Opening modules in the same or a new window is configurable.
veggiematts Oct 1, 2019
6b2ab0a
Merge pull request #606 from biblibre/Issue_365_new_window
veggiematts Jan 15, 2020
913af3d
Merge pull request #558 from vinny75/vinny75-issue-482
veggiematts Jan 16, 2020
2f26a25
Issue 623: Search resources with no relationship
veggiematts Jan 30, 2020
c3a19b6
Merge pull request #624 from biblibre/Issue_623
veggiematts Jan 30, 2020
961a1e2
Merge pull request #547 from biblibre/fix_licensing_calendar
veggiematts Jan 30, 2020
5ef60ce
Issue 601: Keep search parameters in resource module
veggiematts Jan 30, 2020
f55a235
Fix licensing calendar
veggiematts Mar 8, 2019
5063b62
Issue 482: Fix Resource Get Statistics button
vinny75 Mar 13, 2019
d5bdc5c
Fix licensing calendar
veggiematts Aug 23, 2019
0c60d7a
Issue 365: Opening modules in the same or a new window is configurable.
veggiematts Oct 1, 2019
72030f6
Issue 623: Search resources with no relationship
veggiematts Jan 30, 2020
71383ed
Issue 601: Keep search parameters in resource module
veggiematts Jan 30, 2020
c700df8
Merge branch 'development' into Issue_601_Keep_Search_in_Resource_Module
veggiematts Jan 30, 2020
6cc256b
Merge pull request #621 from biblibre/Issue_601_Keep_Search_in_Resour…
veggiematts Jan 30, 2020
bbb4e44
Merge pull request #583 from queryluke/bc-ekb-option2
andyp-uk Feb 5, 2020
7ca017d
update terms-tool css
queryluke Feb 15, 2020
3b145f3
Merge pull request #488 from queryluke/terms-tool
andyp-uk Feb 16, 2020
732b861
Fix language selection dropdown lists
veggiematts Feb 21, 2020
2003086
Refacto language selection dropdown lists
veggiematts Feb 21, 2020
7679021
Merge pull request #630 from biblibre/Fix_Lang_Dropdown
veggiematts Feb 21, 2020
609fe2d
Add common classes to the reports module
veggiematts Feb 21, 2020
9781069
Fix dashboards exports
veggiematts Feb 21, 2020
8947e5b
Merge pull request #632 from biblibre/Fix_dashboards_export
veggiematts Feb 21, 2020
7cd3c14
Dashboards: disable Datatable default sorting
veggiematts Feb 21, 2020
baab811
Merge pull request #634 from biblibre/datatable_default_sorting
veggiematts Feb 21, 2020
df3a4e0
Issue 635: Add missing "All detail costs" column in yearly costs dash…
veggiematts Feb 25, 2020
485467c
Merge pull request #637 from biblibre/Issue_635
veggiematts Feb 27, 2020
45e4711
Merge pull request #631 from biblibre/Fix_Reports_module
veggiematts Feb 27, 2020
a79a6de
Issue 638: Fix yearly costs dashboards sums for resources with multip…
veggiematts Feb 27, 2020
604f0cd
Merge pull request #639 from biblibre/Issue_638
veggiematts Feb 27, 2020
5922f0d
Updated po files for 20.02
veggiematts Mar 9, 2020
847cf62
Updated mo files for 20.02
veggiematts Mar 9, 2020
a0b68b4
Translation for 20.02:
veggiematts Mar 9, 2020
e9315b8
Merge pull request #640 from biblibre/Translation_20.02
veggiematts Mar 9, 2020
6811f67
2020.02 installer components
jeffnm Mar 9, 2020
dea1c6a
Merge pull request #641 from jeffnm/2020.02_installer
xsong9 Mar 25, 2020
aed0aa6
Change the footer for 2020.02
jeffnm Apr 7, 2020
0cf9e2f
Merge pull request #646 from jeffnm/2020.02_installer
jeffnm Apr 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ tests/_support/_generated/

# Workspace directory for IDE
/.idea

# Custom terms tool branding
licensing/css/custom.css
635 changes: 635 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

61 changes: 51 additions & 10 deletions LangCodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,72 @@
class LangCodes{
public function getLanguage($code){
$all_lang=array(
'fr_FR'=>'fr_FR',
'de_DE'=>'de_DE',
'en_GB'=>'en_GB',
'en_US'=>'en_US',
'es_ES'=> 'es_ES',
'fr_FR'=>'fr_FR',
'tr_TR'=>'tr_TR',
'zh_CN'=>'zh_CN',
'zh_TW'=>'zh_TW',
'de_DE'=>'de_DE',
'tr_TR'=>'tr_TR'
'zh_TW'=>'zh_TW'
);
return array_key_exists($code, $all_lang) ? $all_lang[$code] : "en_US";
return array_key_exists($code, $all_lang) ? $all_lang[$code] : null;
}
public function getNameLang($code_lang){
$name_lang=array(
'fr_FR'=>'Français',
'de_DE'=>'Deutsch',
'en_GB'=>'English (GB)',
'en_US'=>'English (US)',
'es_ES'=> 'Español',
'fr_FR'=>'Français',
'tr_TR'=>'Türkçe',
'zh_CN'=>'中文 (简体)',
'zh_TW'=>'中文 (正體)',
'de_DE'=>'Deutsch',
'tr_TR'=>'Türkçe'
'zh_TW'=>'中文 (正體)'
);
return array_key_exists($code_lang, $name_lang) ? $name_lang[$code_lang] : "English";
return array_key_exists($code_lang, $name_lang) ? $name_lang[$code_lang] : null;
}

public function getBrowserLanguage() {
return str_replace('-', '_', substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,5));
}

public function getLanguageSelector() {
echo '<span id="setLanguage"><select name="lang" id="lang" class="dropDownLang">';
$route='locale';
$lang[]="en_US"; // add default language
if (is_dir($route)) {
if ($dh = opendir($route)) {
while (($file = readdir($dh)) !== false) {
if (is_dir("$route/$file") && $file!="." && $file!=".." && $this->getLanguage($file) != null){
$lang[]=$file;
}
}
closedir($dh);
}
}else {
echo "<br>"._("Invalid translation route!");
}
// Get language of navigator
$defLang = $this->getBrowserLanguage();

// Show an ordered list
sort($lang);
for($i=0; $i<count($lang); $i++){
if(isset($_COOKIE["lang"])){
if($_COOKIE["lang"]==$lang[$i]){
echo "<option value='".$lang[$i]."' selected='selected'>".$this->getNameLang($lang[$i])."</option>";
}else{
echo "<option value='".$lang[$i]."'>".$this->getNameLang($lang[$i])."</option>";
}
}else{
if($defLang==substr($lang[$i],0,5)){
echo "<option value='".$lang[$i]."' selected='selected'>".$this->getNameLang($lang[$i])."</option>";
}else{
echo "<option value='".$lang[$i]."'>".$this->getNameLang($lang[$i])."</option>";
}
}
}
echo '</select></span>';
}
}
?>
42 changes: 2 additions & 40 deletions auth/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<link rel="SHORTCUT ICON" href="images/favicon.ico" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:100,400,300,600,700' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="../js/plugins/jquery-1.4.4.js"></script>
<script type="text/javascript" src="../js/plugins/jquery-1.8.0.js"></script>
<script type="text/javascript" src="js/plugins/thickbox.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="../js/plugins/Gettext.js"></script>
Expand Down Expand Up @@ -91,45 +91,7 @@
</div>
<div class='boxRight'>
<p class="fontText"><?php echo _("Change language:");?></p>
<select name="lang" id="lang" class="dropDownLang">
<?php
// Get all translations on the 'locale' folder
$route='locale';
$lang[]="en_US"; // add default language
if (is_dir($route)) {
if ($dh = opendir($route)) {
while (($file = readdir($dh)) !== false) {
if (is_dir("$route/$file") && $file!="." && $file!=".."){
$lang[]=$file;
}
}
closedir($dh);
}
}else {
echo "<br>"._("Invalid translation route!");
}
// Get language of navigator
$defLang = $lang_name->getBrowserLanguage();

// Show an ordered list
sort($lang);
for($i=0; $i<count($lang); $i++){
if(isset($_COOKIE["lang"])){
if($_COOKIE["lang"]==$lang[$i]){
echo "<option value='".$lang[$i]."' selected='selected'>".$lang_name->getNameLang(substr($lang[$i],0,5))."</option>";
}else{
echo "<option value='".$lang[$i]."'>".$lang_name->getNameLang(substr($lang[$i],0,5))."</option>";
}
}else{
if($defLang==substr($lang[$i],0,5)){
echo "<option value='".$lang[$i]."' selected='selected'>".$lang_name->getNameLang(substr($lang[$i],0,5))."</option>";
}else{
echo "<option value='".$lang[$i]."'>".$lang_name->getNameLang(substr($lang[$i],0,5))."</option>";
}
}
}
?>
</select>
<?php $lang_name->getLanguageSelector(); ?>
</div>
<div class='smallerText' style='text-align:center; margin-top:13px;'><a href='index.php' id='login-link'><?php echo _("Login page")?></a></div>
<?php include '../templates/footer.php'; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/


class Object {
class Base_Object {

public function __construct(NamedArguments $arguments = NULL) {
if (method_exists($this, 'init')) {
Expand Down
2 changes: 1 addition & 1 deletion auth/admin/classes/common/DBService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/


class DBService extends Object {
class DBService extends Base_Object {

protected $db;
protected $config;
Expand Down
2 changes: 1 addition & 1 deletion auth/admin/classes/common/DynamicObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/


class DynamicObject extends Object {
class DynamicObject extends Base_Object {

protected $properties = array();

Expand Down
2 changes: 1 addition & 1 deletion auth/admin/classes/common/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function text() {
}


class Email extends Object {
class Email extends Base_Object {

protected $to;
protected $subject;
Expand Down
42 changes: 2 additions & 40 deletions auth/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
<link rel="SHORTCUT ICON" href="images/favicon.ico" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:100,400,300,600,700' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="../js/plugins/jquery-1.4.4.js"></script>
<script type="text/javascript" src="../js/plugins/jquery-1.8.0.js"></script>
<script type="text/javascript" src="js/plugins/thickbox.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="../js/plugins/Gettext.js"></script>
Expand Down Expand Up @@ -224,45 +224,7 @@
</div>
<div class='boxRight'>
<p class="fontText"><?php echo _("Change language:");?></p>
<select name="lang" id="lang" class="dropDownLang">
<?php
// Get all translations on the 'locale' folder
$route='locale';
$lang[]="en_US"; // add default language
if (is_dir($route)) {
if ($dh = opendir($route)) {
while (($file = readdir($dh)) !== false) {
if (is_dir("$route/$file") && $file!="." && $file!=".."){
$lang[]=$file;
}
}
closedir($dh);
}
}else {
echo "<br>"._("Invalid translation route!");
}
// Get language of navigator
$defLang = $lang_name->getBrowserLanguage();

// Show an ordered list
sort($lang);
for($i=0; $i<count($lang); $i++){
if(isset($_COOKIE["lang"])){
if($_COOKIE["lang"]==$lang[$i]){
echo "<option value='".$lang[$i]."' selected='selected'>".$lang_name->getNameLang($lang[$i])."</option>";
}else{
echo "<option value='".$lang[$i]."'>".$lang_name->getNameLang($lang[$i])."</option>";
}
}else{
if($defLang==substr($lang[$i],0,5)){
echo "<option value='".$lang[$i]."' selected='selected'>".$lang_name->getNameLang($lang[$i])."</option>";
}else{
echo "<option value='".$lang[$i]."'>".$lang_name->getNameLang($lang[$i])."</option>";
}
}
}
?>
</select>
<?php $lang_name->getLanguageSelector(); ?>
</div>
<div class='smallerText' style='text-align:center; margin-top:13px;'><a href='admin.php' title="<?php echo _("Admin page")?>"><?php echo _("Admin page")?></a></div>

Expand Down
10 changes: 10 additions & 0 deletions auth/install/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,16 @@ function register_auth_provider()
}
];

case "2020.02":
return [
"function" => function($shared_module_info) {
$return = new stdClass();
$return->yield = new stdClass();
$return->success = true;
$return->yield->title = _("Auth Module");
return $return;
}
];


/**
Expand Down
Binary file added auth/locale/es_ES/LC_MESSAGES/messages.mo
Binary file not shown.
Loading