.LANG 文件扩展名

Minecraft Language Localization File

开发者 Mojang
受欢迎程度
4.3  |  137 
 

什么是 LANG 文件?

A LANG file is a game resource file used by Minecraft, an open-ended game that allows players to create and explore 3D worlds. It saves a list of key-value string pairs that map game menus, achievements, and other game objects to names in a given language. LANG files are used for localization.

更多信息

在 Microsoft Visual Studio Code 中打开的 .lang 文件截图
在 Microsoft Visual Studio Code 中打开的 LANG 文件

When developers create a program intended for use in multiple regions, they often translate the program's text into each of those regions' languages. This process is called localization.

One way developers localize programs is by creating multiple, language-specific text files that map the programs' text strings to each language's version of that string. The program can then refer to the correct file when showing in-game text, based on the user's language setting. Minecraft uses LANG files to show localized text to users.

Where are Minecraft Java Edition's LANG files stored?

Minecraft Java Edition's LANG files are stored in the minecraft.jar archive, which is located in the following directory:

[user]/​AppData/​Roaming/​.minecraft/​bin

In more recent versions of Minecraft Java Edition, LANG files have been replaced by .JSON files.

Where are Minecraft Bedrock Edition's LANG files stored?

Each Minecraft Bedrock Edition resource pack (.MCPACK file) includes one or more LANG files used to show in-game text. These files are stored in a pack's texts directory.

如何打开 LANG 文件

LANG files are saved in a plain text format, so you can open and edit them with any text editor. However, editing Minecraft Java Edition's LANG files can potentially cause the game to not run properly. Therefore, you should back up minecraft.jar before proceeding.

To edit the LANG files stored in minecraft.jar, follow these steps:

  1. Explore minecraft.jar with 7-Zip or another tool that can explore JAR files.
  2. Navigate to the lang folder.
  3. Extract en_US.lang (or another LANG file) and save it to a location on your computer.
  4. Edit the LANG file with a text editor, such as Microsoft Notepad.
  5. Place the edited LANG file back in minecraft.jar, overwriting the previous file.
  6. Delete the META-INF folder within the root directory of minecraft.jar.
  7. Restart Minecraft.
使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开或引用 LANG 文件的程序

Windows
Linux
分类: 游戏
更新时间: 2022-07-14

Skype Language File

开发者 Skype
受欢迎程度
3.2  |  18 
 

Language file used by Skype, a popular online communication program; contains language information that changes the language of the Skype user interface.

更多信息

LANG files can be loaded within Skype by selecting the "Tools→Change Language" option. They can also be edited by selecting "Tools→Change Language→Edit Skype Language File."

可打开或引用 LANG 文件的程序

Windows
分类: 设置
更新时间: 2009-05-19

GtkSourceView Language Definition File

开发者 The GNOME Project
受欢迎程度
2.0  |  6 
 

A LANG file is a configuration file saved in the Language Definition XML format. It is used to add syntax highlighting support for a specific language in the GtkTextView widget included with the GTK toolkit, which is a set of widgets used to create graphical user interfaces (GUIs). LANG files contain information in XML format that typically includes definitions, styles, and metadata.

更多信息

在 Microsoft Visual Studio Code 1 中打开的 .lang 文件截图
在 Microsoft Visual Studio Code 1 中打开的 LANG 文件

GTK is an open source, cross-platform tool used to create GUIs for programs. It consists of various widgets that are used to design the GUI. One of the widgets is GtkTextView, which is used for displaying and editing multiline text in the GUI. The capabilities of the GtkTextView widget can be extended by the GtkSourceView library. Some features that can be extended by the library include file loading and saving, search and replace, and syntax highlighting features.

Support for syntax highlighting can be added for specific languages using LANG files in the GtkSourceView library. Some languages that can be added include C, C++, Java, Fortran, Logtalk, and Axe Parser programming languages, XML, HTML, and LaTex markup languages, and PHP, Python, and Perl scripting languages.

You will most likely only encounter a LANG file if you are a GTK developer since they are not used by other programs. If you would like to view or edit a LANG file, you can use a plain text or XML editor, such as Microsoft Notepad, Apple TextEdit, or Microsoft Visual Studio Code.

注: GTK was formerly known as GIMP Toolkit and GTK+.

可打开或引用 LANG 文件的程序

Linux
免费
分类: 开发者
更新时间: 2019-08-20

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的所有文件格式和软件程序。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们