wolph / alfred-converter

Alfred unit converter is a smart calculator for Alfred with support for unit conversions to make it a bit comparable to the Google Calculator and Wolfram Alpha.
93 stars 15 forks source link

Different spellings #2

Closed paulmaschhoff closed 9 years ago

paulmaschhoff commented 9 years ago

Request support for the following:

Can you do options? it would be nice to choose -re or -er endings for SI units.

wolph commented 9 years ago

Well, the thing is. I'm using the poscUnits22.xml file which I just found by Googling to be honest (url: http://w3.energistics.org/uom/poscUnits22.xml). And it uses English instead of US spelling by default which makes displaying something different slightly tricky.

I've added some new aliases and changed the default output to show us-style measures. There appears to be no easy and fast way to do language detection from Python in OS X so it's just default to US now :)

Please give it a try, you can download the zip here: https://github.com/WoLpH/alfred-converter/archive/master.zip and overwrite the files in your current workflow folder. Note that for the best effect you should remove the units.pickle file, it automatically gets re-generated but it might cache the old units.

paulmaschhoff commented 9 years ago

Alright I'll take a look, thanks for getting my back so quickly.

On Mon, Mar 30, 2015 at 11:31 PM, Rick van Hattem notifications@github.com wrote:

Well, the thing is. I'm using the poscUnits22.xml file which I just found by Googling to be honest (url: http://w3.energistics.org/uom/poscUnits22.xml). And it uses English instead of US spelling by default which makes displaying something different slightly tricky. I've added some new aliases and changed the default output to show us-style measures. There appears to be no easy and fast way to do language detection from Python in OS X so it's just default to US now :)

Please give it a try, you can download the zip here: https://github.com/WoLpH/alfred-converter/archive/master.zip and overwrite the files in your current workflow folder. Note that for the best effect you should remove the units.pickle file, it automatically gets re-generated but it might cache the old units.

Reply to this email directly or view it on GitHub: https://github.com/WoLpH/alfred-converter/issues/2#issuecomment-87837009