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

client/webserver: Update Order-details Type to show the correct value. #3044

Merged
merged 5 commits into from
Oct 30, 2024

Conversation

dev-warrior777
Copy link
Contributor

Currently the order details Type is showing
market.quoteUnitInfo.conventional.unit

Also cleaned up walletpair BW_ARGS to override
dexc.conf options.

	Currently the order details Type is showing
	market.quoteUnitInfo.conventional.unit

	Also cleaned up walletpair BW_ARGS to override
	dexc.conf options.
@dev-warrior777
Copy link
Contributor Author

Hopefully can resolve #3044

@dev-warrior777
Copy link
Contributor Author

dev-warrior777 commented Oct 27, 2024

Current conflicts are in walletpair which is just a suggested upgrade to BW_ARGS. Can add a new PR but do not want to spam .. now resolved.

@dev-warrior777
Copy link
Contributor Author

Should limit, market, cancel be localized ..? Chinese, Arabic, currently look like this ..

chinese
arabic

..or are these terms understood/used by traders?

@buck54321
Copy link
Member

See e.g. intl.prep(intl.ID_MARKET_ORDER)

	Some locales still default to locale en_US but it is the
	correct order type.

	There is not yet any translation for order type cancel
@dev-warrior777 dev-warrior777 marked this pull request as ready for review October 28, 2024 17:11
@dev-warrior777
Copy link
Contributor Author

TODO:

  • Some locales still default to locale en_US but it is the correct order type.
  • There is not yet any translation for order type cancel for any locale
  • Arabic seems to have the most translations for order type

Since UI details get noticed we may want to put the above into the point release as is. I will work on missing translations in another PR.

@buck54321
Copy link
Member

@dev-warrior777
Copy link
Contributor Author

How about this? buck54321/dcrdex@017099c...buck54321:dcrdex:user-order-type-intl

That is much more complete .. I will update using your approach of a new OrderUtil util, thanks

	Make a new fn 'orderTypeText' in orderutil.ts
	that returns the translated text representation
	for order types:
	  - limit
	  - market
	  - cancel

	Also added simplified chinese translations for
	these 3 order types in jsintl.go
@buck54321 buck54321 merged commit 478851d into decred:master Oct 30, 2024
5 checks passed
buck54321 pushed a commit that referenced this pull request Oct 30, 2024
#3044)

* client/webserver: Update Order-details Type to show the correct value.

* Also cleaned up walletpair BW_ARGS to override dexc.conf options.
---------

Co-authored-by: dev-warrior777 <>
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