Fix untranslated items
This commit is contained in:
parent
20b032aea1
commit
3e7fdd2f2a
@ -277,21 +277,23 @@ CREATE OR REPLACE PACKAGE BODY app_actions AS
|
|||||||
-- show untranslated items to developers
|
-- show untranslated items to developers
|
||||||
IF app.is_developer() THEN
|
IF app.is_developer() THEN
|
||||||
FOR c IN (
|
FOR c IN (
|
||||||
SELECT i.item_name
|
SELECT
|
||||||
|
i.item_name,
|
||||||
|
app.get_translated_item(i.item_name) AS item_value
|
||||||
FROM apex_application_page_items i
|
FROM apex_application_page_items i
|
||||||
WHERE i.application_id = app.get_app_id()
|
WHERE i.application_id = app.get_app_id()
|
||||||
AND i.page_id = app.get_page_id()
|
AND i.page_id = app.get_page_id()
|
||||||
AND i.item_name LIKE 'T%'
|
AND i.item_name LIKE 'T%'
|
||||||
) LOOP
|
|
||||||
IF app.get_translated_item(c.item_name) IS NULL THEN
|
|
||||||
app.set_item (
|
|
||||||
in_name => c.item_name,
|
|
||||||
in_value => '{' || c.item_name || '}',
|
|
||||||
in_raise => FALSE
|
|
||||||
);
|
|
||||||
--
|
--
|
||||||
app.log_warning('MISSING_TRANSLATION', c.item_name);
|
AND app.get_translated_item(i.item_name) = '{' || i.item_name || '}'
|
||||||
END IF;
|
) LOOP
|
||||||
|
app.set_item (
|
||||||
|
in_name => c.item_name,
|
||||||
|
in_value => c.item_value,
|
||||||
|
in_raise => FALSE
|
||||||
|
);
|
||||||
|
--
|
||||||
|
app.log_warning('MISSING_TRANSLATION', c.item_name);
|
||||||
END LOOP;
|
END LOOP;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user