Making WordPress.org

Opened 7 months ago

Closed 7 months ago

#5817 closed task (invalid)

Add bgn locale

Reported by: evarlese Owned by:
Milestone: Priority: normal
Component: Translate Site & Plugins Keywords:
Cc:

Description

Can the bgn (Western Balochi) locale be added to:
http://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locales/locales.php

Ref: Locale Request: https://make.wordpress.org/polyglots/2021/04/19/requesting-for-a-new-locale/

The related information for the locale is:

<?php
$bgn = new GP_Locale();
$bgn->english_name = 'Western Balochi';
$bgn->native_name = 'بلوچی‎';
$locale->lang_code_iso_639_3 = 'bgn';
$locale->country_code = 'PK';
$locale->wp_locale = 'bgn';
$locale->slug = 'bgn';
$locale->nplurals = 1 ;
$locale->plural_expression = '(n != 0)';

Change History (3)

#1 @tobifjellner
7 months ago

Things that need to be corrected:

  • It's RTL script.
  • nplurals = 1 means that there is no separate form for plural. (i.e. 1 chair; 2 chair, etc.). If that's the case, then the plural_expression should just be plural_expression = '0'
  • If, on the other hand, they have the same structure as English, then nplurals and plural_expression can just be omitted.
  • All items should be provided with the relevant locale code.
  • I checked both Facebook and Google locales and couldn't find Baluchi there, so those items can be omitted.

So, something like this:

$bgn = new GP_Locale();
$bgn->english_name = 'Western Balochi';
$bgn->native_name = 'بلوچی‎';
$bgn->lang_code_iso_639_3 = 'bgn';
$bgn->lang_code_iso_639_2 = 'bal';
$bgn->country_code = 'PK';
$bgn->wp_locale = 'bgn';
$bgn->slug = 'bgn';
$bgn->nplurals = 1 ;
$bgn->plural_expression = '0';

#2 @ocean90
7 months ago

Hi @evarlese, thanks for the ticket but can you please report this on https://github.com/GlotPress/GlotPress-WP/issues which is the canonical source for new locales? Thanks!

#3 @evarlese
7 months ago

  • Resolution set to invalid
  • Status changed from new to closed

Apologies for the mistake! Thank you both for reviewing and pointing me in the right direction - I'll close this ticket and move it over to GitHub after confirming the plural expression.

Note: See TracTickets for help on using tickets.