aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/po.pm
Commit message (Expand)AuthorAge
* po: guard against reimportation•••If po is imported twice, bad things happen. Guard against that. I'm not sure what causes the double import; I saw it when websetup did a wiki rebuild. Carp failed to show a backtrace for the second call to import. Joey Hess2010-05-13
* po: fix some uninitalized value warnings when used by websetupJoey Hess2010-04-24
* po: Configuring the same language as master and slave confuses processing; so...Joey Hess2010-04-10
* po: Check that translated underlay directories exist before using them for ma...Joey Hess2010-04-09
* remove a few leftover manual folding indicatorsJoey Hess2010-03-25
* format plugin categorizationJoey Hess2010-02-12
* po: avoid crash when page is empty•••Note that there is an associated po4a warning when a page is empty: Use of uninitialized value $file in substitution (s///) at /usr/share/perl5/Locale/Po4a/Text.pm line 205. I've filed a bug with po4a about that, but the important thing is fixing the crash here. Joey Hess2010-01-21
* po: Fix breakage caused by changes to render code.Joey Hess2009-10-26
* fix logic error•••This sometimes caused infinite recursion when rebuilding a wiki with po files. Joey Hess2009-10-17
* Revert "po: do not inject custom bestlink function when po_link_to eq default"•••This reverts commit cdc3576c8d1efb2593cac2d9da3f2393a2afe26e. Conflicts: IkiWiki/Plugin/po.pm This change broke the test suite and is not strictly necessary. Joey Hess2009-08-30
* Merge commit 'intrigeri/po'Joey Hess2009-08-28
|\
| * po: fix link() pagespec when used on translation pages•••Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-08-28
| * po: better rootpage logic for inline's post form•••Set rootpage to the non-l10n'd rootpage parameter if it is set, else to the masterpage of the linking page. Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-08-28
| * Revert "po: keep masterpage as the rootpage for inline's post form"•••This reverts commit cf43ae5a1f5460a98cdd7acb36c0691b2eec988f, which actually only works when a rootpage parameter is set. A more complete fix will be written soon. intrigeri2009-08-28
| * po: keep masterpage as the rootpage for inline's post form•••Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-08-28
| * po: favor the type of linking page's masterpage on page creation•••Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-08-28
| * po: fix interdiction to create pages of type po•••... which was broken by the new page_types code. Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-08-28
* | avoid clobbering origsub if checkconfig runs more than once•••checkconfig can run more than once in a single ikiwiki run if setup is building wrappers. That clobbered the origsub value for bestlink, leading to infinite recursion Joey Hess2009-08-28
* | po: favor the type of linking page's masterpage on page creation•••Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-08-28
* | po: fix interdiction to create pages of type po•••... which was broken by the new page_types code. Signed-off-by: intrigeri <intrigeri@boum.org> (cherry picked from commit 1914ae2fd24e1e8021404eae847d70c710f8542d) intrigeri2009-08-28
|/
* po: do not inject custom bestlink function when po_link_to eq default•••Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-08-27
* po: override the title template variable for coherent homepage titling•••Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-08-27
* po(scan): removed scary comment about only wanting to change the first link•••Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-08-27
* po: do not beautify urls on the recentchanges page•••... else, the recentchanges page shows a link such as "sandbox.es". But, clicking on it goes to the English (or negotiated language) version of the page. It is better in this one case if the link goes direct to the translated version of the page. intrigeri2009-08-26
* po: (hopefully) fixed WikiLink to self with po_link_to=defaultintrigeri2009-08-26
* po: Fixed to run rcs_add ralative to srcdir.Joey Hess2009-08-19
* po: Better fix for missing underlay translation problem.•••If a page is taken from the underlay, and one of the specified languages does not have po files in the underlay, it would create a broken link to the translated version of the page for that language. With this change, there's no broken link. Joey Hess2009-08-15
* replace N/A with 0•••I think the N/A was not intended to be visible, but it can show up as the percent translated to a language. This happens if the page is located in an underlay, and not translated to the language in any other underlay. Joey Hess2009-08-15
* update for consistencyJoey Hess2009-08-15
* po: use discussionpage config setting•••This was tricky. $links{$page/discussion} must be checked; with it in lowercase. Joey Hess2009-08-13
* po: Detect if nowrapi18n can't be passed to po4a, and warn about the old vers...Joey Hess2009-08-12
* po: Fix copy of po file from underlay when editing•••When first editing a page that was in the underlay, avoid losing the translation by copying the po file over from the underlay. Joey Hess2009-08-10
* Merge branch 'master' of git://git.ikiwiki.infoJonas Smedegaard2009-07-23
|\
| * add --previous at bubulle's suggestionJoey Hess2009-07-22
* | Change rendering→building in translatable strings, to ease translations.Jonas Smedegaard2009-07-23
* | Rephrase suggestion to not get confused as info on action already done.Jonas Smedegaard2009-07-23
|/
* relocate po directory up a levelJoey Hess2009-07-21
* turn off pot file underlay againJoey Hess2009-07-21
* improve invalid gettext message•••(and gettext it as translators will see this!) Joey Hess2009-07-21
* updateJoey Hess2009-07-21
* updateJoey Hess2009-07-21
* po: Add support for mo files in underlays•••In order to support translated basewiki and other underlays, we need support for mo files in underlays. The code did not allow this before, because if a mo file was in an underlay, then it might try to update it, and its pot, and write to the underlay, which is guaranteed to either fail due to permissions, or be undesirable. To fix, my approach is to just detect if a mo or pot file that is about to be updated is in an underlay, and skip updating it. This seems to work well: - If the mo is out of date in the underlay, it won't get updated, but this would probably be due to a problem in the underlay, or more likely, the wiki is being rebuilt and so it *thinks* the mo is out of date, but it's really not (and it would be a waste of time to rebuild it anyway). - If a page from the basewiki is edited, it is saved to the srcdir, which causes generation of an updated mo and pot also in the srcdir; the underlay stops being used for that page, and everything seems to work. Note that I am not including an underlay search directory for pot files. They *seem* to be unnecessary for the underlay, since the mo files in there never need to be updated. Joey Hess2009-07-21
* fix exampleJoey Hess2009-07-21
* po: Support running with a non-english master lang; add translated underlays•••It seem to make sense to remove the check for there being slave languages as part of this, since one might want a wiki that is only in non-English. Joey Hess2009-07-20
* create translated underlays in mdwn format•••These are for use by wikis where the primary language is not English. On such a wiki, it makes sense to use an underlay has the source for pages in the native language. Joey Hess2009-07-20
* avoid Po4a::Common exporting anything•••It exports gettext and stuff by default, which conflicts with IkiWiki exports. Joey Hess2009-07-19
* shut up msgmergeJoey Hess2009-07-19
* bugfix: Avoid generating po files for files that are not httmlizableJoey Hess2009-07-19
* po: better discussion link logic•••Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-06-03
* Merge commit 'intrigeri/po' into poJoey Hess2009-05-19
|\