Support for underscores in Desktop/INI-style keys
Bug #1330088 reported by
Colomban Wendling
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
intltool |
New
|
Undecided
|
Unassigned |
Bug Description
Currently, the Desktop parser doesn't accept underscores in key names. Although this follows the FreeDesktop standard, it is a problem because this parser is also used for INI-style files through gettext/ini, which commonly accept underscores in key names.
For example I stumbled upon this trying to translate some keys from an configuration file using the GLib format, which does allow underscores (and the keys I wanted to translate did use them).
Attached is the trivial patch enabling support for underscores in Desktop and INI keys names.
To post a comment you must log in.
Ping. Updated version of the patch against current trunk, and with tests.