-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding states for Benin(BJ) country 🇧🇯 #27217
Conversation
I've added some states from the country : Benin
formating based on phpcs standard
i18n/states.php
Outdated
@@ -172,6 +172,85 @@ | |||
), | |||
'BH' => array(), | |||
'BI' => array(), | |||
'BJ' => array( // Benin states. | |||
'BJ-01' => __( 'ABOMEY', 'woocommerce' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those state names doesn't seems to match the list: https://github.com/unicode-org/cldr/blob/master/common/subdivisions/en.xml#L522-L533
Also it's all on uppercase, it need to be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay i'll apply the changes and commit it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have applied changes as mentionned, does it match now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updating by the right states name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manutheblacker Thanks for the help.
i18n/states.php
Outdated
'BJ-03' => __( 'Atlantique', 'woocommerce' ), | ||
'BJ-04' => __( 'Borgou', 'woocommerce' ), | ||
'BJ-05' => __( 'Collines', 'woocommerce' ), | ||
'BJ-06' => __( 'Couffo', 'woocommerce' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kouffo
.
i18n/states.php
Outdated
@@ -172,6 +172,20 @@ | |||
), | |||
'BH' => array(), | |||
'BI' => array(), | |||
'BJ' => array( // Benin states. | |||
'BJ-01' => __( 'Alibori', 'woocommerce' ), | |||
'BJ-02' => __( 'Atacora', 'woocommerce' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noting for second reviewer that this is the French spelling for the state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you got a point. This is the French spelling for this state because it is a French state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but we also need to follow the code from the CLDR.
Source: https://github.com/unicode-org/cldr/blob/master/common/subdivisions/en.xml#L521 Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approved the suggestions from Claudio to use codes from CLDR. This PR looks good to me now.
Suggested changes were incorporated
I've added some states for the Benin country
All Submissions:
Changes proposed in this Pull Request:
These changes add all states for Benin country to the list of WooCommerce Countries. It give the ability to the customers, to pick and select the right states while he is buying on a WooCommerce store.
How to test the changes in this Pull Request:
Changelog entry