Skip to content

Conversation

@jzy-chitong56
Copy link
Contributor

@jzy-chitong56 jzy-chitong56 commented Feb 4, 2025

StrategyManager now have internationalization , but Very rudimentary

  • The language is permanently effective after being set , and after switching, the program will automatically rerun
  • zoom in button , change font
  • Change all file operation errors to pop ups
  • The main list has added a scrollbar
  • The main window has a maximum size limit
  • Scrollbar support mouse
  • Fix the issue where cockpit Profile files and Strategy files cannot be written correctly when there is no blank line in the last line

Note that only English and Chinese have translated files, but don't panic, there is a backup language mechanism - If you finish Google Translate, I'll come back and steal the files.. ha

I really don't know how to rewrite the UI, in fact, should rewrite

#215

image
image
image
image
image
image
image

@jzy-chitong56 jzy-chitong56 changed the title StrategyManager internationalization (devtool) StrategyManager internationalization Mar 30, 2025
@SMUnlimited
Copy link
Owner

Pulled in some of these fixes. But some things like file popups around errors are not necessary. Need to come back to the translation specifically though.

@jzy-chitong56
Copy link
Contributor Author

In fact, pop ups should have benefits. In some error situations, no one will look at the console because it is always hidden at the back, or according to modern software standards, it should not appear at all. Normally, there are prompts. I hope you can consider this

On the other hand, if a file is missing, the entire program cannot run and console prompts flash by, so some prompts are useless

@jzy-chitong56
Copy link
Contributor Author

Synchronized new button structure
Synchronized prompts
Updated all translation index

Still retaining the font
Still retains the pop-up prompt method
Still retains placeholders and placeholder prompt text

@jzy-chitong56
Copy link
Contributor Author

image

In testing, die errors are accompanied by a lot of logs, making it difficult to truly pinpoint the problem
In contrast, the bullet box is more friendly and controllable

But I didn't exit after using the pop-up, which resulted in unlimited pop ups, and the console didn't record the error message

I think can integrate the two

@jzy-chitong56
Copy link
Contributor Author

    if (/\bfunction\s*init_strategy_$stratname\b/) {
      while ((<AIFILE> or do { confirm_box(get_translation('err_strategy_not_complete')) }) !~ /endfunction/) {}
      while ((<AIFILE> or do { confirm_box(get_translation('err_strategy_not_complete')) }) !~ /endfunction/) {}
    }
  while (($line = (<AIFILE> or die "Strategy not complete in Build Sequence")) !~ /endfunction/) {print TARGETFILE $line;}
  print TARGETFILE $line;
  while (($line = (<AIFILE> or die "Strategy not complete in Build Sequence")) !~ /endfunction/) {print TARGETFILE $line;}
  print TARGETFILE $line;
      while ((<AIFILE> or die "Strategy not complete in Build Sequence") !~ /endfunction/) {}
      while ((<AIFILE> or die "Strategy not complete in Build Sequence") !~ /endfunction/) {}

I don't understand why there is duplicate code here, is it intentional or a bug?
The big model also says that this may have problems

【开发项】修复驾驶舱移除最后一个档案和策略时会有多余空行的问题
【开发项】修复驾驶舱新建和复制策略时不会换行的问题
@jzy-chitong56
Copy link
Contributor Author

add custom_data_set translation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants