Browse Source

WIP Gettext

Frédéric G. MARAND 1 year ago
parent
commit
c6bc01831b
3 changed files with 271 additions and 0 deletions
  1. 4 0
      gettext/01basic/main.go
  2. 136 0
      profiles-fr.po
  3. 131 0
      profiles.pot

+ 4 - 0
gettext/01basic/main.go

@@ -14,6 +14,10 @@ const (
 	TranslationsDir = "../translations"
 )
 
+func init() {
+	gotext.
+}
+
 func main() {
 	pwd, err := os.Getwd()
 	if err != nil {

+ 136 - 0
profiles-fr.po

@@ -0,0 +1,136 @@
+# $Id$
+#
+# LANGUAGE translation of Drupal (general)
+# Copyright YEAR NAME <EMAIL@ADDRESS>
+# Generated from files:
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/magpjp.info.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_local_actions.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_local_actions.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_page_title.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_page_title.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_primary_local_tasks.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_primary_local_tasks.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_secondary_local_tasks.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_secondary_local_tasks.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.long.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.medium.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.short.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.en.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.fr.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.und.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.zxx.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/system.site.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.administrator.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.anonymous.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.authenticated.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.webmaster.yml: n/a
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: MAGPJ Install Profile\n"
+"POT-Creation-Date: 2017-02-23 09:27+0100\n"
+"PO-Revision-Date: 2017-02-23 09:28+0100\n"
+"Language-Team: OSInet <support@osinet.fr>\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"
+"X-Generator: Poedit 1.8.11\n"
+"Last-Translator: \n"
+"Language: fr\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/magpjp.info.yml:0
+msgid "MAGPJ Profile"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/magpjp.info.yml:0
+msgid "Install profile for mag.plantes-et-jardins.com"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/magpjp.info.yml:0
+msgid "MAGPJ"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_local_actions.yml:0
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_local_actions.yml:0
+msgid "Actions d'administration principales"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_page_title.yml:0
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_page_title.yml:0
+msgid "Titre de page"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_primary_local_tasks.yml:0
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_primary_local_tasks.yml:0
+msgid "Onglets principaux"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_secondary_local_tasks.yml:0
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_secondary_local_tasks.yml:0
+msgid "Onglets secondaires"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.long.yml:0
+msgid "Date longue par défaut"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.long.yml:0
+msgctxt "PHP date format"
+msgid "l j F Y - H:i"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.medium.yml:0
+msgid "Date moyenne par défaut"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.medium.yml:0
+msgctxt "PHP date format"
+msgid "D d/m/Y - H:i"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.short.yml:0
+msgid "Date courte par défaut"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.short.yml:0
+msgctxt "PHP date format"
+msgid "d/m/Y - H:i"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.en.yml:0
+msgid "English"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.fr.yml:0
+msgid "French"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.und.yml:0
+msgid "Not specified"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.zxx.yml:0
+msgid "Not applicable"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/system.site.yml:0
+msgid "Le magazine — Gamm vert"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.administrator.yml:0
+msgid "Administrateur"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.anonymous.yml:0
+msgid "Utilisateur anonyme"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.authenticated.yml:0
+msgid "Utilisateur authentifié"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.webmaster.yml:0
+msgid "webmaster"
+msgstr ""

+ 131 - 0
profiles.pot

@@ -0,0 +1,131 @@
+# $Id$
+#
+# LANGUAGE translation of Drupal (general)
+# Copyright YEAR NAME <EMAIL@ADDRESS>
+# Generated from files:
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/magpjp.info.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_local_actions.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_local_actions.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_page_title.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_page_title.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_primary_local_tasks.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_primary_local_tasks.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_secondary_local_tasks.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_secondary_local_tasks.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.long.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.medium.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.short.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.en.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.fr.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.und.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.zxx.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/system.site.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.administrator.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.anonymous.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.authenticated.yml: n/a
+#  /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.webmaster.yml: n/a
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PROJECT VERSION\n"
+"POT-Creation-Date: 2017-02-23 09:24+0100\n"
+"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
+"Last-Translator: NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/magpjp.info.yml:0
+msgid "MAGPJ Profile"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/magpjp.info.yml:0
+msgid "Install profile for mag.plantes-et-jardins.com"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/magpjp.info.yml:0
+msgid "MAGPJ"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_local_actions.yml:0 /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_local_actions.yml:0
+msgid "Actions d'administration principales"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_page_title.yml:0 /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_page_title.yml:0
+msgid "Titre de page"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_primary_local_tasks.yml:0 /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_primary_local_tasks.yml:0
+msgid "Onglets principaux"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.magpjt_secondary_local_tasks.yml:0 /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/block.block.seven_secondary_local_tasks.yml:0
+msgid "Onglets secondaires"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.long.yml:0
+msgid "Date longue par défaut"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.long.yml:0
+msgctxt "PHP date format"
+msgid "l j F Y - H:i"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.medium.yml:0
+msgid "Date moyenne par défaut"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.medium.yml:0
+msgctxt "PHP date format"
+msgid "D d/m/Y - H:i"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.short.yml:0
+msgid "Date courte par défaut"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/core.date_format.short.yml:0
+msgctxt "PHP date format"
+msgid "d/m/Y - H:i"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.en.yml:0
+msgid "English"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.fr.yml:0
+msgid "French"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.und.yml:0
+msgid "Not specified"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/language.entity.zxx.yml:0
+msgid "Not applicable"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/system.site.yml:0
+msgid "Le magazine — Gamm vert"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.administrator.yml:0
+msgid "Administrateur"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.anonymous.yml:0
+msgid "Utilisateur anonyme"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.authenticated.yml:0
+msgid "Utilisateur authentifié"
+msgstr ""
+
+#: /Users/fgm/src/GammVert/magpj/web/profiles/magpjp/config/install/user.role.webmaster.yml:0
+msgid "webmaster"
+msgstr ""
+