|
knowitnothing
|
|
November 16, 2013, 03:18:01 PM |
|
The comment linked in that issue seems to suggest more than just passing the current language. The apps can already be localized, it is a matter of having a menu inside the app where the user can pick some other language, and obviously the app needs to provide such translations. Passing the current language is unneeded, as it is already available through navigator.language in javascript. If navigator.language doesn't reflect the current language, then that should be an issue by itself. It looks like that comment is after some method for sharing the translations already available for Hive, so the apps can reuse them as much as possible. No amount of translations will ever be enough for all the possible apps, but some of the common translated strings could be reused and at least reduce some trivial effort on the translations there. I'm not sure if this actually helps, as it might induce to apps half-translated which doesn't improve the user experience.
|
|
|
|
moderate
Member
Offline
Activity: 98
Merit: 10
nearly dead
|
|
November 16, 2013, 04:44:08 PM |
|
It looks like that comment is after some method for sharing the translations already available for Hive, so the apps can reuse them as much as possible. Yes.
|
|
|
|
jsuder
Full Member
Offline
Activity: 145
Merit: 100
┗(°0°)┛
|
|
November 19, 2013, 09:13:06 AM |
|
The apps can already be localized, it is a matter of having a menu inside the app where the user can pick some other language, and obviously the app needs to provide such translations. Passing the current language is unneeded, as it is already available through navigator.language in javascript. If navigator.language doesn't reflect the current language, then that should be an issue by itself.
It looks like that comment is after some method for sharing the translations already available for Hive, so the apps can reuse them as much as possible. No amount of translations will ever be enough for all the possible apps, but some of the common translated strings could be reused and at least reduce some trivial effort on the translations there. I'm not sure if this actually helps, as it might induce to apps half-translated which doesn't improve the user experience.
No, it wasn't about passing any actual translated strings from Hive to apps, that wouldn't make much sense as you say. This is specifically about passing info about the locale currently used in the app. I haven't thought about navigator.language, that can probably be useful for now, but I'm guessing it doesn't always reflect the Hive locale exactly - especially if Hive doesn't currently have a translation for the language you've chosen in the system preferences.
|
|
|
|
moderate
Member
Offline
Activity: 98
Merit: 10
nearly dead
|
|
November 19, 2013, 12:40:46 PM |
|
The apps can already be localized, it is a matter of having a menu inside the app where the user can pick some other language, and obviously the app needs to provide such translations. Passing the current language is unneeded, as it is already available through navigator.language in javascript. If navigator.language doesn't reflect the current language, then that should be an issue by itself.
It looks like that comment is after some method for sharing the translations already available for Hive, so the apps can reuse them as much as possible. No amount of translations will ever be enough for all the possible apps, but some of the common translated strings could be reused and at least reduce some trivial effort on the translations there. I'm not sure if this actually helps, as it might induce to apps half-translated which doesn't improve the user experience.
No, it wasn't about passing any actual translated strings from Hive to apps, that wouldn't make much sense as you say. Uhm I just said it was, right in the last comment. You need an API for letting the apps access the locales, obviously you won't pass the entire files on every application start.
|
|
|
|
jsuder
Full Member
Offline
Activity: 145
Merit: 100
┗(°0°)┛
|
|
November 19, 2013, 02:43:26 PM |
|
Uhm I just said it was, right in the last comment. You need an API for letting the apps access the locales, obviously you won't pass the entire files on every application start.
Ok, now I'm confused, but anyway here's what we're planning: - there will be locale information in the JS API, so the app will be able to check if the whole UI is displayed e.g. in French or in German, and if it includes its own translations for its labels inside the app bundle, it can use some kind of JS i18n library to change the language of the labels - there (probably) won't be any API that passes any specific translated strings from Hive to the app through the API, because I think there's no way we can prepare any generic set of labels that would be reusable in any significant amount of apps and would cover all copy needed in those apps, and that would probably be more work than it's worth anyway
|
|
|
|
Ecurb123
|
|
November 19, 2013, 07:03:27 PM |
|
Hi, I'm just trying to get my head around what this is, and I'm sorry I haven't read too much yet. As I understand it, the hive app is an app which is or will be a bitcoin wallet, but also offers an API for people to create their own bitcoin related games which can be played with the bitcoins in the users wallet. Is that right or am I way off?
|
|
|
|
moderate
Member
Offline
Activity: 98
Merit: 10
nearly dead
|
|
November 19, 2013, 07:12:11 PM |
|
Hi, I'm just trying to get my head around what this is, and I'm sorry I haven't read too much yet. As I understand it, the hive app is an app which is or will be a bitcoin wallet, but also offers an API for people to create their own bitcoin related games which can be played with the bitcoins in the users wallet. Is that right or am I way off?
Any kind of app, as long as you can do it using javascript, html, and css. It is just a webkit browser embedded there.
|
|
|
|
tgerring
Full Member
Offline
Activity: 142
Merit: 100
Hive/Ethereum
|
|
November 27, 2013, 03:59:02 PM |
|
Hi, I'm just trying to get my head around what this is, and I'm sorry I haven't read too much yet. As I understand it, the hive app is an app which is or will be a bitcoin wallet, but also offers an API for people to create their own bitcoin related games which can be played with the bitcoins in the users wallet. Is that right or am I way off?
Hive is a Bitcoin wallet for Mac OS X Hive wallet also has a API, allowing developers to build apps that live inside the wallet itself, making it easy for Hive users to interact with Bitcoin services directly. Since it's HTML/CSS/JS-based, anything that can run in the browser can be an app.
|
|
|
|
BTC_GHD
Member
Offline
Activity: 98
Merit: 10
|
|
December 01, 2013, 06:46:17 AM |
|
I'm working on an app for Dabs' charity based on Seans Outpost
|
|
|
|
jsuder
Full Member
Offline
Activity: 145
Merit: 100
┗(°0°)┛
|
|
December 04, 2013, 12:19:32 PM Last edit: December 04, 2013, 12:35:11 PM by jsuder |
|
A few updates for Hive app developers: - apps now run on http://app_name.hiveapp/ instead of http://localhost/app_name - this was changed to prevent apps from reading each other's cookies (but if possible, please don't hardcode the address, just take it from location.href, as we may need to change it again in the future)
- you can now safely use cookies to persist data between sessions (just remember to set a persistent cookie, not a session cookie, i.e. with an expiration date set)
- localStorage does NOT work properly right now and you should not rely on it
- there are bitcoin.VERSION and bitcoin.BUILD_NUMBER properties if you need to check the Hive version
- if you are relying on the fact that Hive disables origin policy check for XHR requests, please don't do that - we'll be removing this in the future (and there will be an API method added instead that will proxy the request for you)
Also, a few things you might not be aware of: - Hive has a Webkit inspector enabled, so in any app you can right-click and choose "Inspect" to get access to the JS console
- for easier development, you can replace an archived app bundle in ~/Library/Application Support/Hive/Applications with an unpacked directory with the same name, and the app will work exactly the same
|
|
|
|
|
|
hivewallet (OP)
|
|
December 08, 2013, 10:38:40 PM |
|
Neat! Would you be interested in porting that to a Hive app? We'd love to get some BTC-E action in there!
|
|
|
|
daybyter
Legendary
Offline
Activity: 965
Merit: 1000
|
|
December 08, 2013, 11:11:50 PM |
|
To be honest: I have no clue, how hive works... But the btc-e stuff is dirt simple. It's just 4 or 5 lines of js with some jsquery mobile and some rough html to display the tables. The most interesting part would be a nice graph with candles etc. But I never managed to get there. I code java most of the time and can't even read those candle graphs, so I wrote me my own UI: https://i.imgur.com/MqHfF.jpgSo I guess, I won't be much help for you...
|
|
|
|
Desensitizer
Newbie
Offline
Activity: 42
Merit: 0
|
|
December 09, 2013, 03:53:59 AM |
|
Any plans to develope a Windows version of hive? I am interested in trying it out and I would be willing to do some beta testing if you needed it.
|
|
|
|
jsuder
Full Member
Offline
Activity: 145
Merit: 100
┗(°0°)┛
|
|
December 09, 2013, 04:09:13 PM |
|
Three more updates about the API: - getSystemInfo - it now includes locale and preferred currency info; the version and build number properties I mentioned before were also moved there (sorry...)
- updateExchangeRate - you can now get currency exchange rates (e.g. USD/BTC) inside apps
- makeRequest - this should be used to bypass origin policy if a web API doesn't support JSONP or CORS (again, please don't rely on the fact that Hive is currently disabling the origin policy check)
These changes will be available in the next build.
|
|
|
|
icedicedavid
Full Member
Offline
Activity: 154
Merit: 100
Ice-Dice.com | Massive Referral Bonus!
|
|
December 10, 2013, 09:17:21 AM |
|
what is the user base for hive now?
|
|
|
|
hivewallet (OP)
|
|
December 10, 2013, 11:42:09 AM |
|
what is the user base for hive now?
Since we are warning people at every turn to be careful with our wallet until it leaves "alpha" stage, there are probably not a lot. However, we will be peeling off those labels very soon and making a wider push. Still, we do get emails every day asking for support, and we see in those that a lot of people are totally ignoring our warnings and sending thousands of dollars worth of Bitcoin using Hive. We don't have any kind of "calling home" feature to tally data, so we cannot be too specific just yet.
|
|
|
|
hivewallet (OP)
|
|
December 10, 2013, 11:42:55 AM |
|
Any plans to develope a Windows version of hive? I am interested in trying it out and I would be willing to do some beta testing if you needed it.
Hi Desensitizer! Only if an exceptional Windows developer steps up to help us. It's not something we really know anything about, unfortunately.
|
|
|
|
|