diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-12-29 04:38:40 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-12-29 04:38:40 +0000 |
commit | 912521ef0711204965aa2319d41c7741bd3f4f4c (patch) | |
tree | b0a3d21ddfc0b7ca4a8deaa26135d7c3309d3471 /po | |
parent | d05d052bff599327cf43b6f00e337197f1d2ab18 (diff) | |
download | ikiwiki-912521ef0711204965aa2319d41c7741bd3f4f4c.tar ikiwiki-912521ef0711204965aa2319d41c7741bd3f4f4c.tar.gz |
* Initial work on internationalization of the program code. po/ikiwiki.pot
is available for translation.
* Export gettext() from IkiWiki module.
Diffstat (limited to 'po')
-rw-r--r-- | po/Makefile | 44 | ||||
-rw-r--r-- | po/ikiwiki.pot | 358 |
2 files changed, 402 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 000000000..fa129de81 --- /dev/null +++ b/po/Makefile @@ -0,0 +1,44 @@ +# List here all source files with translatable strings. +POTFILES=$(sort $(shell find ../IkiWiki -type f -name \*.pm)) \ + ../ikiwiki.in ../IkiWiki.pm + +POFILES=$(wildcard *.po) +MOFILES=$(POFILES:.po=.mo) + +all: ikiwiki.pot $(MOFILES) + +install: all + for file in $(MOFILES); do \ + lang=`echo $$file | sed 's/\.mo//'`; \ + install -d $(DESTDIR)$(PREFIX)/share/locale/$$lang/LC_MESSAGES/; \ + install -m 0644 $$file $(DESTDIR)$(PREFIX)/share/locale/$$lang/LC_MESSAGES/ikiwiki.mo; \ + done + +ikiwiki.pot: $(POTFILES) + @echo "Rebuilding the pot file" + xgettext $(POTFILES) -o ikiwiki.pot -Lperl + +clean: + rm -f ikiwiki.pot $(MOFILES) messages messages.mo + +%.mo: %.po + msgfmt -o $@ $< + +%.po: ikiwiki.pot + @echo -n "Merging ikiwiki.pot and $@" + @msgmerge $@ ikiwiki.pot -o $@.new +# Typically all that changes was a date. I'd prefer not to commit such +# changes, so detect and ignore them. + @if [ "`diff $@ $@.new | grep '[<>]' | wc -l`" -ne 2 ]; then \ + mv -f $@.new $@; \ + else \ + rm -f $@.new; \ + fi + @msgfmt --statistics $@ + +check: + @for file in $(POFILES); do \ + lang=`echo $$file | sed 's/\.po//'`; \ + printf "$$lang: "; \ + msgfmt -o /dev/null -c -v --statistics $$lang.po;\ + done diff --git a/po/ikiwiki.pot b/po/ikiwiki.pot new file mode 100644 index 000000000..bc4d7a9d3 --- /dev/null +++ b/po/ikiwiki.pot @@ -0,0 +1,358 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-12-28 23:36-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../IkiWiki/CGI.pm:49 +#, perl-format +msgid "%s is locked by %s and cannot be edited" +msgstr "" + +#: ../IkiWiki/CGI.pm:139 +msgid "You need to log in first." +msgstr "" + +#: ../IkiWiki/CGI.pm:257 +msgid "Preferences saved." +msgstr "" + +#: ../IkiWiki/CGI.pm:408 ../IkiWiki/Render.pm:96 ../IkiWiki/Render.pm:160 +msgid "discussion" +msgstr "" + +#: ../IkiWiki/CGI.pm:445 +#, perl-format +msgid "creating %s" +msgstr "" + +#: ../IkiWiki/CGI.pm:462 ../IkiWiki/CGI.pm:505 +#, perl-format +msgid "editing %s" +msgstr "" + +#: ../IkiWiki/CGI.pm:622 +msgid "You are banned." +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:61 +#, perl-format +msgid "aggregate plugin missing %s parameter" +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:89 +msgid "new feed" +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:103 +msgid "posts" +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:105 +msgid "new" +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:206 +#, perl-format +msgid "expiring %s (%s days old)" +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:213 +#, perl-format +msgid "expiring %s" +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:236 +#, perl-format +msgid "checking feed %s\t..." +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:241 +#, perl-format +msgid "could not find feed at %s" +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:250 +msgid "feed crashed XML::Feed!" +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:273 +#, perl-format +msgid "processed ok at " +msgstr "" + +#: ../IkiWiki/Plugin/aggregate.pm:314 +#, perl-format +msgid "creating new page %s" +msgstr "" + +#: ../IkiWiki/Plugin/brokenlinks.pm:36 +msgid "There are no broken links!" +msgstr "" + +#: ../IkiWiki/Plugin/fortune.pm:18 +msgid "fortune failed" +msgstr "" + +#: ../IkiWiki/Plugin/googlecalendar.pm:22 +msgid "googlecalendar failed to find url in html" +msgstr "" + +#: ../IkiWiki/Plugin/inline.pm:37 +msgid "Must specify url to wiki with --url when using --rss or --atom" +msgstr "" + +#: ../IkiWiki/Plugin/inline.pm:97 +#, perl-format +msgid "unknown sort type %s" +msgstr "" + +#: ../IkiWiki/Plugin/inline.pm:368 +msgid "RPC::XML::Client not found, not pinging" +msgstr "" + +#: ../IkiWiki/Plugin/linkmap.pm:99 +msgid "linkmap failed to run dot" +msgstr "" + +#: ../IkiWiki/Plugin/mdwn.pm:37 +#, perl-format +msgid "failed to load Markdown.pm perl module (%s) or /usr/bin/markdown (%s)" +msgstr "" + +#: ../IkiWiki/Plugin/mirrorlist.pm:23 +msgid "Mirrors" +msgstr "" + +#: ../IkiWiki/Plugin/mirrorlist.pm:23 +msgid "Mirror" +msgstr "" + +#: ../IkiWiki/Plugin/openid.pm:36 +msgid "What's this?" +msgstr "" + +#: ../IkiWiki/Plugin/openid.pm:37 +msgid "Get an OpenID" +msgstr "" + +#: ../IkiWiki/Plugin/orphans.pm:41 +msgid "All pages are linked to by other pages." +msgstr "" + +#: ../IkiWiki/Plugin/passwordauth.pm:104 +msgid "(use FirstnameLastName)" +msgstr "" + +#: ../IkiWiki/Plugin/passwordauth.pm:144 +msgid "Account creation successful. Now you can Login." +msgstr "" + +#: ../IkiWiki/Plugin/passwordauth.pm:147 +msgid "Error creating account." +msgstr "" + +#: ../IkiWiki/Plugin/passwordauth.pm:168 +msgid "Failed to send mail" +msgstr "" + +#: ../IkiWiki/Plugin/passwordauth.pm:170 +msgid "Your password has been emailed to you." +msgstr "" + +#: ../IkiWiki/Plugin/poll.pm:64 +msgid "vote" +msgstr "" + +#: ../IkiWiki/Plugin/poll.pm:72 +msgid "Total votes:" +msgstr "" + +#: ../IkiWiki/Plugin/polygen.pm:32 +msgid "polygen not installed" +msgstr "" + +#: ../IkiWiki/Plugin/polygen.pm:51 +msgid "polygen failed" +msgstr "" + +#: ../IkiWiki/Plugin/search.pm:34 +#, perl-format +msgid "Must specify %s when using the search plugin" +msgstr "" + +#: ../IkiWiki/Plugin/search.pm:58 +msgid "cleaning hyperestraier search index" +msgstr "" + +#: ../IkiWiki/Plugin/search.pm:64 +msgid "updating hyperestraier search index" +msgstr "" + +#: ../IkiWiki/Plugin/shortcut.pm:24 +msgid "shortcut missing name or url parameter" +msgstr "" + +#: ../IkiWiki/Plugin/shortcut.pm:30 +#, perl-format +msgid "shortcut %s points to %s" +msgstr "" + +#: ../IkiWiki/Plugin/smiley.pm:22 +msgid "failed to parse any smileys, disabling plugin" +msgstr "" + +#: ../IkiWiki/Plugin/template.pm:19 +msgid "template missing id parameter" +msgstr "" + +#: ../IkiWiki/Plugin/template.pm:26 +#, perl-format +msgid "template %s not found" +msgstr "" + +#: ../IkiWiki/Plugin/template.pm:45 +msgid "template failed to process:" +msgstr "" + +#: ../IkiWiki/Rcs/Stub.pm:66 +msgid "getctime not implemented" +msgstr "" + +#: ../IkiWiki/Rcs/svn.pm:206 +msgid "" +"REV is not set, not running from svn post-commit hook, cannot send " +"notifications" +msgstr "" + +#: ../IkiWiki/Render.pm:97 +msgid "Discussion" +msgstr "" + +#: ../IkiWiki/Render.pm:227 ../IkiWiki/Render.pm:247 +#, perl-format +msgid "skipping bad filename %s" +msgstr "" + +#: ../IkiWiki/Render.pm:287 +#, perl-format +msgid "removing old page %s" +msgstr "" + +#: ../IkiWiki/Render.pm:306 +#, perl-format +msgid "scanning %s" +msgstr "" + +#: ../IkiWiki/Render.pm:315 +#, perl-format +msgid "rendering %s" +msgstr "" + +#: ../IkiWiki/Render.pm:327 +#, perl-format +msgid "rendering %s, which links to %s" +msgstr "" + +#: ../IkiWiki/Render.pm:344 +#, perl-format +msgid "rendering %s, which depends on %s" +msgstr "" + +#: ../IkiWiki/Render.pm:382 +#, perl-format +msgid "rendering %s, to update its backlinks" +msgstr "" + +#: ../IkiWiki/Render.pm:394 +#, perl-format +msgid "removing %s, no longer rendered by %s" +msgstr "" + +#: ../IkiWiki/Render.pm:420 +#, perl-format +msgid "ikiwiki: cannot render %s" +msgstr "" + +#: ../IkiWiki/Setup.pm:13 +#, perl-format +msgid "cannot read %s: %s" +msgstr "" + +#: ../IkiWiki/Setup/Standard.pm:38 +msgid "generating wrappers.." +msgstr "" + +#: ../IkiWiki/Setup/Standard.pm:74 +msgid "rebuilding wiki.." +msgstr "" + +#: ../IkiWiki/Setup/Standard.pm:77 +msgid "refreshing wiki.." +msgstr "" + +#: ../IkiWiki/Setup/Standard.pm:86 +msgid "done" +msgstr "" + +#: ../IkiWiki/UserInfo.pm:135 +#, perl-format +msgid "update of %s's %s by %s" +msgstr "" + +#: ../IkiWiki/Wrapper.pm:16 +#, perl-format +msgid "%s doesn't seem to be executable" +msgstr "" + +#: ../IkiWiki/Wrapper.pm:20 +msgid "cannot create a wrapper that uses a setup file" +msgstr "" + +#: ../IkiWiki/Wrapper.pm:24 +msgid "wrapper filename not specified" +msgstr "" + +#: ../IkiWiki/Wrapper.pm:62 +#, perl-format +msgid "failed to write %s: %s" +msgstr "" + +#: ../IkiWiki/Wrapper.pm:97 +#, perl-format +msgid "failed to compile %s" +msgstr "" + +#: ../IkiWiki/Wrapper.pm:104 +#, perl-format +msgid "successfully generated %s\n" +msgstr "" + +#: ../ikiwiki.in:13 +msgid "usage: ikiwiki [options] source dest" +msgstr "" + +#: ../IkiWiki.pm:99 +msgid "Must specify url to wiki with --url when using --cgi" +msgstr "" + +#: ../IkiWiki.pm:142 ../IkiWiki.pm:143 +msgid "Error" +msgstr "" + +#: ../IkiWiki.pm:514 +#, perl-format +msgid "%s preprocessing loop detected on %s at depth %i" +msgstr "" |