diff --git a/endpoint_cache/i18n/endpoint_cache.pot b/endpoint_cache/i18n/endpoint_cache.pot new file mode 100644 index 00000000..6ae91425 --- /dev/null +++ b/endpoint_cache/i18n/endpoint_cache.pot @@ -0,0 +1,102 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * endpoint_cache +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: endpoint_cache +#: model_terms:ir.ui.view,arch_db:endpoint_cache.endpoint_endpoint_form_view +msgid "" +"# get the name of the cache\n" +"cache_name = endpoint._endpoint_make_cache_name(\"json\")\n" +"# check if the cache exists\n" +"cached = endpoint._endpoint_cache_get(cache_name)\n" +"if cached:\n" +" result = cached\n" +"else:\n" +" result = json.dumps(env[\"my.model\"]._get_a_very_expensive_computed_result())\n" +" # cache does not exist, create it0\n" +" endpoint._endpoint_cache_store(cache_name, result)\n" +"resp = Response(result, content_type=\"application/json\", status=200)\n" +"result = dict(response=resp)" +msgstr "" + +#. module: endpoint_cache +#: model_terms:ir.ui.view,arch_db:endpoint_cache.endpoint_endpoint_form_view +msgid "Cache" +msgstr "" + +#. module: endpoint_cache +#: model:ir.model.fields,field_description:endpoint_cache.field_endpoint_endpoint__cache_policy +#: model:ir.model.fields,field_description:endpoint_cache.field_endpoint_mixin__cache_policy +msgid "Cache Policy" +msgstr "" + +#. module: endpoint_cache +#: code:addons/endpoint_cache/models/endpoint_mixin.py:0 +#, python-format +msgid "Cache name must start with 'endpoint_cache'" +msgstr "" + +#. module: endpoint_cache +#: code:addons/endpoint_cache/models/endpoint_mixin.py:0 +#, python-format +msgid "Cache results" +msgstr "" + +#. module: endpoint_cache +#: model_terms:ir.ui.view,arch_db:endpoint_cache.endpoint_endpoint_form_view +msgid "Cache usage example" +msgstr "" + +#. module: endpoint_cache +#: model:ir.model.fields.selection,name:endpoint_cache.selection__endpoint_endpoint__cache_policy__day +#: model:ir.model.fields.selection,name:endpoint_cache.selection__endpoint_mixin__cache_policy__day +msgid "Daily" +msgstr "" + +#. module: endpoint_cache +#: model:ir.model.fields,field_description:endpoint_cache.field_endpoint_mixin__display_name +msgid "Display Name" +msgstr "" + +#. module: endpoint_cache +#: model:ir.model,name:endpoint_cache.model_endpoint_mixin +msgid "Endpoint mixin" +msgstr "" + +#. module: endpoint_cache +#: model:ir.model.fields,field_description:endpoint_cache.field_endpoint_mixin__id +msgid "ID" +msgstr "" + +#. module: endpoint_cache +#: model:ir.model.fields,field_description:endpoint_cache.field_endpoint_mixin____last_update +msgid "Last Modified on" +msgstr "" + +#. module: endpoint_cache +#: model:ir.model.fields.selection,name:endpoint_cache.selection__endpoint_endpoint__cache_policy__month +#: model:ir.model.fields.selection,name:endpoint_cache.selection__endpoint_mixin__cache_policy__month +msgid "Monthly" +msgstr "" + +#. module: endpoint_cache +#: model_terms:ir.ui.view,arch_db:endpoint_cache.endpoint_endpoint_form_view +msgid "View caches" +msgstr "" + +#. module: endpoint_cache +#: model:ir.model.fields.selection,name:endpoint_cache.selection__endpoint_endpoint__cache_policy__week +#: model:ir.model.fields.selection,name:endpoint_cache.selection__endpoint_mixin__cache_policy__week +msgid "Weekly" +msgstr ""