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

1 "Recommendations" should say 1 "Recommendation" #12

Open
lpatmo opened this issue May 31, 2015 · 9 comments
Open

1 "Recommendations" should say 1 "Recommendation" #12

lpatmo opened this issue May 31, 2015 · 9 comments

Comments

@lpatmo
Copy link
Owner

lpatmo commented May 31, 2015

No description provided.

@lpatmo
Copy link
Owner Author

lpatmo commented May 31, 2015

Not sure whether this can be solved inside in the custom en.i18n.json file or elsewhere.

@lpatmo
Copy link
Owner Author

lpatmo commented May 31, 2015

Thanks @anbuselvan for pointing out that this is a larger bug with Telescope that might need a PR.

@anbuselvan
Copy link
Collaborator

@lpatmo I spent couple hours to go through the telescope code and found out that, telescope is using version 1.4.1 from tap:i18n package, but there is an improvement already pushed by @SachaG which will help to handle the duplicate items efficiently. If @SachaG is comfortable to get the latest with his fix then my fix will make more sense, but it's a p1 bug in Telescope right now. So, we have to wait until his recent change on tap:i18n package got integrated with telescope, then I'll add my PR to fix this item.

@SachaG
Copy link
Contributor

SachaG commented May 31, 2015

Sorry, I'm not super clear on what I need to do?

@anbuselvan
Copy link
Collaborator

@SachaG in the telescope-lib package the tap:i18n package has been included like this.

but I saw you already pushed an enhancement which is accepted by tap:i18n package project.

As you can notice from telescope-core/i18n/en.i18n.json there are many duplicates.

"comments": "Comments",
"comments": "comments",
"comments_": "Comments",

So, your commit will fix this by having translation items by category, which will make our life easier to organize. For that we need to include the i18n package without version number to get your fix as well.

'tap:i18n',

Also, it'll help me to fix this issue on cb-links as well like 1 Recommendation, 2 Recommendations etc., but we just don't want to fix it in cb-links alone. So, I'm working on a PR for telescope, it's a huge change like reorganizing the translation content in all languages but worth to do it in the right way.

@anbuselvan
Copy link
Collaborator

@SachaG another question, is it okay I can remove the version number as part of my PR?

@SachaG
Copy link
Contributor

SachaG commented Jun 1, 2015

I'm a bit confused, because my PR only changed the documentation, and I also don't see what it has to do with the singular/plural thing.

As for specifying a version number, I had to do it because I was getting an error otherwise. So I guess for now we'll have to update version numbers manually, sorry…

@anbuselvan
Copy link
Collaborator

@SachaG I'm on it. This will be my first PR for Telescope. I'll get back to you once I fixed and tested this plural issue. I recently worked on a project that uses the i18n package efficiently, and I'm trying to bring all those good stuff to Telescope.

@anbuselvan
Copy link
Collaborator

by the way, I realized later that you had updated the documentation, which is nothing to do with version number. So, I've everything I need.

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

No branches or pull requests

3 participants