diff options
author | Greg Hudson <ghudson@mit.edu> | 2011-06-10 18:17:12 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2011-06-10 18:17:12 +0000 |
commit | fd2f45cf93bfbf10863011fb1a61fc08041c2f51 (patch) | |
tree | dd1d90ae9e744d0c7e127ba17b08977c526d054f /src/po | |
parent | 71125ee37ecc540fb60a6efbf4dac80468e1359e (diff) | |
download | krb5-fd2f45cf93bfbf10863011fb1a61fc08041c2f51.tar.gz krb5-fd2f45cf93bfbf10863011fb1a61fc08041c2f51.tar.xz krb5-fd2f45cf93bfbf10863011fb1a61fc08041c2f51.zip |
Add localization infrastructure
Adds build system logic, translation macros in k5-platform.h, and
bindtextdomain calls in libkrb5 initialization.
ticket: 6918
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24959 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/po')
-rw-r--r-- | src/po/Makefile.in | 33 | ||||
-rw-r--r-- | src/po/deps | 1 | ||||
-rw-r--r-- | src/po/en_US.po | 17 | ||||
-rw-r--r-- | src/po/mit-krb5.pot | 17 |
4 files changed, 68 insertions, 0 deletions
diff --git a/src/po/Makefile.in b/src/po/Makefile.in new file mode 100644 index 0000000000..fd71f92b5b --- /dev/null +++ b/src/po/Makefile.in @@ -0,0 +1,33 @@ +mydir=po +BUILDTOP=$(REL).. +VER=@PACKAGE_VERSION@ + +DOMAIN=mit-krb5 +POTFILE=$(srcdir)/$(DOMAIN).pot +XGETTEXT=xgettext --foreign-user --package-name=mit-krb5 \ + --package-version=$(VER) --copyright-holder=MIT +# This is a placeholder until we have an actual translation. +CATALOGS=en_US.mo + +.SUFFIXES: .po .mo +.po.mo: + msgfmt -o $@ $< + +all:: $(CATALOGS) + +update-po: csrcs + $(XGETTEXT) -k_ -kN_ -o $(POTFILE) -f csrcs + +csrcs: always + find $(top_srcdir) -name "*.c" -print > $@ + +always: + +install:: + for c in $(CATALOGS); do \ + lang=`basename $$c .mo`; \ + $(top_srcdir)/config/mkinstalldirs \ + $(DESTDIR)$(KRB5_LOCALEDIR)/$$lang/LC_MESSAGES; \ + install -c $$c \ + $(DESTDIR)$(KRB5_LOCALEDIR)/$$lang/LC_MESSAGES/$(DOMAIN).mo; \ + done diff --git a/src/po/deps b/src/po/deps new file mode 100644 index 0000000000..2feac3c9d3 --- /dev/null +++ b/src/po/deps @@ -0,0 +1 @@ +# No dependencies here. diff --git a/src/po/en_US.po b/src/po/en_US.po new file mode 100644 index 0000000000..7e11d679a4 --- /dev/null +++ b/src/po/en_US.po @@ -0,0 +1,17 @@ +# English translations for Kerberos 5 package. +# Copyright (C) 2011 MIT +# This file is distributed under the same license as the Kerberos 5 package. +# Greg Hudson <ghudson@mit.edu>, 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: mit-krb5 1.10-prerelease\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-06-06 00:34-0400\n" +"PO-Revision-Date: 2011-06-06 00:35-0400\n" +"Last-Translator: Greg Hudson <ghudson@mit.edu>\n" +"Language-Team: English\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" diff --git a/src/po/mit-krb5.pot b/src/po/mit-krb5.pot new file mode 100644 index 0000000000..caa907e847 --- /dev/null +++ b/src/po/mit-krb5.pot @@ -0,0 +1,17 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR MIT +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: mit-krb5 1.10-prerelease\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-06-06 00:34-0400\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" |