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

translation #27

Open
bones78 opened this issue Feb 5, 2016 · 2 comments
Open

translation #27

bones78 opened this issue Feb 5, 2016 · 2 comments
Labels

Comments

@bones78
Copy link

bones78 commented Feb 5, 2016

Hi all,
I have successfully changed the English days into German ( in the index.coffee under dayMapping:).
But I failed in changing the wheather tags (e.g. cloudy) into a German word.
How can I do this?

@felixhageloh
Copy link
Owner

It is probably weather.condition.text from the api response that provides the text like 'cloudy', 'mostly sunny' etc. If you want to translate it, maybe the best starting place is to use the weather.condition.code instead https://developer.yahoo.com/weather//#codes and then use your own translation mapping (similar to the weekdays)

@bones78
Copy link
Author

bones78 commented Feb 14, 2016

unfortunately it does not work. For example it is sunny, I write (I use test as an example):
weather.condition.code:
32: test
OR 32: 'test'
OR 32: "" test

There is an error:
Error in widget.... unexpected :
If I delete the : in weather.condition.code it says: weather is not defined.
What is the correct way to translate it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants