diff --git a/ckanext/iaea/i18n/ckanext-iaea.pot b/ckanext/iaea/i18n/ckanext-iaea.pot new file mode 100644 index 0000000..f89edc0 --- /dev/null +++ b/ckanext/iaea/i18n/ckanext-iaea.pot @@ -0,0 +1,19 @@ +# Translations template for ckanext-iaea. +# Copyright (C) 2024 ORGANIZATION +# This file is distributed under the same license as the ckanext-iaea project. +# FIRST AUTHOR , 2024. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: ckanext-iaea 0.0.1\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2024-02-23 15:25+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.7.0\n" + diff --git a/ckanext/iaea/i18n/fr/LC_MESSAGES/ckanext-iaea.mo b/ckanext/iaea/i18n/fr/LC_MESSAGES/ckanext-iaea.mo new file mode 100644 index 0000000..e0e5795 Binary files /dev/null and b/ckanext/iaea/i18n/fr/LC_MESSAGES/ckanext-iaea.mo differ diff --git a/ckanext/iaea/i18n/fr/LC_MESSAGES/ckanext-iaea.po b/ckanext/iaea/i18n/fr/LC_MESSAGES/ckanext-iaea.po new file mode 100644 index 0000000..2c50602 --- /dev/null +++ b/ckanext/iaea/i18n/fr/LC_MESSAGES/ckanext-iaea.po @@ -0,0 +1,21 @@ +# French translations for ckanext-iaea. +# Copyright (C) 2024 ORGANIZATION +# This file is distributed under the same license as the ckanext-iaea +# project. +# FIRST AUTHOR , 2024. +# +msgid "" +msgstr "" +"Project-Id-Version: ckanext-iaea 0.0.1\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2024-02-23 15:25+0100\n" +"PO-Revision-Date: 2024-02-23 15:26+0100\n" +"Last-Translator: FULL NAME \n" +"Language: fr\n" +"Language-Team: fr \n" +"Plural-Forms: nplurals=2; plural=(n > 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.7.0\n" + diff --git a/ckanext/iaea/plugin.py b/ckanext/iaea/plugin.py index 0b2b6a4..51b2f00 100644 --- a/ckanext/iaea/plugin.py +++ b/ckanext/iaea/plugin.py @@ -1,14 +1,15 @@ import ckan.plugins as plugins import ckan.plugins.toolkit as toolkit +from ckan.lib.plugins import DefaultTranslation -class IaeaPlugin(plugins.SingletonPlugin): +class IaeaPlugin(plugins.SingletonPlugin, DefaultTranslation): plugins.implements(plugins.IConfigurer) plugins.implements(plugins.ITranslation) # IConfigurer def update_config(self, config_): - toolkit.add_template_directory(config_, 'templates') - toolkit.add_public_directory(config_, 'public') - toolkit.add_resource('assets', 'iaea') + toolkit.add_template_directory(config_, "templates") + toolkit.add_public_directory(config_, "public") + toolkit.add_resource("assets", "iaea")