Skip to content

theming l10n translation #28167

Closed
Closed

Description

@felixboehm

tried to customize a translation via theme

Steps to reproduce

  1. mkdir -p themes/myTheme/core/l10n
  2. cp core/l10n/en_GB.js* themes/myTheme/core/l10n/
  3. vim themes/myTheme/core/l10n/en_GB.js # change some
  4. configure theme in config.php
  5. load page and filter network for en_GB files
  6. switch to the correct language in personal settings

Expected behaviour

Custom strings are used.
The en_GB.js file for "core" should come from theme

Actual behaviour

Custom strings are not used

Two en_GB.js files for "core" are loaded

Note double slash in second

Other

ownCloud 10.0.3
No log entries

Activity

  1. felixboehm commented on Jun 20, 2017

    @felixboehm
    ContributorAuthor

    Please recheck and consider writing acceptance tests for this. @SergioBertolinSG
    If you find the same behavior, let's fix this.

  2. felixboehm commented on Jul 6, 2017

    @felixboehm
    ContributorAuthor

    theming apps doesn't work anymore either??

  3. added this to the development milestone on Jul 6, 2017
  4. self-assigned this
    on Jul 6, 2017
  5. DeepDiver1975 commented on Jul 6, 2017

    @DeepDiver1975
    Contributor

    theming apps doesn't work anymore either??

    cannot reproduce.

    just enabled a theme and it loads just fine.

    will have a look at translations ....

  6. DeepDiver1975 commented on Jul 6, 2017

    @DeepDiver1975
    Contributor

    will have a look at translations ....

    the new app based theming is not respected in loading themed translations .... needs a deeper look.

    furthermore translations are loaded even before the theme app is loaded

  7. DeepDiver1975 commented on Jul 6, 2017

    @DeepDiver1975
    Contributor

    on loading of the js translation files theme path is completly ignores ....

  8. DeepDiver1975 commented on Jul 13, 2017

    @DeepDiver1975
    Contributor

    according to @phisch fixed with #27746

  9. felixboehm commented on Jul 17, 2017

    @felixboehm
    ContributorAuthor

    thanks

  10. PVince81 commented on Aug 7, 2017

    @PVince81
    Contributor

    and #27746 is still open

  11. 13 remaining items

  12. added
    p2-high
    p1-urgent
    and removed
    p3-medium
    p2-high
    on Nov 30, 2017
  13. tomneedham commented on Dec 1, 2017

    @tomneedham
    Contributor

    Breaks branding which is important for big installations upgrading to 10

  14. VicDeo commented on Dec 1, 2017

    @VicDeo
    Contributor

    js part works fine with l10n from themes.
    the bug in php translation only.

  15. VicDeo commented on Dec 1, 2017

    @VicDeo
    Contributor

    ...and now I'm facing that apps with type theme should be loaded before any other kind of apps

    another solution is to lazy-load active app-themes inside \OC\L10N\Factory but it's a hacky way to go.

  16. VicDeo commented on Dec 4, 2017

    @VicDeo
    Contributor

    @felixboehm I see two issues from your description.

    vim themes/myTheme/core/l10n/en_GB.js # change some

    en_GB.js is a frontend translation file. It's not enough to translate this file only, as it has a backend companion en_GB.json. Both files should be translated because the former is used in JS and the latter in PHP part of the ownCloud.

  17. VicDeo commented on Dec 15, 2017

    @VicDeo
    Contributor

    Fix will be released with 10.0.5

  18. lock commented on Aug 2, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  19. locked as resolved and limited conversation to collaborators on Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type:Bugblue-ticketp1-urgentsev3-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions