尝试在Windows中打开、(Windows isn)查看或编辑(view or edit)某些文件扩展名并不总是最顺利的过程。默认情况下,Windows 支持多种扩展,包括所有MS Office 格式(MS Office formats)。但是,打开其他文件类型(例如POT .PO 和 .MO(POT .PO and .MO))可能需要一些额外的步骤。
POT、.PO 和 .MO 文件(.PO and .MO files)在PHP 编程(PHP programming)、WordPress和其他需要多语言翻译的程序中很常见。如果您遇到POT、.PO 或 .MO 文件(.PO or .MO file),您可以通过以下方式查看和编辑它。
记事本通常可以打开任何东西,但是当使用该应用程序打开上述文件类型之一时,它会显示未格式化、加扰等的文本……
使用 Poedit 打开 POT 文件
而不是使用记事本(Notepad),而是下载一个名为Poedit的特定文本编辑器(text editor)。跳转(Jump)到下载页面(downloads page)并继续为您的操作系统(operating system)下载相应的版本。请注意,该软件适用于Windows、Mac 和 Linux(Mac and Linux)。该软件也是开源的,所以不收费。
成功下载后,继续在您的 PC 上安装该软件,就像安装任何其他程序一样。
成功安装软件后,您现在可以查看和编辑POT、.PO 和 .MO 文件(.PO and .MO files)。只需(Simply)双击文件即可在Poedit中立即启动它。
由于POT、.PO 和 .MO 文件(.PO and .MO files)是标准翻译和语言文件(translation and language files),Poedit 软件(Poedit software)会自动将原始字符串与翻译一起列出。请注意上面的文件是如何出现的,而不是混乱或混乱的。
要编辑字符串,只需单击一次以选择字符串 + 翻译。从那里,软件会将带有翻译的原始字符串加载到编辑框中(edit box)。
使用编辑框(edit box),您可以像处理任何文本文档一样编辑和删除字符串和翻译,类似于记事本或 Word(Notepad or Word)。
如果目标是将原始字符串复制到翻译字段(translation field),您也可以右键单击任何字符串并选择(string and select) 将原始字符串复制到翻译字段(Copy original to translation field),这将删除现有翻译并将其替换为字符串值。
基本上就是这样。现在,您可以简单快速地编辑POT、.PO 和 .MO 语言文件(.PO and .MO language files)。最初,我尝试使用(Initially)记事本和 Dreamweaver(Notepad and Dreamweaver)打开文件,但两个程序都无法保留文本格式(text formatting)。
然而,Poedit 是一个免费的开源替代品,效果很好。Poedit 可能不是您每天都在使用的程序,但如果您需要编辑或查看这些文件类型,您将有一个适用的程序来处理它们。如果您有任何问题,请发表评论。享受!
How to Read and Open POT .PO .MO Extension Files
Trying to open, view or edit certain file extensions in Windows isn’t always the smoothest process. Windows, by default, supports numerous extensions including all оf the MS Office formats. However, there may be some additional steps requіred to оpen оther file types, such as POT .PO and .MO.
POT, .PO and .MO files are common in PHP programming, WordPress and other programs that require multiple language translations. Should you encounter a POT, .PO or .MO file, here’s how you can view and edit it.
Notepad can usually open anything, but when using the app to open one of the mentioned file types, it presents the text unformatted, scrambled, etc…
Open POT Files using Poedit
Instead, of using Notepad, download a specific text editor called Poedit. Jump to the downloads page and proceed to download the according version for your operating system. Note that the software is available for Windows, Mac and Linux. The software is also open-source, so there is no charge.
Upon successful download, proceed to install the software on your PC as you would any other program.
Once the software has been successfully installed, you can now view and edit POT, .PO and .MO files. Simply double click a file to launch it instantly in Poedit.
Because POT, .PO and .MO files are standard translation and language files, the Poedit software automatically lists the original string along with the translation. Note how the above document appears as it should, not jumbled or scrambled.
To edit a string, simply click once to select the string + translation. From there, the software will load the original string with translation into the edit box.
Using the edit box, you can edit and delete strings and translations as you would any text document, similar to Notepad or Word.
If the objective is to copy the original string to the translation field, you can also right-click any string and select Copy original to translation field, which will delete the existing translation and replace it with the string value.
That’s basically all there is to it. Now, you can edit POT, .PO and .MO language files simply and quickly. Initially, I tried opening the files with Notepad and Dreamweaver, but neither program could preserve the text formatting.
Poedit, however, is a freeware open-source alternative that works great. Poedit might not be a program that you use every day, but should you need to edit or view these file types, you will have an applicable program to handle them. If you have any questions, post a comment. Enjoy!