gettext on Windows

编辑: 来源: 时间: 2017-10-19 14:05 阅读:

 

 

This is only needed for people who either want to extract message IDs or compile message files (.po). Translation work itself just involves editing existing files of this type, but if you want to create your own message files, or want to test or compile a changed message file, you will need the gettext utilities:

  • Download the following zip files from 
    • gettext-runtime-X.bin.woe32.zip
    • gettext-tools-X.bin.woe32.zip
    • libiconv-X.bin.woe32.zip
  • Extract the 3 files in the same folder (i.e. C:/Program Files/gettext-utils)
  • Update the system PATH:
    • Control Panel > System > Advanced > Environment Variables
    • In the System variables list, click Path, click Edit
    • Add ;C:/Program Files/gettext-utils/bin at the end of the Variable value field

You may also use gettext binaries you have obtained elsewhere, so long as the xgettext --version command works properly. Some version 0.14.4 binaries have been found to not support this command. Do not attempt to use Django translation utilities with a gettext package if the command xgettext --version entered at a Windows command prompt causes a popup window saying "xgettext.exe has generated errors and will be closed by Windows".

 


大数据培训、人工智能培训、Python培训、大数据培训机构、大数据培训班、数据分析培训、大数据可视化培训,就选光环大数据!光环大数据,聘请专业的大数据领域知名讲师,确保教学的整体质量与教学水准。讲师团及时掌握时代潮流技术,将前沿技能融入教学中,确保学生所学知识顺应时代所需。通过深入浅出、通俗易懂的教学方式,指导学生更快的掌握技能知识,成就上万个高薪就业学子。 更多问题咨询,欢迎点击------>>>>在线客服

你可能也喜欢这些

在线客服咨询

领取资料

X
立即免费领取

请准确填写您的信息

点击领取
#第三方统计代码(模版变量) '); })();
'); })();