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

Conversion issue #140

Closed
lassebunk opened this issue Sep 3, 2013 · 25 comments
Closed

Conversion issue #140

lassebunk opened this issue Sep 3, 2013 · 25 comments

Comments

@lassebunk
Copy link
Contributor

Hi Russell,

I have this issue:

"test¤test".to_url # => "test$-test"

Thanks,
/Lasse

@rsl
Copy link
Owner

rsl commented Sep 3, 2013

hrm. what IS that symbol?

@lassebunk
Copy link
Contributor Author

Don't know :) some user entered input, maybe from Word...

tirsdag den 3. september 2013 skrev Russell Norris :

hrm. what IS that symbol?


Reply to this email directly or view it on GitHubhttps://github.com//issues/140#issuecomment-23708305
.

@rsl
Copy link
Owner

rsl commented Sep 3, 2013

i don't even know how to look it up to see what it should be.

@rsl
Copy link
Owner

rsl commented Sep 3, 2013

if it should be anything.

@rsl
Copy link
Owner

rsl commented Sep 3, 2013

@rsl
Copy link
Owner

rsl commented Sep 3, 2013

@rsl
Copy link
Owner

rsl commented Sep 3, 2013

what's the context? i'm not sure anything correct can be done with a 'generic currency symbol'.

@lassebunk
Copy link
Contributor Author

No context. Just an error some user entered somewhere. Maybe just replace
it with a space?

tirsdag den 3. september 2013 skrev Russell Norris :

what's the context? i'm not sure anything correct can be done with a
'generic currency symbol'.


Reply to this email directly or view it on GitHubhttps://github.com//issues/140#issuecomment-23708788
.

@rsl
Copy link
Owner

rsl commented Sep 3, 2013

is this with locales? i'm kinda thinking defaulting to us with no locale is fine and perhaps adding a default currency for each of the locales. thoughts? not sure this is any more accurate though than just removing.

@lassebunk
Copy link
Contributor Author

Not sure about the default currency because even in Danish I don't know
what that symbol means. I have usually seen the symbol when importing data
from other systems, i.e. an encoding error or something like that.

2013/9/3 Russell Norris notifications@github.com

is this with locales? i'm kinda thinking defaulting to us with no locale
is fine and perhaps adding a default currency for each of the locales.
thoughts? not sure this is any more accurate though than just removing.


Reply to this email directly or view it on GitHubhttps://github.com//issues/140#issuecomment-23709087
.

@lassebunk
Copy link
Contributor Author

So I think it could be just replaced with a space and then see if anybody
thinks this is wrong. :)

2013/9/3 Lasse Bunk lassebunk@gmail.com

Not sure about the default currency because even in Danish I don't know
what that symbol means. I have usually seen the symbol when importing data
from other systems, i.e. an encoding error or something like that.

2013/9/3 Russell Norris notifications@github.com

is this with locales? i'm kinda thinking defaulting to us with no locale
is fine and perhaps adding a default currency for each of the locales.
thoughts? not sure this is any more accurate though than just removing.


Reply to this email directly or view it on GitHubhttps://github.com//issues/140#issuecomment-23709087
.

@rsl
Copy link
Owner

rsl commented Sep 3, 2013

it's just a generic placeholder-y symbol for 'whatever currency' i think. like... where you might say 'X dollars' and X is generic number... you'd say '10¤' for '10 whatever your currency is'.

@lassebunk
Copy link
Contributor Author

Ah okay. Don't know what the best solution would be then.

2013/9/3 Russell Norris notifications@github.com

it's just a generic placeholder-y symbol for 'whatever currency' i think.
like... where you might say 'X dollars' and X is generic number... you'd
say '10¤' for '10 whatever your currency is'.


Reply to this email directly or view it on GitHubhttps://github.com//issues/140#issuecomment-23717607
.

@rsl
Copy link
Owner

rsl commented Sep 3, 2013

since the default locale is us, i think it's fine that default says dollars. thinking just adding a default currency to each locale would make this work. so the default translation for that for you would be... krone. [had to look that up]. if not that, then dollar makes as much sense as anything.

@lassebunk
Copy link
Contributor Author

Up to you. :) – in Danish it's krone as you said and then "kroner" in its
plural form.

2013/9/3 Russell Norris notifications@github.com

since the default locale is us, i think it's fine that default says
dollars. thinking just adding a default currency to each locale would make
this work. so the default translation for that for you would be... krone.
[had to look that up]. if not that, then dollar makes as much sense as
anything.


Reply to this email directly or view it on GitHubhttps://github.com//issues/140#issuecomment-23718328
.

@rsl
Copy link
Owner

rsl commented Sep 4, 2013

is there a symbol that should be added for kroner?

@rsl
Copy link
Owner

rsl commented Sep 4, 2013

added some code to handle this symbol. need review from @glebtv, @widescape, and @guilherme-otran for the russian, german, and portuguese brazilian though.

@glebtv
Copy link
Contributor

glebtv commented Sep 5, 2013

Russian is крона, plural is кроны
cents is эре
I don't see it in en.yml

@widescape
Copy link
Contributor

Looks good to me @rsl!

@rsl
Copy link
Owner

rsl commented Sep 5, 2013

@glebtv mind editing that file for me just to avoid another round of 'is this right'?

also @lassebunk i did use kroner there and it made me wonder if we needed anything to actually handle kroner symbol [DKK?]? this would be a good time to do so i guess.

@lassebunk
Copy link
Contributor Author

@rsl Kroner i just fine :)
About the DKK, you mean like DKK 1.232,34 => 1.232,34 kroner for example?

@rsl
Copy link
Owner

rsl commented Sep 6, 2013

@lassebunk yeah

@lassebunk
Copy link
Contributor Author

I think it could work, although Danish people also write kr. 123,45 or 123,45 kr..

@rsl
Copy link
Owner

rsl commented Sep 17, 2013

been out of town. thinking supporting things like 'kr. 123' and '123 kr' [in english as well] might be something better added by someone looking to do this concretely rather than me making an abstract change to support something no one has asked for. committing that generic symbol support though.

@rsl rsl closed this as completed Sep 17, 2013
@lassebunk
Copy link
Contributor Author

I agree, good call.

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

No branches or pull requests

4 participants