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

File Uploaded text on attachments to i18n Bugged #4845

Closed
Molle500 opened this issue Nov 3, 2016 · 11 comments · Fixed by #7199
Closed

File Uploaded text on attachments to i18n Bugged #4845

Molle500 opened this issue Nov 3, 2016 · 11 comments · Fixed by #7199
Assignees
Milestone

Comments

@Molle500
Copy link

Molle500 commented Nov 3, 2016

This was suppose to be fixed for about 3 months ago #4058 .
However there is something bugged about this one becouse it's not reacting to the translation.
1

@geekgonecrazy
Copy link
Contributor

@Molle500 is this a file uploaded prior to the translation? If so its not going to change. That text is stored on the message record.

@engelgabriel
Copy link
Member

@geekgonecrazy if that is the case, we should create an issue to change that, and use the message rendered to translate the message on the UI and not in the backend.

@geekgonecrazy
Copy link
Contributor

Yeah looks like we translate on creation of the attachment and store it:

https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/rocketchat-file-upload/server/methods/sendFileMessage.js#L18

@Molle500
Copy link
Author

Molle500 commented Nov 3, 2016

@geekgonecrazy This is a new uploaded file so it's after the translation. You can change language to swedish and try for urself if u want :)

@MartinSchoeler
Copy link
Contributor

@Molle500 @geekgonecrazy I think the problem with 'UNREAD MESSAGES' is that this text is being added on a css file, here:


not even using the i18n system

@geekgonecrazy
Copy link
Contributor

@MartinSchoeler I completely missed that one. Yeah that one it does look like is in css

@engelgabriel
Copy link
Member

@MartinSchoeler @Molle500 has this been fixed now?

@Molle500
Copy link
Author

It might have been fixed, i saw there was a few lines at lingohub that wasn't translated with "File Uploaded". I will check after next lingo update :) @engelgabriel

@Molle500
Copy link
Author

Molle500 commented May 5, 2017

This one still do not work :/

@engelgabriel engelgabriel modified the milestones: 0.56.0, 0.57.0 May 9, 2017
@MartinSchoeler
Copy link
Contributor

Hey @Molle500 i'm working on that issue and i wanted to know your opinion on what to do with the old file names, I can either create a migration to remove the "File Uploaded" string from files or leave them as is.
Thanks!

@geekgonecrazy
Copy link
Contributor

I personally think we should have the fix take place from here forward. On large servers like say the demo server where we have a looooooooooot of file uploads. This could be a very heavy migration. So I think it would be better to just have all messages here on out be properly translated.

Just my two cents :)

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

Successfully merging a pull request may close this issue.

6 participants