Forum
× General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.

Question Problems and questions on generating .po files

  • Roman
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 11 hours ago - 1 month 11 hours ago #13526 by Roman
Hello!
I can not understand how CT IDE 6.3 (or fpc) create .po files? There are many forms and modules in my project. I set the option "update .po while saving frm" in the project properties - the lines from some forms do not fall into the .po file when they are saved. I set the forced update option at the next compilation - sometimes updates, sometimes not. Even with "clean and build." I do not understand the patterns - when and under what conditions is the .po file updated?

The second question: how to get in .po resourcestings from third-party components? Many components come with ready .po files - how to properly attach them to my project?

The third question is: why do not strings from the properties of components of type TStrings fall into .po? For example, TTabControl.Tabs

Finally, the last question: SetDefaultLag correctly updates the application interface (all forms and resource strings) in the direction of EN ---> RU, but the reverse localization change does not work - the interface remains in RU localization, although the resourcestring is updated to EN localization. Why and what should be done so that everything works in all directions of localization change?

Sorry for my "runglish" - I use GoogleTranslator :blush:
Last edit: 1 month 11 hours ago by Roman.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 month 4 hours ago - 1 month 4 hours ago #13527 by Sternas Stefanos
Replied by Sternas Stefanos on topic Problems and questions on generating .po files
Please Sir
try to upgrade CT to CT 6.8
CT 6.8 has a lot of changes from CT 6.3

PilotLogic Architect and Core Programmer
Last edit: 1 month 4 hours ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Roman
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 weeks 1 day ago #13530 by Roman
Thank you, Sternas Stefanos!
After installation newest CT version localization in my project correctly switched in both directions.

But I have some questions...

How to use Po Builder? How to add .po-files from thrid-party components to my project?

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 weeks 1 day ago #13531 by Sternas Stefanos
Replied by Sternas Stefanos on topic Problems and questions on generating .po files
You can use .po-files from third-party components
as is in your project

Just copy .po-files from third-party components to
your project .po-files folder

I think this will work.

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Roman
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
3 weeks 3 days ago - 3 weeks 3 days ago #13540 by Roman
Unfortunately, this does not work.
Simply putting the .po files in the folder with the .po files that CT generates during compilation is not enough. If the contents of the third-party .po file are added to my (main) .po file, then everything works until the project is recompiled again, after which the added lines from the main .po file disappear.
I think that the utility "Po Builder" entering CT should solve my problem. But I do not understand how to use it. I can not add anything to the lists of this utility, all buttons are disabled.
Last edit: 3 weeks 3 days ago by Roman.

Please Log in or Create an account to join the conversation.