Skip to:
Content

BuddyPress.org

#8041 closed defect (bug) (fixed)

Time string. “few minutes, hours ago” not translated in Belarusian language

Reported by: wegosi Owned by: boonebgorges
Milestone: 5.0.0 Priority: high
Severity: normal Version:
Component: Core Keywords: reporter-feedback
Cc:

Description

in

wp-content/plugins/buddypress/bp-core/js/vendor/moment-js/locale

belarusian translation files:

be.min.js
be.js

should have names

bel.min.js
bel.js

Only in that way "Last time member activity" shows correctly, in other way shows default English translation

Change History (4)

#1 @boonebgorges
15 months ago

  • Keywords reporter-feedback added
  • Milestone changed from Awaiting Review to 5.0.0

@wegosi Thank you for your report, and for your patience as we triage tickets.

It looks like you're correct. Do you know why WordPress's translation system uses 'bel' for Belarusian instead of 'be'? We might need to provide mappings for other domains as well.

#2 @wegosi
15 months ago

@boonebgorges

Sure. It's not correct. Because for other languages is used ISO 639-1: two-letter codes, but for for Belarusian language now is used ISO 639-2/T: three-letter codes. It's not correct!
https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

I don't know why the wordpress ranslation system uses 'bel'. I think it's a core problem.
It's like use ENG instead of EN.

Last edited 15 months ago by wegosi (previous) (diff)

#3 @boonebgorges
15 months ago

Thanks for the quick response, @wegosi ! I spent some time matching up all of the moment.js locales with the corresponding WordPress locales (which are a mix of ISO 639-1, 2, and 3 codes), and found a small handful of mismatches. I learned something new about ISO language codes today! I'll add mappings for those locales.

#4 @boonebgorges
15 months ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 12351:

Activity: Map WP locales to ISO-639-1 when loading Moment.js locale.

Props wegosi.
Fixes #8041.

Note: See TracTickets for help on using tickets.