Merge branch 'master' of git://git.ikiwiki.info into underlay-da
commit
187128d063
|
@ -58,9 +58,11 @@ underlaypo: ikiwiki.out
|
||||||
install -d po/underlays/directives/ikiwiki/directive
|
install -d po/underlays/directives/ikiwiki/directive
|
||||||
for file in doc/ikiwiki/directive/*; do \
|
for file in doc/ikiwiki/directive/*; do \
|
||||||
if [ -f "$$file" ]; then \
|
if [ -f "$$file" ]; then \
|
||||||
|
cp -a $$file po/underlays/directives/ikiwiki/directive || \
|
||||||
install -m 644 $$file po/underlays/directives/ikiwiki/directive; \
|
install -m 644 $$file po/underlays/directives/ikiwiki/directive; \
|
||||||
fi \
|
fi \
|
||||||
done
|
done
|
||||||
|
install -d po/underlays/empty
|
||||||
$(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.out -libdir . -setup underlaypo.setup -refresh
|
$(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.out -libdir . -setup underlaypo.setup -refresh
|
||||||
find po/underlays -name \*.mdwn | xargs rm -f
|
find po/underlays -name \*.mdwn | xargs rm -f
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
then="This wiki has po support **enabled**."
|
then="This wiki has po support **enabled**."
|
||||||
else="This wiki has po support **disabled**."]]
|
else="This wiki has po support **disabled**."]]
|
||||||
|
|
||||||
If the [po](plugins/po) plugin is enabled, the regular
|
If the [[!iki plugins/po desc=po]] plugin is enabled, the regular
|
||||||
[[ikiwiki/PageSpec]] syntax is expanded with the following additional
|
[[ikiwiki/PageSpec]] syntax is expanded with the following additional
|
||||||
tests that can be used to improve user navigation in a multi-lingual
|
tests that can be used to improve user navigation in a multi-lingual
|
||||||
wiki:
|
wiki:
|
||||||
|
|
|
@ -260,6 +260,28 @@ order, as `po_slave_languages` is a hash. It would need to be converted
|
||||||
to an array to support this. (If twere done, twere best done quickly.)
|
to an array to support this. (If twere done, twere best done quickly.)
|
||||||
--[[Joey]]
|
--[[Joey]]
|
||||||
|
|
||||||
|
po files in underlay
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
I think this plugin doesn't yet allow po files to be present in an
|
||||||
|
underlay to translate files also from the underlay.
|
||||||
|
|
||||||
|
In `istranslatablefile`, it specifically checks that
|
||||||
|
the file is present in srcdir.
|
||||||
|
|
||||||
|
Problem with this is that it precludes using po to translate
|
||||||
|
the basewiki (work which is well under way for Danish BTW),
|
||||||
|
since the translated po files cannot really be used. --[[Joey]]
|
||||||
|
|
||||||
|
Duplicate %links ?
|
||||||
|
------------------
|
||||||
|
|
||||||
|
I notice code in the scan hook that seems to assume
|
||||||
|
that %links will accumulate duplicate links for a page.
|
||||||
|
That used to be so, but the bug was fixed. Does this mean
|
||||||
|
that po might be replacing the only link on a page, in error?
|
||||||
|
--[[Joey]]
|
||||||
|
|
||||||
Documentation
|
Documentation
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
|
@ -93,4 +93,9 @@ This may be useful for sites with a few pages in different languages, but no ful
|
||||||
>> it'll need `tr/_/-/` after the optional `.encoding` is removed.
|
>> it'll need `tr/_/-/` after the optional `.encoding` is removed.
|
||||||
>> --[[smcv]]
|
>> --[[smcv]]
|
||||||
|
|
||||||
|
>>> Now that po has been merged, this patch should probably also be adapted
|
||||||
|
>>> so that the po plugin forces the meta::lang of every page to what po
|
||||||
|
>>> thinks it should be. Perhaps [[the_special_po_pagespecs|ikiwiki/pagespec/po]]
|
||||||
|
>>> should also work with meta-assigned languages? --[[smcv]]
|
||||||
|
|
||||||
[[!tag wishlist patch plugins/meta translation]]
|
[[!tag wishlist patch plugins/meta translation]]
|
||||||
|
|
|
@ -8,8 +8,8 @@ use IkiWiki::Setup::Standard {
|
||||||
# will excessively bloat things.
|
# will excessively bloat things.
|
||||||
po_slave_languages => {
|
po_slave_languages => {
|
||||||
#'fr' => 'Français',
|
#'fr' => 'Français',
|
||||||
#'es' => 'Español',
|
#'es' => 'Español',
|
||||||
#'de' => 'Deutsch',
|
#'de' => 'Deutsch',
|
||||||
},
|
},
|
||||||
po_master_language => { 'code' => 'en', 'name' => 'English' },
|
po_master_language => { 'code' => 'en', 'name' => 'English' },
|
||||||
po_translatable_pages => "*",
|
po_translatable_pages => "*",
|
||||||
|
@ -20,8 +20,8 @@ use IkiWiki::Setup::Standard {
|
||||||
destdir => "po/html",
|
destdir => "po/html",
|
||||||
templatedir => "templates",
|
templatedir => "templates",
|
||||||
# we don't want to pull in the normal underlays
|
# we don't want to pull in the normal underlays
|
||||||
underlaydirbase => "po/underlays",
|
underlaydirbase => "po/underlays/empty",
|
||||||
underlaydir => "po/underlays/basewiki",
|
underlaydir => "po/underlays/empty",
|
||||||
discussion => 0,
|
discussion => 0,
|
||||||
locale => '',
|
locale => '',
|
||||||
verbose => 1,
|
verbose => 1,
|
||||||
|
|
Loading…
Reference in New Issue