Product SiteDocumentation Site

3.5. Korrekturläsning

To proofread your translation as part of the software, follow these steps:
  1. Change directory to the package you want to proofread. For example,
    cd ~/myproject/system-config-printer/
    
  2. Convert the .po file to a .mo file using msgfmt with -o option:
    msgfmt -o system-config-printer.mo ja.po
    
  3. As a root user, overwrite the existing .mo file in /usr/share/locale/lang/LC_MESSAGES/.
    First, back up the existing file:
    su -
    
    cp /usr/share/locale/ja/LC_MESSAGES/system-config-printer.mo system-config-printer.mo-backup
    
    Now move the file converted for proofreading.
    mv system-config-printer.mo /usr/share/locale/ja/LC_MESSAGES/
    
    Exit root user.
    exit
    
  4. Korrekturläs paketet med de översatta strängarna som en del av applikationen:
    LANG=ja_JP.UTF-8 system-config-printer
    
Applikationen som hör ihop med det översatta paketet kommer köras med de översatta strängarna.