Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gjs gjs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 117
    • Issues 117
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gjsgjs
  • Issues
  • #411
Closed
Open
Issue created May 11, 2021 by Philip Chimento@ptomato🚮Maintainer

package.js incorrectly attempts to set the locale dir

From https://gitlab.gnome.org/GNOME/gjs/-/blob/master/modules/script/package.js#L94 it looks like the package.js module is intended to use the message catalogs while running uninstalled. However, that doesn't work.

It assumes that passing, e.g. $MESON_BUILD_ROOT/po as the parameter to Gettext.bindtextdomain() will work, because that's where the en.gmo, fr.gmo, ko.gmo etc files are. But bindtextdomain(domain, dirname) actually expects a directory structure of $dirname/en/LC_MESSAGES/$domain.mo. So the files have to be renamed and put in this particular directory structure. This could be done in Package.initGettext(), as a one-time startup cost.

The desired outcome of this issue is to be able to run https://github.com/gcampax/gtk-js-app uninstalled with Meson and be able to see the Italian translations (e.g., with LANGUAGE=it_IT.UTF-8 meson compile -C _build devel)

Assignee
Assign to
Time tracking