monotone

monotone Commit Details

Date:2009-01-11 18:58:11 (10 years 5 months ago)
Author:Tony Cooper
Branch:net.venge.monotone.contrib.mtn-browse
Commit:b0ba770a8e3f2df2d77a6252bbe33b7ead1aec1c
Parents: 947eaefb0aa442f7913e9eb40552e191e37b0f65
Message:- Added a readme file for the translations directory.

- Updated the Linux installer to deal with translation (.po) files.
Changes:
Atranslations/README (full)
Mlinux-install (1 diff)

File differences

linux-install
232232
233233
234234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
235253
236254
237255
}
$dir->close();
# Install translation files.
die("IO::Dir failed with $!")
if (! defined($dir = IO::Dir->new("translations")));
while (defined($file = $dir->read()))
{
if ($file =~ m/(.*)\.po$/)
{
my $locale = $1;
system("msgfmt --output-file=translations/${locale}.mo "
. "translations/$file");
system("$install translations/${locale}.mo "
. "${prefix_dir}/share/locale/${locale}/LC_MESSAGES/"
. "mtn-browse.mo");
}
}
$dir->close();
exit(0);
}
translations/README
1
2
3
4
5
6
7
8
9
10
11
12
13
Copy the mtn-browse.pot file to <Locale>.po, e.g. de_DE.po, and then edit as
appropriate. The installer will convert the po files to mo format and store them
under:
.../share/locale/<Locale>/LC_MESSAGES/mtn-browse.mo
e.g.
.../share/locale/de_DE/LC_MESSAGES/mtn-browse.mo
Thank you.
Tony Cooper.

Archive Download the corresponding diff file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status