hacknical icon indicating copy to clipboard operation
hacknical copied to clipboard

I18n

Open Vadorequest opened this issue 7 years ago • 17 comments

I looked quickly in the repo and couldn't find any translation file. Also, it seems hard-coded. Could you extract it in a dedicated translation file? I'd basically add support for French/English languages.

For the record, your repo is top 10 trending GitHub projects today! Cheers :)

https://github.com/trending/javascript

Vadorequest avatar Feb 21 '17 21:02 Vadorequest

@Vadorequest Wow coooooooooooooool! I even didn't think of that before. Actually, this website was designed for Chinese developers at first, but I'm also interested in supporting multiple languages. I'll work on that these days. Thank you!

ecmadao avatar Feb 21 '17 22:02 ecmadao

Hey @Vadorequest Glad to say that I have support a basic English version now 😁 --> http://hacknical.com Atleast, github data analysis page totally support EN, and I'll working on resume page later. Thanks again !

ecmadao avatar Feb 22 '17 17:02 ecmadao

Cooooooool :) I'll take a look at it soon! And add the French version.

Le 22 févr. 2017 6:11 PM, "ecmadao" [email protected] a écrit :

Hey @Vadorequest https://github.com/Vadorequest Glad to say that I have support a basic English version now 😁 --> http://hacknical.com http://hacknical.com/user/login?locale=en Atleast, github data analysis page totally support EN, and I'll working on resume page later. Thanks again !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ecmadao/hacknical/issues/15#issuecomment-281735303, or mute the thread https://github.com/notifications/unsubscribe-auth/ADoY4oEzIr_FPMqaJ8yi0lJ7XHR90zPaks5rfGxTgaJpZM4MH5tG .

Vadorequest avatar Feb 22 '17 17:02 Vadorequest

https://github.com/ecmadao/hacknical/pull/23

Vadorequest avatar Feb 22 '17 21:02 Vadorequest

@ecmadao PR done! (english only yet, I'll add FR when we're good with EN)

I looked at the website, almost everything is translated now, thanks!

I shared you website on Slack and I got a mix of English/Chinese in the preview mode:

image

I guess this part has been missed ;)

Vadorequest avatar Feb 22 '17 21:02 Vadorequest

@Vadorequest Pretty cool. I'm quite sure that I have few mistakes on translation, glad to see you are working on them. THX!

ecmadao avatar Feb 22 '17 23:02 ecmadao

@Vadorequest Almost Done 😁 You can check and review now.

ecmadao avatar Feb 23 '17 00:02 ecmadao

@ecmadao FR version added + minor EN review

https://github.com/ecmadao/hacknical/pull/32

Vadorequest avatar Feb 24 '17 23:02 Vadorequest

Also, in the graphics there are some missing translation too :)

image

Vadorequest avatar Feb 24 '17 23:02 Vadorequest

@Vadorequest

The bug of texts in chart has fixed now, and FR version is initialized now, cool!!! I'm really appreciate of your contributions.

However, if we wanna totally support FR, we also have to check locale files at frontend locales folder, then add new file names fr.js in each folder. Besides, you can find and check EN locale files there.

As for me, I will working on fetching orgs info for each user, and analyse users contributions for each forked & org repository.

ecmadao avatar Feb 25 '17 16:02 ecmadao

Cool! Yep, I've missed the frontend part ^^ I'll take a look ASAP :)

Vadorequest avatar Feb 25 '17 18:02 Vadorequest

@ecmadao I'll use files with the name fr.js and not fr-FR.js, following the same pattern as the en.js. Good for you?

Vadorequest avatar Feb 25 '17 18:02 Vadorequest

A few questions:

  • I wonder what you mean by PV?
  • I didn't understood until now that Resume Share Datas / GitHub Share Datas were "tabs" I thought they were just text, not links, maybe it should be made more obvious?
  • About the Platform and Browser, "Max Platform", don't you mean "Preferred platform" instead? I guess you can somehow figure out what's the platform/browser GitHub users use? I didn't know it was possible.

Vadorequest avatar Feb 25 '17 18:02 Vadorequest

@ecmadao New PR :)

https://github.com/ecmadao/hacknical/pull/35/

Vadorequest avatar Feb 25 '17 23:02 Vadorequest

But I think the english version must be reviewed by a chinese-english speaker first, it's not really easy to translate as it, and it feels like the choice of the words can be improved ;)

Note that the french version is not fully covered yet, sometimes I don't really how I should translate ^^

Vadorequest avatar Feb 25 '17 23:02 Vadorequest

@Vadorequest

Use fr.js instead of fr-FR.js is cool.😁

PV means Page view, and Max Platform is what you think, I record each visit to the shared link, and figure out most preferred platform visitors used. It's my fault to not translate it clearly.

Besides, thanks for your advance of Resume Share Datas / GitHub Share Datas tab, I'll find a better way to show them. Soooo sorry for my pool English transition that bothered you.😵

ecmadao avatar Feb 27 '17 01:02 ecmadao

@ecmadao It's fine, don't worry ;) I took a look at your other repo and I also like the GitHub extension! Besides, I sucked at English for so long... If we have had that discussion 5 years ago you'd have looked like Shakespeare to me! ^_^

Vadorequest avatar Feb 27 '17 01:02 Vadorequest