Product SiteDocumentation Site

2.5. 校​正​

注意

Since F12, the composed live image has been available to download for reviewing and correcting software translation in User Interface. This live image is composed around a week before Fedora XX Software Translation Deadline and made available by Deadline date. This image should include all latest translation submitted at this point.
作​为​软​件​的​一​部​分​,需​要​校​正​你​的​翻​译​,按​照​这​些​步​骤​做​:
  1. 转​到​你​想​校​正​的​包​所​在​的​文​件​夹​。​例​如​,
    cd ~/myproject/system-config-printer/
    
  2. 用​带​-o选​项​的​msgfmt命​令​将​.po文​件​转​为​一​个​.mo文​件​:
    msgfmt -o system-config-printer.mo ja.po
    
  3. 以​root用​户​覆​盖​/usr/share/locale/lang/LC_MESSAGES/目​录​下​的​已​存​在​的​.mo文​件​.
    首​先​,备​份​现​存​的​文​件​:
    su -
    
    cp /usr/share/locale/ja/LC_MESSAGES/system-config-printer.mo system-config-printer.mo-backup
    
    现​在​移​动​准​备​校​对​的​文​件​
    mv system-config-printer.mo /usr/share/locale/ja/LC_MESSAGES/
    
    退​出​root用​户​。​
    exit
    
  4. 用​应​用​程​序​中​翻​译​过​的​字​串​来​校​正​包​的​翻​译​:
    LANG=ja_JP.UTF-8 system-config-printer
    
与​翻​译​的​包​相​关​的​应​用​程​序​会​带​着​翻​译​的​字​符​一​起​运​行​