Что такое формат файла LNG?
The .lng file extension is used for generic language files that add language and locale support to applications. A .lng file contains UI string identifiers mapped to their translated text, most commonly arranged in an INI-style key=value layout with named sections such as [General] or [Language]. Most .lng files carry translations for a single language; a program ships one .lng per supported locale.
.lng files are used for localizing software interface data, dialogs, menus, and documentation labels. Available language options are typically presented during program installation, though language settings can usually be changed later from the program's settings menu.
A .lng file is always tied to the specific software it belongs to and should not be opened manually. Text-based variants can be read in any standard text editor, however, not all .lng files use plain text. Some programs store .lng data in a proprietary binary format, in which case the file contents will not be readable as plain text.
There is no universal specification - .lng is a per-application convention with no single defined format. Modern applications increasingly replace custom .lng files with established standards such as gettext .po files, Java .properties files, or XML .resx resources.
Безопасность и защита
РИСК: LOWA text .lng is passive data and safe to open and edit. Two practical cautions: it only works inside its own application, so editing the wrong copy or breaking the key= names can leave that program showing blank or wrong labels (keep a backup). Because the format is undefined, a file named .lng could occasionally be something else entirely - inspect it as text first. The file cannot execute on its own.
Детали формата
в двух словах- Game/engine language pack - Many games (e.g. older Blizzard/Diablo II, emulators) ship UI text as .lng files in their own format.
- Binary application resource (.lng) - Some programs store a compiled binary string table as .lng, editable only with that app's tools.
Программы, открывающие файлы LNG
Технические подробности
глубокая спецификация| Format type | Application localization resource - maps UI string identifiers to translated text for one language |
| Predominant structure | INI-style plain text: named `[Section]` blocks containing `key=value` string pairs |
| Text encoding | UTF-8, UTF-16 LE/BE (with BOM), or legacy ANSI - varies by application |
| Binary variant | Some programs store `.lng` data in a proprietary binary layout; those files cannot be read as plain text |
| Compression | Not compressed; files are stored as-is, making them directly editable without any decompression step |
| Encryption | Not encrypted; string content is fully accessible in a text editor (for text-based variants) |
| Typical file size | 5 KB - 500 KB (a complete UI string table for one language) |
| Languages per file | One - each supported locale ships as a separate `.lng` file in the application's language folder |
| Magic bytes / file signature | None universal; text variants commonly open with a comment or a `[General]` / `[Language]` section header |
| Internal version header | Optional per-application `[Version]` or `[About]` block naming the target language, author, and version |
| MIME type | `text/plain` for text variants; `application/octet-stream` for binary variants |
| Associated operating systems | Windows (predominant use case); also macOS and Linux |
| File placement | Must reside in the application's `language/` or `locale/` subfolder - the host program loads it from there |
| Standard ownership | No single owner or standard body; each application vendor defines its own `.lng` layout independently |
| Superseded by | Modern apps increasingly use `.po`/`.mo` (gettext), `.properties`, `.resx`, or JSON/XML i18n formats instead of custom `.lng` files |
| Выпущен | Long-standing per-application convention (1990s onward) for shipping UI translations |
| Последняя версия | N/A (no central spec; each program defines its own .lng layout) |
Конвертации LNG
Вопросы и ответы сообщества
спрошено пользователямиВопросов пока нет - станьте первым, кто спросит о файлах LNG.