-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
oca-ci
committed
Jul 11, 2024
1 parent
a7ff271
commit 5fe77da
Showing
1 changed file
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "" |