Skip to content

Conversation

@Pytal
Copy link
Member

@Pytal Pytal commented Jan 8, 2022

See title 👆

@Pytal Pytal added bug 2. developing Work in progress feature: language/translations (l10n/i18n) Localization and translation matters labels Jan 8, 2022
@Pytal Pytal force-pushed the fix/l10n-exception-message branch from a840650 to 0878363 Compare January 11, 2022 00:11
@Pytal Pytal changed the title Make some exception messages translatable Make Sabre File exception messages translatable Jan 11, 2022
@Pytal Pytal added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 11, 2022
@Pytal Pytal added this to the Nextcloud 24 milestone Jan 11, 2022
@Pytal
Copy link
Member Author

Pytal commented Jan 11, 2022

/backport to stable23

@Pytal
Copy link
Member Author

Pytal commented Jan 11, 2022

/backport to stable22

@Pytal
Copy link
Member Author

Pytal commented Jan 11, 2022

/backport to stable21

@Pytal Pytal marked this pull request as ready for review January 11, 2022 00:13
@Pytal Pytal requested review from a team, ArtificialOwl, CarlSchwan and nickvergessen and removed request for a team January 11, 2022 00:23
@Pytal Pytal self-assigned this Jan 11, 2022
Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be maybe possible to store $this->l10nFactory->get(Application::APP_ID) inside a property of the File class instead of calling this everytime?

@Pytal Pytal force-pushed the fix/l10n-exception-message branch from 0878363 to ee8f192 Compare January 14, 2022 19:23
@Pytal Pytal force-pushed the fix/l10n-exception-message branch 2 times, most recently from 18e8c6e to c53b587 Compare February 4, 2022 19:06
@Pytal Pytal requested a review from nickvergessen February 4, 2022 19:07
@PVince81
Copy link
Member

need to check with clients to make sure they don't happen to read the english messages to distinguish errors

@tobiasKaminsky

@tobiasKaminsky
Copy link
Member

need to check with clients to make sure they don't happen to read the english messages to distinguish errors

Which endpoint is this? Then I can check with team.

@Pytal
Copy link
Member Author

Pytal commented Feb 18, 2022

Which endpoint is this? Then I can check with team.

This class is only used within the dav app so https://github.com/nextcloud/server/blob/master/apps/dav/appinfo/routes.php probably contains all of them

@tobiasKaminsky
Copy link
Member

This class is only used within the dav app so https://github.com/nextcloud/server/blob/master/apps/dav/appinfo/routes.php probably contains all of them

If this is true, then there is no problem as we do only use v1/direct, which should be handled without translations.

@Pytal
Copy link
Member Author

Pytal commented Feb 22, 2022

If this is true, then there is no problem as we do only use v1/direct, which should be handled without translations.

IDE reports use only within dav app, can you confirm @PVince81?

@PVince81
Copy link
Member

If this is true, then there is no problem as we do only use v1/direct, which should be handled without translations.

IDE reports use only within dav app, can you confirm @PVince81?

I'm not familiar with this route. You could try grepping through the release tarball if you want to be sure.

@Pytal
Copy link
Member Author

Pytal commented Feb 23, 2022

I'm not familiar with this route. You could try grepping through the release tarball if you want to be sure.

grepped through release tarball and looks good, @tobiasKaminsky can you confirm that the exception strings aren't used on clients?

@tobiasKaminsky
Copy link
Member

Strings are not used, but only shown, e.g. if direct endpoint fails. Then they might be either shown as is or a generic error message is shown.
In either case we do not rely on exact wording of those strings, but only display them.

@Pytal Pytal force-pushed the fix/l10n-exception-message branch from c53b587 to 3355350 Compare February 24, 2022 17:51
@Pytal
Copy link
Member Author

Pytal commented Feb 24, 2022

Rebased

Signed-off-by: Christopher Ng <chrng8@gmail.com>
@Pytal Pytal force-pushed the fix/l10n-exception-message branch from 3355350 to 67ec981 Compare March 1, 2022 23:29
@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 1, 2022
@Pytal Pytal merged commit 9d088df into master Mar 2, 2022
@Pytal Pytal deleted the fix/l10n-exception-message branch March 2, 2022 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: language/translations (l10n/i18n) Localization and translation matters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants