Sahana translations

From LiteratePrograms
Jump to: navigation, search

This page has been set up as an example of how PO files could be handled on this wiki

Here is the head of sahana.po:

<<sahana_en.po>>=
# 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 VERSIONn"
"Report-Msgid-Bugs-To: n"
"POT-Creation-Date: 2006-02-06 11:10+0600n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONEn"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>n"
"Language-Team: LANGUAGE <LL@li.org>n"
"MIME-Version: 1.0n"
"Content-Type: text/plain; charset=CHARSETn"
"Content-Transfer-Encoding: 8bitn"

#: ../inc/lib_logger/actions.inc:2
msgid "Create User"
msgstr "Create user"

#: ../inc/lib_logger/actions.inc:3
msgid "Edit User"
msgstr "Edit user"

#: ../inc/lib_logger/actions.inc:4
msgid "Delete User"
msgstr "Delete user"

and here meta-data and each msgid has been given a translated msgstr.

<<sahana_nb.po>>=
# Translation of sahana.po to Norwegian
# Copyright (C) 2007 Sahana
# This file is distributed under the same license as the SAHANA package.
#
# Haakon Meland Eriksen <e-mail address>, 2007.
msgid ""
msgstr ""
"Project-Id-Version: sahana_nb_NO\n"
"Last-Translator: Haakon Meland Eriksen <e-mail address>\n"
"PO-Revision-Date: 2006-10-13 23:10+0200\n"
"Language-Team:  <nb@li.org>\n"
"Language-Team:  <nb@li.org>\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
"MIME-Version: 1.0\n"
"Language-Team:  <nb@li.org>\n"

#: ../inc/lib_logger/actions.inc:2
msgid "Create User"
msgstr "Opprett bruker"

#: ../inc/lib_logger/actions.inc:3
msgid "Edit User"
msgstr "Rediger bruker"

#: ../inc/lib_logger/actions.inc:4
msgid "Delete User"
msgstr "Slett bruker"

So to produce a new PO format I presumably just take one of the ones above cut and paste it in below, do a little modification with the appropriate new language, et voila, ...

<<sahana_sco.po>>=
# Translation of sahana.po to Scots
# Copyright (C) 2007 Sahana
# This file is distributed under the same license as the SAHANA package.
#
# Derek Ross <e-mail address>, 2007.
msgid ""
msgstr ""
"Project-Id-Version: sahana_sco_GB\n"
"Last-Translator: Haakon Meland Eriksen <e-mail address>\n"
"PO-Revision-Date: 2006-10-13 23:10+0200\n"
"Language-Team:  <nb@li.org>\n"
"Language-Team:  <nb@li.org>\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
"MIME-Version: 1.0\n"
"Language-Team:  <nb@li.org>\n"

#: ../inc/lib_logger/actions.inc:2
msgid "Create User"
msgstr "Mak uiser"

#: ../inc/lib_logger/actions.inc:3
msgid "Edit User"
msgstr "Edit uiser"

#: ../inc/lib_logger/actions.inc:4
msgid "Delete User"
msgstr "Delete uiser"

This will produce three separate PO files but if you only want one that can be done too

Download code
hijacker
hijacker
hijacker
hijacker