Skip to content

Commit

Permalink
Add an en-GB localization option.
Browse files Browse the repository at this point in the history
This adds the Great Britain (or United Kingdom) locale.  Translation
isn't really needed in the `.po` file.  However, if someone wants to do
so it could be done.  They do have different spellings of some words.
The most important thing with this is that this adds the time format for
the Great Britain locale which is quite different from the US format.

Note that the `en.po` file was updated as well.  This file hasn't been
updated for a while since it really doesn't need to be.
  • Loading branch information
drgrice1 committed Sep 1, 2024
1 parent 01732a2 commit c5fcfbd
Show file tree
Hide file tree
Showing 5 changed files with 19,818 additions and 3,244 deletions.
1 change: 1 addition & 0 deletions htdocs/js/DatePicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
const datetimeFormats = {
en: 'L/d/yy, h:mm a',
'en-US': 'L/d/yy, h:mm a',
'en-GB': 'dd/LL/yyyy, HH:mm',
'cs-CZ': 'dd.LL.yy H:mm',
de: 'dd.LL.yy, HH:mm',
el: 'd/L/yy, h:mm a',
Expand Down
1 change: 1 addition & 0 deletions htdocs/js/ProblemSetList/problemsetlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
const datetimeFormats = {
en: 'L/d/yy, h:mm a',
'en-US': 'L/d/yy, h:mm a',
'en-GB': 'dd/LL/yyyy, HH:mm',
'cs-CZ': 'dd.LL.yy H:mm',
de: 'dd.LL.yy, HH:mm',
el: 'd/L/yy, h:mm a',
Expand Down
Loading

0 comments on commit c5fcfbd

Please sign in to comment.