Si j'étais vous je voudrais simplement télécharger un exemple de fichier .po et jeter un oeil à l'intérieur avec un éditeur de texte ordinaire. L'en-tête contient les informations suivantes:
# 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 protected]>, YEAR.
#
#: src/link/to/my/src:67
msgid ""
msgstr ""
"Project-Id-Version: xxx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-07-06 12:31-0500\n"
"PO-Revision-Date: 2011-05-27 22:37+0100\n"
"Last-Translator: My NAME<[email protected]>\n"
"Language-Team: TEAM <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
Ensuite, l'intérieur est organisé de cette façon:
# This is a comment
# and another line of comment
msgid "This is my original string to translate"
msgstr "Translation goes here ... "
# TRANSLATED : Mon Jun 14 09:36:07 2010
# TRANSLATOR : MyName goes here... it's a comment
#: src/main/my/source/reference/:34
msgid "Get started now!"
msgstr "Commencez dès maintenant!"
Hope this helps ...
Un en-tête indique quelques informations sur le fichier, un un peu comme les en-têtes http. Celui que je dois définir indique au charset le fichier que j'ai fait. –
Voir aussi [le format PO] (http://pology.nedohodnik.net/doc/user/en_US/ch-poformat.html) dans le [Pology] Manuel de l'utilisateur] (http://pology.nedohodnik.net/doc/user/en_US/index.html). – jww