Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Mon 3281 set default language to browser #7046

Merged
merged 3 commits into from
Jan 16, 2019

Conversation

sc979
Copy link
Contributor

@sc979 sc979 commented Dec 12, 2018

Resolve : MON-3281

@sc979 sc979 requested review from leoncx and kduret December 12, 2018 12:42
Copy link
Contributor

@kduret kduret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to change default value of contact_lang column on update too

@sc979 sc979 force-pushed the MON-3281-set-default-language-to-browser branch from c293104 to 371e483 Compare December 12, 2018 13:31
@sc979 sc979 force-pushed the MON-3281-set-default-language-to-browser branch 2 times, most recently from 54e487f to 53a6905 Compare January 2, 2019 16:19
@sc979 sc979 requested a review from quanghungb January 2, 2019 16:53
www/api/class/centreon_datepicker_i18n.class.php Outdated Show resolved Hide resolved
www/api/class/centreon_datepicker_i18n.class.php Outdated Show resolved Hide resolved
www/api/class/centreon_datepicker_i18n.class.php Outdated Show resolved Hide resolved
www/api/class/centreon_datepicker_i18n.class.php Outdated Show resolved Hide resolved
www/install/sql/centreon/Update-DB-18.10.2_to_18.10.3.sql Outdated Show resolved Hide resolved
@sc979 sc979 removed request for quanghungb and leoncx January 3, 2019 12:23
@sc979 sc979 force-pushed the MON-3281-set-default-language-to-browser branch from ebefe89 to 1982ba3 Compare January 3, 2019 12:41
@sc979 sc979 force-pushed the MON-3281-set-default-language-to-browser branch from 1982ba3 to 6a1dd52 Compare January 3, 2019 13:27
$path = __DIR__ . "/../../include/common/javascript/datepicker/";

// check if the fullLocale library exist
$datepickerFileToFound = "datepicker-" . substr($data, 0, 5) . ".js";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could use preg_match to avoid double substr

@sc979 sc979 force-pushed the MON-3281-set-default-language-to-browser branch from 6a1dd52 to 3babed5 Compare January 14, 2019 08:19
@sc979 sc979 merged commit 9c3f90e into master Jan 16, 2019
@sc979 sc979 deleted the MON-3281-set-default-language-to-browser branch January 16, 2019 08:52
vhr pushed a commit that referenced this pull request Jan 23, 2019
* fix(DP): avoid datepicker error when language is set to null

* fix(lang): replace default language value from 'NULL' to 'browser'

* enh(DP): supporting more localizations
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants