[Bug localedata/13169] New: NLSPATH environment variable not in use for dynamically changing Message Catalog location path

View: New views
5 Messages — Rating Filter:   Alert me  

[Bug localedata/13169] New: NLSPATH environment variable not in use for dynamically changing Message Catalog location path

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

| View Threaded | Show Only this Message

http://sourceware.org/bugzilla/show_bug.cgi?id=13169

             Bug #: 13169
           Summary: NLSPATH environment variable not in use for
                    dynamically changing Message Catalog location path
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales@...
        ReportedBy: ankit@...
    Classification: Unclassified


How to use NLSPATH environment variable effectively to use custom path for
Message catalog files. At the moment all applications point to the standard
location "/usr/share/locale" I would like to use different path along with this
path as a fallback. How can I do that?

Thanks!
Ankit

--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug localedata/13169] NLSPATH environment variable not in use for dynamically changing Message Catalog location path

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

| View Threaded | Show Only this Message

http://sourceware.org/bugzilla/show_bug.cgi?id=13169

Ankit Patel <ankit at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aalam at redhat dot com,
                   |                            |pnemade at redhat dot com

--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug localedata/13169] NLSPATH environment variable not in use for dynamically changing Message Catalog location path

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

| View Threaded | Show Only this Message

http://sourceware.org/bugzilla/show_bug.cgi?id=13169

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |drepper.fsp at gmail dot
                   |                            |com
         Resolution|                            |WORKSFORME

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-12-22 23:46:58 UTC ---
I really don't know what you mean.  There is full support for NLSPATH in
catgets.  You have to use the correct format for the path elements.  Read the
documentation.

--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug localedata/13169] NLSPATH environment variable not in use for dynamically changing Message Catalog location path

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

| View Threaded | Show Only this Message

http://sourceware.org/bugzilla/show_bug.cgi?id=13169

--- Comment #2 from Ankit Patel <ankit at redhat dot com> 2011-12-28 09:55:50 UTC ---
I think I was unable to explain the issue.

1. Run the command LANG=gu_IN.utf-8 gedit
2. It shows Gujarati (gu-IN) localized gedit, where the translations are picked
up from the default location "/usr/share/locale/gu_IN/LC_MESSAGES/gedit.mo

Now I want to use a custom path, to pick up the translations
1. So if I run "export NLSPATH=/home/ankit/temp_locale"
2. and run "LANG=gu_IN.utf-8 gedit" it will show me localized gedit, but this
time the translation messages are picked up from a new location
"/home/ankit/temp_locale/gu_IN/LC_MESSAGES/gedit.mo", which is not happening.

So, is it possible to use NLSPATH to set custom paths of locations of
translation binaries (mo files)?

Thanks!
Ankit

--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug localedata/13169] NLSPATH environment variable not in use for dynamically changing Message Catalog location path

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

| View Threaded | Show Only this Message

http://sourceware.org/bugzilla/show_bug.cgi?id=13169

--- Comment #3 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-12-28 11:19:30 UTC ---
(In reply to comment #2)
> Now I want to use a custom path, to pick up the translations
> 1. So if I run "export NLSPATH=/home/ankit/temp_locale"
> 2. and run "LANG=gu_IN.utf-8 gedit" it will show me localized gedit, but this

gedit almost certainly uses gettext.  And what on earth has gettext to do with
NLSPATH?  Stop bothering people if you don't know what you're talking about.

--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.