<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.fogproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_translate_FOG</id>
		<title>How to translate FOG - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.fogproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_translate_FOG"/>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=How_to_translate_FOG&amp;action=history"/>
		<updated>2026-05-12T21:25:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=How_to_translate_FOG&amp;diff=2756&amp;oldid=prev</id>
		<title>Bertux: /* Overview */ fixed a typo error</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=How_to_translate_FOG&amp;diff=2756&amp;oldid=prev"/>
				<updated>2010-12-28T20:40:44Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Overview: &lt;/span&gt; fixed a typo error&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Translating FOG ==&lt;br /&gt;
&lt;br /&gt;
=== Overview === &lt;br /&gt;
&lt;br /&gt;
For internationalization support FOG relies on gettext.  In this tutorial we will show you how to do translations of FOG on Ubuntu using a tool called poedit.&lt;br /&gt;
&lt;br /&gt;
=== Installing POEdit === &lt;br /&gt;
&lt;br /&gt;
#Open a terminal windows via '''Applications -&amp;gt; Accessories -&amp;gt; Terminal'''&lt;br /&gt;
#Type: '''sudo apt-get update; sudo apt-get install poedit'''&lt;br /&gt;
&lt;br /&gt;
=== Getting the Translation Template ===&lt;br /&gt;
&lt;br /&gt;
#Create a working directory with '''mkdir -p ~/Desktop/fog-translation'''&lt;br /&gt;
#Type: '''cd ~/Desktop/fog-translation'''&lt;br /&gt;
#Type: '''wget http://freeghost.svn.sourceforge.net/viewvc/freeghost/trunk/packages/web/management/languages/messages.pot'''&lt;br /&gt;
&lt;br /&gt;
=== Creating the translation PO file ===&lt;br /&gt;
&lt;br /&gt;
The .pot file is the template file.  Now we are going to create a translation based on this file.  &lt;br /&gt;
&lt;br /&gt;
#Open POEdit ('''Applications -&amp;gt; Programming -&amp;gt; Poedit''')&lt;br /&gt;
#If this is the first run, you will need to enter your name and an email address&lt;br /&gt;
#'''File -&amp;gt; New Catalog from pot file...'''&lt;br /&gt;
#open '''~/Desktop/fog-translation/messages.pot'''&lt;br /&gt;
#In the Project Info tab, select a '''Language''' and '''Country''', then select '''OK'''&lt;br /&gt;
#Then save you po file in the ~/Desktop/fog-translation/ directory as messages.po&lt;br /&gt;
&lt;br /&gt;
After that you are ready to translate, on the English strings will appear on the left hand size and the translation then goes on the right hand side.  When your translation is complete, click '''Save''' and send the FOG Project team your messages.po and message.mo file so they can be added to the project.  You can send this information to us via the patches section of SF at:&lt;br /&gt;
&lt;br /&gt;
http://sourceforge.net/tracker/?group_id=201099&amp;amp;atid=976201&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Updating a PO File with an updated POT ==&lt;br /&gt;
&lt;br /&gt;
As FOG progresses, we will keep adding to strings to the POT file, so every so often you will want to update your translation file.  To do this, follow these steps to get the latest template:&lt;br /&gt;
&lt;br /&gt;
[[#Getting_the_Translation_Template]]&lt;br /&gt;
&lt;br /&gt;
#Open POEdit and open your po file.  &lt;br /&gt;
#Then select '''Catalog -&amp;gt; Update from POT File'''&lt;br /&gt;
#Select your new POT file.&lt;br /&gt;
&lt;br /&gt;
== Advanced Translation Tools ==&lt;br /&gt;
&lt;br /&gt;
PO Edit can actually look at other translated files and see if any string are in common and if so, automatically add them to your translation file.  &lt;br /&gt;
&lt;br /&gt;
To do this you need to have a catalog open in POEdit, then&lt;br /&gt;
&lt;br /&gt;
#Go to '''Edit -&amp;gt; Preferences'''&lt;br /&gt;
#Select the '''Translation Memory''' tab.&lt;br /&gt;
#Click the '''Add''' button, and select your translation language.&lt;br /&gt;
#Click '''Generate database'''&lt;br /&gt;
#When the wizard pops up, remove your home directory and click the '''next''' button (This may take a while, as it generates a database of all translations on your system).&lt;br /&gt;
#Click '''Finish'''&lt;br /&gt;
#In the configuration section set both '''Max. # of missing words:''' and '''Max. difference in sentence length:''' to '''0'''.  You will get less strings translated, but they will be more accurate. &lt;br /&gt;
#Click '''OK''' to exit the preferences window.&lt;br /&gt;
#select '''Catalog''' -&amp;gt; '''Automatically translate using TM'''&lt;/div&gt;</summary>
		<author><name>Bertux</name></author>	</entry>

	</feed>