<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.sim-im.org/index.php?action=history&amp;feed=atom&amp;title=UpdatingMessages</id>
	<title>UpdatingMessages - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.sim-im.org/index.php?action=history&amp;feed=atom&amp;title=UpdatingMessages"/>
	<link rel="alternate" type="text/html" href="http://www.sim-im.org/index.php?title=UpdatingMessages&amp;action=history"/>
	<updated>2026-04-25T23:00:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>http://www.sim-im.org/index.php?title=UpdatingMessages&amp;diff=2406&amp;oldid=prev</id>
		<title>Shaplov at 15:24, 1 May 2009</title>
		<link rel="alternate" type="text/html" href="http://www.sim-im.org/index.php?title=UpdatingMessages&amp;diff=2406&amp;oldid=prev"/>
		<updated>2009-05-01T15:24:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;From time to time it is useful to synchronize current .po files (files with interface messages translated into different languages) with messages from source code. Developers occasionally changes interface and this changes should be imported into i18n files.&lt;br /&gt;
&lt;br /&gt;
Sim-IM i18n system was developed using kde3's i18n tools, so to extract messages from source code you will need special version of '''xgettext''': '''kde-xgettext'''. It can be downloaded [ftp://ftp.kde.org/pub/kde/devel/gettext-kde/ here]. (Do not forget to rename executable file into kde-xgettext after building). If you are using debian-powered OS, you may build kde-xgettext package using ubuntu's [https://launchpad.net/ubuntu/+source/gettext-kde/0.10.35-0ubuntu2 rules files]&lt;br /&gt;
&lt;br /&gt;
After getting kde-xgettext, you should create build-dir as you do while building Sim-IM and generate make files with ENABLE_TARGET_UPDATE_MESSAGES option turned on&lt;br /&gt;
&lt;br /&gt;
  cmake -D ENABLE_TARGET_UPDATE_MESSAGES:boolean=true [path to source dir]&lt;br /&gt;
&lt;br /&gt;
As a result you will get makefile with special target 'update-messages' in it. Run it!&lt;br /&gt;
&lt;br /&gt;
  make update-messages&lt;br /&gt;
&lt;br /&gt;
Make script will scan all the source code, extract all messages that should be translated and put them in po/sim.pot file, and merge them with existing translations in po/*.po files. Previous versions of i18n files will be saved in po/*.backup, so if you want too keep old data, do not run updating twice.&lt;br /&gt;
&lt;br /&gt;
Then check if everything is ok, and commit updated messages into repository, hope you know how to do it ;-)&lt;/div&gt;</summary>
		<author><name>Shaplov</name></author>
	</entry>
</feed>