Skip to content
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

Language bangla #108 #110

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ronisarkarexe
Copy link

The addition of the Bangla (Bengali) language has been completed.

New language added. reference

@dorians
Copy link
Collaborator

dorians commented Aug 23, 2023

please update readme

Copy link
Collaborator

@dorians dorians left a comment

Choose a reason for hiding this comment

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

thank you for your contribution!
I reviewed it and left few comments

@ronisarkarexe
Copy link
Author

I have changed the code, please check it now.

dorians
dorians previously approved these changes Aug 28, 2023
Copy link
Collaborator

@dorians dorians left a comment

Choose a reason for hiding this comment

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

LGTM
cc @jglaszka

@jglaszka jglaszka self-requested a review August 29, 2023 21:49
Copy link
Collaborator

@jglaszka jglaszka left a comment

Choose a reason for hiding this comment

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

I have question about test cases (see my comment in BanglaValuesTest.groovy). Also, in Bangla numbers are also separated by two digits as in Hindi?

@@ -45,7 +46,8 @@ public enum MoneyConverters {
SERBIAN_CYRILLIC_BANKING_MONEY_VALUE(serbianCyrillicContainer().getBankingMoneyConverter()),
FRENCH_BANKING_MONEY_VALUE(frenchContainer().getBankingMoneyConverter()),
BULGARIAN_BANKING_MONEY_VALUE(bulgarianContainer().getBankingMoneyConverter()),
DUTCH_BANKING_MONEY_VALUE(dutchContainer().getBankingMoneyConverter());
DUTCH_BANKING_MONEY_VALUE(dutchContainer().getBankingMoneyConverter()),
BANGLA_BANKING_MONEY_VALUE(banglaContainer().getBankingMoneyConverter());

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add your language also to the ValueConverters and LongConvertrs files

@jglaszka
Copy link
Collaborator

jglaszka commented Sep 6, 2023

@ronisarkarexe Hi, can you fix git conflicts, please?

@Override
public Map<Integer, GenderForms> baseNumbers() {
return baseNumbersBuilder()
.put(1, "শূন্য")
Copy link
Collaborator

@jglaszka jglaszka Sep 6, 2023

Choose a reason for hiding this comment

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

Shouldn't it be 0?

 .put(0, "শূন্য")


@Override
public GenderType genderType() {
return GenderType.NON_APPLICABLE;
Copy link
Collaborator

Choose a reason for hiding this comment

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

needs to be imported:

import pl.allegro.finance.tradukisto.internal.languages.GenderType;


public String currency() {
return "৳";
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This class needs to have twoDigitsNumberSeparator method implemented

Copy link
Collaborator

@jglaszka jglaszka left a comment

Choose a reason for hiding this comment

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

I ran your tests, 64/100 does not passes :( If counting in hindi is similar to bangla, you can get inspired by PR: #112

@jglaszka jglaszka self-assigned this Sep 11, 2023
@ronisarkarexe
Copy link
Author

I ran your tests, 64/100 does not passes :( If counting in hindi is similar to bangla, you can get inspired by PR: #112

I will check, thank for mention

@jglaszka
Copy link
Collaborator

I resolved conflicts in your PR

@@ -320,4 +321,9 @@ public LongToStringConverter getLongConverter() {
public BigDecimalToStringConverter getBankingMoneyConverter() {
return bigDecimalConverter;
}

public static Container banglaContainer() {
TurkishValues values = new BanglaValues();
Copy link
Collaborator

@jglaszka jglaszka Oct 14, 2023

Choose a reason for hiding this comment

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

you need to change TurkishValues to BanglaValues, something like this:

BanglaValues values = new BanglaValues();

@jglaszka jglaszka removed the in review label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants