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

Localize site name/description for metadata preview pane usage #233

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

wiz
Copy link
Contributor

@wiz wiz commented Sep 6, 2019

Allows you to localize the preview text on Slack, Twitter, etc. like this:

Screen Shot 2019-09-06 at 10 02 08

@wiz wiz force-pushed the localized-metadata-for-preview branch 2 times, most recently from fda1118 to 6802d4c Compare September 6, 2019 00:54
Copy link
Contributor

@erciccione erciccione left a comment

Choose a reason for hiding this comment

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

utACK

@huey735
Copy link
Contributor

huey735 commented Sep 6, 2019

@m52go Could we change the English text to:
site_desc: "Bisq is an open-source desktop application that allows you to buy and sell bitcoins in exchange for national currencies or altcoins."

pt-PT translation
site_name: "Bisq - A exchange de Bitcoin descentralizada"
site_desc: "Bisq é uma aplicação de desktop open-source que lhe permite comprar e vender bitcoins em troca de moedas nacionais ou altcoins."

@wiz
Copy link
Contributor Author

wiz commented Sep 6, 2019

why not "alternative crypto-currencies" ? too long?

@wiz wiz force-pushed the localized-metadata-for-preview branch from 6802d4c to 7578e47 Compare September 6, 2019 14:13
@m52go
Copy link
Contributor

m52go commented Sep 6, 2019

@wiz yeah for such site previews, every character counts. Would be too long, I think.

I would say it could be shortened even more to "Bisq is an open-source desktop application that allows you to trade bitcoin for national currencies or altcoins."

@wiz wiz force-pushed the localized-metadata-for-preview branch from 7578e47 to d7b5080 Compare September 6, 2019 14:15
@wiz
Copy link
Contributor Author

wiz commented Sep 6, 2019

The max length for opengraph description is 155 characters. The string "Bisq is an open-source desktop application that allows you to buy and sell bitcoins in exchange for national currencies, or alternative crypto currencies." is 154 characters so it fits perfectly, and I don't see any issue?

@m52go
Copy link
Contributor

m52go commented Sep 6, 2019

No issues, but I would still say shorter is better, like how a 50-character tweet is more likely to be read entirely than a 240-character tweet.

I don't have a strong opinion here...it was just a suggestion. Maybe others can chime in.

@wiz
Copy link
Contributor Author

wiz commented Sep 6, 2019

Of course, you need to fit your translated text within the 155 character limit, so by all means shorten your translations if necessary. I think it's important to say "alternative crypto-currency" and not "altcoins" because newbies might not know what those are.

@wiz wiz force-pushed the localized-metadata-for-preview branch from d7b5080 to 744d9e8 Compare September 6, 2019 14:53
Copy link
Contributor

@m52go m52go left a comment

Choose a reason for hiding this comment

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

test

EDIT: I suggested some changes but they didn't get added to my review. Will try to submit review again.

@wiz
Copy link
Contributor Author

wiz commented Sep 6, 2019

you can't suggest changes if I already committed and pushed them 😉

Copy link
Contributor

@m52go m52go left a comment

Choose a reason for hiding this comment

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

I prefer this wording.

_data/languages.yml Show resolved Hide resolved
_data/languages.yml Show resolved Hide resolved
_data/languages.yml Show resolved Hide resolved
@wiz
Copy link
Contributor Author

wiz commented Sep 6, 2019

IMO your requested changes are out of scope for this PR. This PR is only to implement the ability to localize the description into various languages, not to change any strings. If you want to change strings, you should do that in your own PR, not in mine :)

@m52go
Copy link
Contributor

m52go commented Sep 6, 2019

You're on thin ice here buddy. But I acknowledge this contribution 😄

@m52go
Copy link
Contributor

m52go commented Sep 6, 2019

ACK

@m52go m52go merged commit 0ed8a60 into bisq-network:master Sep 6, 2019
@wiz wiz deleted the localized-metadata-for-preview branch September 6, 2019 15:08
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.

4 participants