rename
parent
9a61f3050a
commit
f08bd11f42
|
@ -47,7 +47,7 @@ extra_build: ikiwiki.out ikiwiki.setup docwiki
|
|||
docwiki: ikiwiki.out
|
||||
$(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.out -libdir . -setup docwiki.setup -refresh
|
||||
|
||||
basewikipo: ikiwiki.out
|
||||
underlaypo: ikiwiki.out
|
||||
# copy all the files we want to translate into the
|
||||
# po/underlays scrdir.
|
||||
for file in `find underlays -follow -name \*.mdwn`; do \
|
||||
|
@ -61,7 +61,7 @@ basewikipo: ikiwiki.out
|
|||
install -m 644 $$file po/underlays/directives/ikiwiki/directive; \
|
||||
fi \
|
||||
done
|
||||
$(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.out -libdir . -setup basewikipo.setup -refresh
|
||||
$(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.out -libdir . -setup underlaypo.setup -refresh
|
||||
rm -rf po/html po/underlays/.ikiwiki
|
||||
find po/underlays -name \*.mdwn | xargs rm -f
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@ ikiwiki (3.15) unstable; urgency=low
|
|||
* rename: Refactor subpage rename handling code into rename hook. (intrigeri)
|
||||
* po: New plugin, suporting translation of wiki pages using po files.
|
||||
(intrigeri)
|
||||
* Add underlaypo setup that can be used to generate po files for
|
||||
translating the underlays.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Tue, 02 Jun 2009 17:03:41 -0400
|
||||
|
||||
|
|
|
@ -22,18 +22,13 @@ essentially three pieces needed for a complete translation:
|
|||
* The names and values of parameters, both to the program, in the setup
|
||||
file, and in preprocessor directives.
|
||||
|
||||
1. The templates also need to be translated. Some work has been done on an
|
||||
infrastructure for maintaining translated templates, as documented in
|
||||
[[todo/l10n]], but until that's complete, you'd need to copy and
|
||||
translate the templates by hand.
|
||||
|
||||
1. The [[basewiki]] itself needs to be translated. The
|
||||
[[plugins/contrib/po]] ikiwiki plugin will allow translating
|
||||
wikis using po files and can be used for this.
|
||||
|
||||
To generate the po and pot files for translating the basewiki,
|
||||
get ikiwiki's source, and edit the `basewikipo.setup` file,
|
||||
adding your language. Then run 'perl Makefile.PL; make basewikipo`.
|
||||
get ikiwiki's source, and edit the `underlaypo.setup` file,
|
||||
adding your language. Then run 'perl Makefile.PL; make underlaypo`.
|
||||
This will generate many po files under `po/underlays`. The first
|
||||
ones you'll want to translate are in the `po/underlays/basewiki` directory,
|
||||
which is really not very large, just a few thousand words.
|
||||
|
@ -41,4 +36,7 @@ essentially three pieces needed for a complete translation:
|
|||
`po/underlays/directives`, which are a much larger tens of
|
||||
thousands of words.
|
||||
|
||||
|
||||
1. The templates also need to be translated. Some work has been done on an
|
||||
infrastructure for maintaining translated templates, as documented in
|
||||
[[todo/l10n]], but until that's complete, you'd need to copy and
|
||||
translate the templates by hand.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/perl
|
||||
# Configuration file for ikiwiki that uses the po plugin to build/update
|
||||
# po files for pages in the base wiki.
|
||||
# po files for pages in the underlays.
|
||||
|
||||
use IkiWiki::Setup::Standard {
|
||||
wikiname => "ikiwiki",
|
||||
|
@ -16,9 +16,9 @@ use IkiWiki::Setup::Standard {
|
|||
syslog => 0,
|
||||
add_plugins => [qw{po}],
|
||||
po_master_language => { 'code' => 'en', 'name' => 'English' },
|
||||
# List here all languages for which someone is working on
|
||||
# translating the base wiki. Listing languages that are not
|
||||
# being actively worked on will excessively bloat things.
|
||||
# List here all languages that have translations.
|
||||
# Listing languages that are not being actively
|
||||
# translated on will excessively bloat things.
|
||||
po_slave_languages => {
|
||||
#'fr' => 'Français',
|
||||
#'es' => 'Español',
|
Loading…
Reference in New Issue