jariolaine / apex-blog

Blog application built using Oracle Application Express (APEX)
MIT License
24 stars 8 forks source link

Error with new constant handling and translated app #14

Closed scl-4711 closed 7 months ago

scl-4711 commented 7 months ago

Hi Jari,

none of the new "constants" work if I translate the latest app to german and use it as Application Primary Language. As usual I duplicated and translated all text messages to german.

Where do you init the items?

Best regards Steffen

jariolaine commented 7 months ago

Hi Steffen, There is application process Initialize session that sets items values. I did test that translation should work and can't reproduce issue. Could you please explain in details steps how reproduce issue? Regards, Jari

jariolaine commented 7 months ago

Please note that global page items storage is set Per User (Persistent). Those items values don't show if you check builder toolbar View Session State. Values are preferences, so you need navigate to Administration -> Manage Service -> Session State and see report Preferences by User. Application name and description are text messages.

jariolaine commented 7 months ago

One problem might be that global page region Application Banner is cached. In admin application change e.g. blog name. It should clear cache. Then change name back.

scl-4711 commented 7 months ago

image image

The APP_TEXT$BLOG_APP_NAME is missing top left, and "BLOG_POWERED_BY".

Everything else seems to be ok :-)

scl-4711 commented 7 months ago

Hi Steffen, There is application process Initialize session that sets items values. I did test that translation should work and can't reproduce issue. Could you please explain in details steps how reproduce issue? Regards, Jari

Do the translation steps in "Shared components -> Globalization -> Application Translations" and switch the Application Primary Language afterwards to new language. That's all.

jariolaine commented 7 months ago

I have removed shortcut "BLOG_POWERED_BY" long time ago. Where that come from? I did check application export and there is &APP_TEXT$BLOG_APP_NAME. and text message BLOG_APP_NAME.

jariolaine commented 7 months ago

Do the translation steps in "Shared components -> Globalization -> Application Translations" and switch the Application Primary Language afterwards to new language. That's all.

Where you get all translations for text messages?

scl-4711 commented 7 months ago

One problem might be that global page region Application Banner is cached. In admin application change e.g. blog name. It should clear cache. Then change name back.

Owner

If I change image to image it works

I find no items with name "APP_ID" and "DEBUG" in the whole app ?!

scl-4711 commented 7 months ago

Do the translation steps in "Shared components -> Globalization -> Application Translations" and switch the Application Primary Language afterwards to new language. That's all.

Where you get all translations for text messages?

I translated the texts at some point - and saved them in a table so that I don't have to do that again and again ;-)

jariolaine commented 7 months ago

I find no items with name "APP_ID" and "DEBUG" in the whole app ?!

Those are APEX internal items.

scl-4711 commented 7 months ago

BLOG_POWERED_BY

image

My failure...

jariolaine commented 7 months ago

I translated the texts at some point - and saved them in a table so that I don't have to do that again and again ;-)

Ok, that's good. And how about other text that need to be translated? If you use same XLF file that can be downloaded from your blog, it might not work as expected.

scl-4711 commented 7 months ago

I translated the texts at some point - and saved them in a table so that I don't have to do that again and again ;-)

Ok, that's good. And how about other text that need to be translated? If you use same XLF file that can be downloaded from your blog, it might not work as expected.

But why? I install the update, then I define my application languages, seed, upload and apply my XLF from the last app, check the strings, and publish afterwards.

This has worked every time so far...

scl-4711 commented 7 months ago

Now everything works - I deletet the browser cache, and the application cache via "Manage Service -> Application Cache -> Purge all cached pages for the specified application.

I hate errors that I cannot explain - thanks for your help.

jariolaine commented 7 months ago

But why?

I mean cases where region source has changed. Example that shortcut BLOG_POWERED_BY was in region source and I replaced it static HTML.

Great you did get it working. I need keep closer look translations and mention more detail changes. Sorry about this.

scl-4711 commented 7 months ago

No problem - for me, translating with APEX is a chapter in itself and not always understandable...