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

Add localisation #831

Closed
ostasevych opened this issue Oct 8, 2023 · 3 comments
Closed

Add localisation #831

ostasevych opened this issue Oct 8, 2023 · 3 comments

Comments

@ostasevych
Copy link
Contributor

ostasevych commented Oct 8, 2023

Please, add the localisation of the PDF Viewer app. Here is the zip archive with all necessary files, including
tempales/viewer.php updated with localisation tags
l10n/uk.js
l10n/uk.json strings for the Ukrainian localisation
l10n/en_GB.js
l10n/en_GB.json strings for the Brittish English localisation
localisation.zip

Would that be possible to create the template and add it as a transifex pool, as well?

@danxuliu
Copy link
Member

Thanks for the translations!

Unfortunately, as explained in #826 (review) the translations are already available in PDF.js, and the reason why they are not shown is that the language is got from the browser preferences rather than the Nextcloud settings (which is a bug that should be fixed).

@ostasevych
Copy link
Contributor Author

Thanks for the translations!

Unfortunately, as explained in #826 (review) the translations are already available in PDF.js, and the reason why they are not shown is that the language is got from the browser preferences rather than the Nextcloud settings (which is a bug that should be fixed).

Thank you for your comment. As I've added in that issue, my suggestion is to follow the common rules of placing translation files in the proper folders, thus, creating translation templates, as well as to use Transifex. All other approaches are confusing devs...

@ostasevych
Copy link
Contributor Author

Please, reopen this issue, as it is not solved.

ostasevych added a commit to ostasevych/files_pdfviewer that referenced this issue Mar 29, 2024
Fixing not showing localised strings using Chrome by adding internationalisation tags to `templates/viewer.php` according to the conventional approach in NC to localise apps.

See nextcloud#831

Signed-off-by: Oleksa <[email protected]>
susnux added a commit that referenced this issue Aug 22, 2024
* Resolves #831

Fixing not showing localised strings using Chrome by adding internationalisation
tags to `templates/viewer.php` according to the conventional approach in NC to localise apps.

Co-authored-by: Oleksa <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants