Skip to content

Commit

Permalink
Membercard gen bermasalah dalam bahasa Indonesia
Browse files Browse the repository at this point in the history
Setelah di analisis ternyata ada masalah pada pengaturan gettext nya. Cukup menambahkan setlocale('LC_NUMERIC', 'C') membercard tidak berantakan lagi, baik dalam bahasa inggris atau bahasa indonesia. Referensi https://processwire.com/talk/topic/4123-decimal-point-changed-to-in-base-of-setlocale/#elComment_142861
  • Loading branch information
drajathasan authored Aug 23, 2019
1 parent f278444 commit 4d23739
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/lang/php-gettext/gettext.inc
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ function _setlocale($category, $locale) {
if (array_key_exists($default_domain, $text_domains)) {
unset($text_domains[$default_domain]->l10n);
}
// Fix comma number format in id_ID locale
setlocale(LC_NUMERIC, 'C');
return $CURRENTLOCALE;
}
}
Expand Down

3 comments on commit 4d23739

@desawarna
Copy link

Choose a reason for hiding this comment

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

ini belum diterapkan di SLiMS 9.1.1 :)

@drajathasan
Copy link
Contributor Author

@drajathasan drajathasan commented on 4d23739 Dec 30, 2020

Choose a reason for hiding this comment

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

ini belum diterapkan di SLiMS 9.1.1 :)

Kata dev nya, gak perlu di set global karena ini bergantung sama bahasa yang dipakai oleh PC si user, jadi gak diterapin di SLiMS 9.X.X.

@desawarna
Copy link

Choose a reason for hiding this comment

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

Owh 🙃
Okay kak @drajathasan

Please sign in to comment.