Community
    • Login

    Best practices for resizing dialogs when translating text

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    pluginstranslationdialog
    1 Posts 1 Posters 464 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mark OlsonM Offline
      Mark Olson
      last edited by Mark Olson

      Recently I implemented a simple protocol for allowing native language translation for JsonTools and NppCSharpPluginPack. This protocol includes translation of text boxes and labels in forms.

      The problem that I’ve been wrestling with is that the default spatial arrangement of elements in the form stops working if the translated text of a label gets too large, causing it to overlap with other controls. In the JsonToolsNppPlugin repo on GitHub, se JsonToolsNppPlugin/Utils/Translator.cs for my existing algorithm that deals with this issue. At present, it seems like my algorithm works OK for most things but starts to get weird if things are right- or left-anchored.

      Does anyone else who has some experience with this problem have any general tips?

      EDIT: Yes, I know this is more of a meta problem and not really specific to Notepad++. I beg your indulgence nonetheless.

      1 Reply Last reply Reply Quote 2

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors