22 lines
1.3 KiB
Transact-SQL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

DECLARE @ID INTEGER,
@SCREEN_ID INT,
@CONTROL_TEXT VARCHAR(100)
DECLARE c_CONTROL CURSOR FOR
SELECT GUID,CONTROL_TEXT FROM TBPMO_CONTROL_SCREEN where GUID not in (SELECT CONTROL_SCREEN_ID FROM TBPMO_CONTROL_LANGUAGE where LANGUAGE_TYPE = 'en-US') AND CONTROL_TEXT <> ''
BEGIN
OPEN c_CONTROL
FETCH NEXT FROM c_CONTROL INTO @ID, @CONTROL_TEXT
WHILE @@FETCH_STATUS = 0
BEGIN
INSERT INTO TBPMO_CONTROL_LANGUAGE (LANGUAGE_TYPE,CONTROL_SCREEN_ID,CAPTION) VALUES (
'en-US',@ID,'NOT TRANSLATED ' + @CONTROL_TEXT)
FETCH NEXT FROM c_CONTROL INTO @ID,@CONTROL_TEXT
END
CLOSE c_CONTROL
DEALLOCATE c_CONTROL
END