EnglishFrenchSpanish

OnWorks favicon

msguntypotp - Online in the Cloud

Run msguntypotp in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command msguntypotp that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


msguntypot - update PO files when a typo is fixed in POT file

SYNOPSIS


msguntypot -o old_pot -n new_pot pofiles ...

DESCRIPTION


When you fix a trivial error which surely doesn't affect translations (e.g. a typo) in a
POT file, you should unfuzzy the corresponding msgstr in the translated PO files to avoid
so extra work to the translators.

This task is difficult and error prone when done manually, and this tool is there to help
doing so correctly. You just need to provide the two versions of the POT file: before the
edition and after as marked in the above synopsis, and it all becomes automatic.

HOW TO USE IT


In short, when you discover a typo in one of your [english] message, do the following:

- Regenerate your POT and PO files.
make -C po/ update-po # for message program translations
debconf-updatepo # for debconf translations
po4a po4a.conf # for po4a based documentation translations

or something else, depending on your project's building settings. You know how to make
sure your POT an PO files are uptodate, don't you??

- Make a copy of your POT file.
cp myfile.pot myfile.pot.orig

- Make a copy of all your files.
mkdir po_fridge; cp *.po po_fridge

- Fix your typo.
$EDITOR the_file_in_which_there_is_a_typo

- Regenerate your POT and PO files.
See above.

At this point, the typo fix fuzzied all the translations, and this unfortunate change is
the only one between the PO files of your main directory and the one from the fridge. Here
is how to solve this.

- Discard fuzzy translation, restore the ones from the fridge.
cp po_fridge/*.po .

- Manually merge the PO files with the new POT file, but taking the useless fuzzy into
account.
msguntypot -o myfile.pot.orig -n myfile.pot *.po

- Cleanups.
rm -rf myfile.pot.orig po_fridge

You're done. The typo was eradicated from msgstr of both your POT and PO files, and the PO
files were not fuzzyied in the process. Your translators love you already.

Use msguntypotp online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    itop - ITSM  CMDB OpenSource
    itop - ITSM CMDB OpenSource
    IT Operations Portal: a complete open
    source, ITIL, web based service
    management tool including a fully
    customizable CMDB, a helpdesk system and
    a document man...
    Download itop - ITSM CMDB OpenSource
  • 2
    Clementine
    Clementine
    Clementine is a multi-platform music
    player and library organizer inspired by
    Amarok 1.4. It has a fast and
    easy-to-use interface, and allows you to
    search and ...
    Download Clementine
  • 3
    XISMuS
    XISMuS
    ATTENTION: Cumulative update 2.4.3 has
    been released!! The update works for any
    previous 2.x.x version. If upgrading
    from version v1.x.x, please download and
    i...
    Download XISMuS
  • 4
    facetracknoir
    facetracknoir
    Modular headtracking program that
    supports multiple face-trackers, filters
    and game-protocols. Among the trackers
    are the SM FaceAPI, AIC Inertial Head
    Tracker ...
    Download facetracknoir
  • 5
    PHP QR Code
    PHP QR Code
    PHP QR Code is open source (LGPL)
    library for generating QR Code,
    2-dimensional barcode. Based on
    libqrencode C library, provides API for
    creating QR Code barc...
    Download PHP QR Code
  • 6
    Freeciv
    Freeciv
    Freeciv is a free turn-based
    multiplayer strategy game, in which each
    player becomes the leader of a
    civilization, fighting to obtain the
    ultimate goal: to bec...
    Download Freeciv
  • More »

Linux commands

Ad